Pretty much what kill said. I've started using them to great advantage. On top of that, you can also choose water damage, what quadrants to protect and turn building off in, and water damage. This is exactly what I have in one of my maps metadata at the moment.
Code: Select allextensions = { 'water_damage' : 5 }
protected = ['A1', 'A2', 'A3', 'A4', 'A5', 'A6', 'A7', 'A8', 'B1', 'B2', 'B3', 'B4', 'B5', 'B6', 'B7', 'B8', 'C1', 'C2', 'C3', 'C4', 'C5', 'C6', 'C7', 'C8', 'D1', 'D2', 'D3', 'D4', 'D5', 'D6', 'D7', 'D8', 'E1', 'E2', 'E3', 'E4', 'E5', 'E6', 'E7', 'E8', 'F1', 'F2', 'F3', 'F4', 'F5', 'F6', 'F7', 'F8', 'G1', 'G2', 'G3', 'G4', 'G5', 'G6', 'G7', 'G8', 'H1', 'H2', 'H3', 'H4', 'H5', '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 (511, 511, 1)
if entity_id == BLUE_BASE:
return (511, 511, 1)
if entity_id == GREEN_FLAG:
return (1, 1, 1)
if entity_id == GREEN_BASE:
return (1, 1, 1)
spawn_locations_blue = [
(252, 232, 56),
(223, 257, 60),
(211, 255, 61),
(211, 226, 61),
(230, 207, 61),
(252, 207, 61)
]
spawn_locations_green = [
(247, 293, 56),
(304, 257, 61),
(285, 302, 61),
(248, 303, 61),
(301, 287, 61),
(277, 250, 53)
]
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)
Keep in mind if you want some (all?) of these to work, you should download and enable dynfog.py and map_extensions.py here.