## GENERATED WITH BLOCKMAN2D v0.2.5.0 name = 'Lone Bridge' version = '' author = 'Lelue' description = '' extensions = { 'water_damage' : 100, 'user_blocks_only' : True } from pyspades.constants import * from pyspades.server import ServerConnection import random def get_entity_location(team, entity_id): if entity_id == BLUE_FLAG: return 198, 248, 55 if entity_id == GREEN_FLAG: return 313, 248, 55 if entity_id == BLUE_BASE: return 193, 248, 32 if entity_id == GREEN_BASE: return 318, 248, 32 SPAWN_RECTANGLES = [[(319,326,226,270)], [(186,193,225,270)]] def get_spawn_location(connection): if SPAWN_RECTANGLES is not None: if connection.team is connection.protocol.green_team: x1, x2, y1, y2 = random.choice(SPAWN_RECTANGLES[0]) elif connection.team is connection.protocol.blue_team: x1, x2, y1, y2 = random.choice(SPAWN_RECTANGLES[1]) x, y = random.randint(x1,x2), random.randint(y1,y2) z = connection.protocol.map.get_z(x, y) if x is not None and y is not None and z is not None: return x, y, z else: return ServerConnection.get_spawn_location(connection))