A narrow but steep map themed around the Himalaya Mountains.
voxlap .vxl | 2.18 MiB | |
pyspades .txt | 847 bytes |
Water damage 🌊
name = 'Himalaya'
version = '1.0'
author = 'IAmYourFriend'
description = ('A narrow but steep map themed around the Himalaya Mountains.')
extensions = { 'water_damage' : 10 }
# The following code is for optimizing the spawn locations.
import random
def get_spawn_location(connection):
if connection.team is connection.protocol.blue_team:
blue_spawns_x_y = [(31, 257), (39, 252), (49, 236), (61, 227), (66, 216), (79, 222), (91, 231)]
x, y = random.choice(blue_spawns_x_y)
if connection.team is connection.protocol.green_team:
green_spawns_x_y = [(474, 232), (458, 236), (449, 219), (435, 220), (431, 229), (423, 220), (414, 231)]
x, y = random.choice(green_spawns_x_y)
x += random.randrange(-4, 4)
y += random.randrange(-4, 4)
return x, y, connection.protocol.map.get_z(x, y)