from pyspades.constants import * import random def get_entity_location(team, entity_id): if entity_id == BLUE_FLAG: return (255,255,0) if entity_id == BLUE_BASE: return (123, 256, 40) if entity_id == GREEN_FLAG: return (255,255,0) if entity_id == GREEN_BASE: return (387, 256, 40) def get_spawn_location(connection): if connection.team is connection.protocol.blue_team: x = random.randrange(133, 165) y = random.randrange(243, 266) z = connection.protocol.map.get_z(x,y) - 2 return (x, y, z) if connection.team is connection.protocol.green_team: x = random.randrange(344, 376) y = random.randrange(244, 267) z = connection.protocol.map.get_z(x,y) - 2 return (x, y, z) name = 'Plateau' version = '1.0' author = 'Danke' extensions = { 'babel' : True, 'water_damage' : 5 }