Definitely not a grass square
voxlap .vxl | 2.03 MiB | |
pyspades .txt | 999 bytes |
Water damage 🌊
name = 'grassSquare'
version = '1.0'
author = 'andr3w'
description = 'Definitely not a grass square'
extensions = { 'water_damage' : 25}
# script
from pyspades.constants import *
import random
def get_entity_location(team, entity_id):
if entity_id == BLUE_FLAG:
return (175, 256, 50)
if entity_id == GREEN_FLAG:
return (335, 256, 8)
if entity_id == BLUE_BASE:
return (180, 256, 8)
if entity_id == GREEN_BASE:
return (330, 256, 8)
def get_spawn_location(connection):
if connection.team is connection.protocol.blue_team:
side = random.randrange(1,3)
if side == 1:#west
y = random.randrange(180,330)
x = 180
elif side == 2:#north
y = 173
x = random.randrange(182,220)
elif side == 3:#south
y = 337
x = random.randrange(182,220)
return (x, y, 60)
if connection.team is connection.protocol.green_team:
y = random.randrange(251,261)
x = 336
return (x, y, 60)