Page 1 of 1

Build server: moving intel and bases

Posted: Sun Feb 14, 2016 12:51 am
by PanzerShrek
How do I move the bases and intel on a build server?

Re: Build server: moving intel and bases

Posted: Wed May 18, 2016 4:22 pm
by Amatt
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:
Code: Select all
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)