name = 'Taffy' version = '1.0' author = 'Sasquatch' description = ('A world of mountains and tunnels... of goo.') extensions = { 'water_damage' : 10 } protected = ['A1', 'A2', 'A3', 'A6', 'A7', 'A8', 'B1', 'B2', 'B3', 'B6', 'B7', 'B8', 'C1', 'C2', 'C3', 'C6', 'C7', 'C8', 'D1', 'D2', 'D3', 'D6', 'D7', 'D8', 'E1', 'E2', 'E3', 'E6', 'E7', 'E8', 'F1', 'F2', 'F3', 'F6', 'F7', 'F8', 'G1', 'G2', 'G3', 'G6', 'G7', 'G8', 'H1', 'H2', 'H3', 'H6', 'H7', 'H8'] # scripting from random import randrange, choice from pyspades.constants import * from pyspades.server import ServerConnection from commands import choice def get_entity_location(team, entity_id): if entity_id == BLUE_FLAG: return (46, 221, 58) if entity_id == BLUE_BASE: return (40, 221, 58) if entity_id == GREEN_FLAG: return (466, 299, 58) if entity_id == GREEN_BASE: return (472, 299, 58) spawn_locations_blue = [ (8, 284, 59), (11, 317, 58), (14, 194, 58), (42, 300, 58), (30, 212, 58) ] spawn_locations_green = [ (491, 318, 58), (462, 194, 58), (478, 230, 58), (480, 212, 58), (490, 300, 58) ] def get_spawn_location(connection): if connection.team is connection.protocol.blue_team: x, y, z = choice(spawn_locations_blue) return x, y, z if connection.team is connection.protocol.green_team: x, y, z = choice(spawn_locations_green) return x, y, z fog = (250, 200, 100)