Visit http://sauerkraut.bplaced.net for more information.
voxlap .vxl | 2.22 MiB | |
pyspades .txt | 1012 bytes |
name = 'Beach Resort'
version = '1.0'
author = 'Builders on *Sauerkraut'
description = ('Visit http://sauerkraut.bplaced.net for more information.')
# Enable this to prevent players from going too far out into the water
#extensions = {
#'boundary_damage' : {'left' : 0, 'right' : 512, 'top' : 160, 'bottom' : 353, 'damage': 5}
#}
# Enable this to optimize spawn locations.
import random
def get_spawn_location(connection):
if connection.team is connection.protocol.blue_team:
blue_spawns_x_y = [(4, 202), (26, 213), (29, 235), (19, 254), (32, 272), (11, 305), (35, 303), (28, 193)]
x, y = random.choice(blue_spawns_x_y)
if connection.team is connection.protocol.green_team:
green_spawns_x_y = [(497, 312), (474, 317), (479, 298), (483, 284), (480, 264), (503, 252), (500, 206), (462, 222)]
x, y = random.choice(green_spawns_x_y)
x += random.randrange(-3, 3)
y += random.randrange(-3, 3)
return x, y, connection.protocol.map.get_z(x, y)