Tradeoff version 1.0
  • description

    Try a spider web

  • authors

    ei8htx 12

  • downloads
    voxlap .vxl 4.49 MiB
    Download
    pyspades .txt 1.01 KiB
    Download
  • tags

    Water damage 🌊 Babel 🗼

  • text file
    name = 'Tradeoff'
    version = '1.0'
    author = 'ei8htx'
    description = 'Try a spider web'
    extensions = { 
    	'water_damage' : 25,
    	'babel' : True, 
    	'heavens_color' : (250, 130, 40, 255)
    }
    
    fog = (255, 200, 120)
    
    AREA = (108, 246, 384, 266,) #blue x1, both y1, green x1, both y2
    WIDTH = 20
    BLUE_RECT =  (AREA[0], AREA[1], AREA[0]+WIDTH, AREA[3]) #x1, y1, x2, y2
    GREEN_RECT = (AREA[2], AREA[1], AREA[2]+WIDTH, AREA[3])
    
    from pyspades.constants import *
    from pyspades.server import ServerConnection
    
    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)
     
    def get_entity_location(team, entity_id):
    	if entity_id == GREEN_BASE:
    		return (256+138, 256, team.protocol.map.get_z(256+138, 256))
    	if entity_id == BLUE_BASE:
    		return (256-138, 256, team.protocol.map.get_z(256-138, 256))