Build server: moving intel and bases
Posted: Sun Feb 14, 2016 12:51 am
How do I move the bases and intel on a build server?
Ace of Spades / OpenSpades
http://www.buildandshoot.com/forums/
http://www.buildandshoot.com/forums/viewtopic.php?f=8&t=13542
PanzerShrek wrote:How do I move the bases and intel on a build server?You have to do it in the map's .txt file. Here's an example:
name='cool map'
version = '1.0'
author = 'someone'
description = 'wut'
# script
from pyspades.constants import *
import random
def get_entity_location(team, entity_id):
if entity_id == BLUE_FLAG:
return (10, 34, 59)
if entity_id == GREEN_FLAG:
return (239, 49, 54)
if entity_id == BLUE_BASE:
return (x, y, z)
if entity_id == GREEN_BASE:
return (x, y, z)