A much better version of Termina. This time to Scale!
voxlap .vxl | 2.17 MiB | |
pyspades .txt | 1.80 KiB |
Water damage 🌊
name = 'Clock Town'
version = '2.0'
author = 'Sasquatch'
description = ('A much better version of Termina. This time to Scale!')
extensions = { '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),
(222, 265, 60),
(222, 248, 57),
(223, 223, 57),
(222, 234, 56),
(239, 230, 56),
(223, 257, 60),
(211, 255, 61),
(211, 226, 61),
(230, 207, 61),
(252, 207, 61)
]
spawn_locations_green = [
(247, 293, 56),
(279, 265, 53),
(277, 238, 52),
(273, 283, 53),
(254, 293, 53),
(240, 297, 55),
(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)