voxlap .vxl | 2.09 MiB | |
pyspades .txt | 742 bytes |
Water damage 🌊
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)