by jojoestinky » Tue Aug 07, 2012 12:22 am
This will fix the spawns :)
name = 'SMASH FORTS'
version = '1.0'
author = 'Jason Bonham AKA JoJoe Stinky CC 2012'
description = 'CRUMB is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License'
from pyspades.constants import *
from pyspades.server import ServerConnection
def get_entity_location(team, entity_id):
if entity_id == GREEN_FLAG:
return (105, 252, 63)
if entity_id == BLUE_FLAG:
return (404, 256, 63)
if entity_id == GREEN_BASE:
return (108, 258, 63)
if entity_id == BLUE_BASE:
return (408, 257, 63)
def get_spawn_location(connection):
if connection.team is connection.protocol.blue_team:
return (236, 150, 40)
if connection.team is connection.protocol.green_team:
return (236, 380, 40)