[SCRIPT] OVL

Intended for use on live public servers.
2 posts Page 1 of 1
thepolm3
Scripter
Scripter
Posts: 424
Joined: Sat Feb 16, 2013 10:49 pm


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
Attachments
ovl.py
(775 Bytes) Downloaded 50 times
StarDust
League Participant
League Participant
Posts: 205
Joined: Sun Nov 11, 2012 12:37 pm


in fact this was not the name, but thank you anyway.
2 posts Page 1 of 1
Return to “Completed Releases”

Who is online

Users browsing this forum: No registered users and 1 guest