Page 1 of 1

[SCRIPT] OVL

Posted: Tue Jul 02, 2013 6:56 pm
by thepolm3
This is not a script to impress. All it does is upon command kills you and makes sure you stay dead. The idea is that you can spectate your team members without changing teams or using files
simples
Code: Select all
"""
Really simple viewing command to stay dead
and thereby use the team spectating you get there
thepolm3
StarDust requested
"""
from commands import add

def ovl(connection):
    connection.ovl=not connection.ovl
    if connection.ovl: connection.kill()
    else: connection.spawn()
    return "OVL %sactivated" %(["de",""][connection.ovl])

add(ovl)
def apply_script(protocol,connection,config):
    class OVLConnection(connection):
        ovl=False
        def get_respawn_time(self):
            if self.ovl:
                return -1
            else:
                return connection.get_respawn_time(self)

        def respawn(self):
            if not self.ovl:
                connection.respawn(self)
    return protocol,OVLConnection

Re: [SCRIPT] OVL

Posted: Wed Jul 03, 2013 1:18 am
by StarDust
in fact this was not the name, but thank you anyway.