superalohababel version 1.0
  • authors

    Danke 51

  • downloads
    voxlap .vxl 2.09 MiB
    Download
    pyspades .txt 742 bytes
    Download
  • tags

    Water damage 🌊

  • text file
    name = 'superalohababel'
    version = '1.0'
    author = 'Danke'
    
    
    BLUE_RECT = ( 180, 245, 201, 266) 
    GREEN_RECT = ( 310, 245, 331, 266)
    
    
    extensions = { 
    'water_damage' : 100
    }
    
    def get_spawn_location(connection):
        if connection.team is connection.protocol.blue_team:
            return connection.protocol.get_random_location(True, BLUE_RECT)
        elif connection.team is connection.protocol.green_team:
            return connection.protocol.get_random_location(True, GREEN_RECT)
    		
    from pyspades.constants import *
    from pyspades.server import ServerConnection
    
    def get_entity_location(team, entity_id):
        if entity_id == GREEN_BASE:
            return (320, 256, 63)
        if entity_id == BLUE_BASE:
            return (190, 256, 63)