Full Version : How do I set up CTF!! (From Chatbox)
xmlspawner >>XMLPoints Discussion >>How do I set up CTF!! (From Chatbox)
<< Prev | Next >>
godfood- 05-12-2006

QUOTE
Q: how the hell do you set up ctf!!! Arte: with XmlPoints, just issue the [ctfchallenge command. Then double click the gauntlet to set it up. Q: but i mean actually setting it up Arte: Whoever started the game would add players with the Add button then you assign each player to a team by entering a number into the the little text entry area (light brown patch). In each players entry in the main gump. then place the flag for each team by pressing the Base button next to each team entry in the CTF Team Status gump. Remember to press the "Set Teams" button in the main gump after you set or change team assignments. You can find more by looking in xmlpoints.txt and doing a string search for CTF
Q: That part i've understood it's the simplest =] but i set up a full map in green acre's and i'd like the stone to be in brit, making it tele the players to green acres is what i'm confused on.. also having them get tele'd back to the stone is another thing i'd like to do.

ArteGordon- 05-13-2006

QUOTE (godfood @ May 12, 2006 05:51 pm)

QUOTE
Q: how the hell do you set up ctf!!! Arte: with XmlPoints, just issue the [ctfchallenge command. Then double click the gauntlet to set it up. Q: but i mean actually setting it up Arte: Whoever started the game would add players with the Add button then you assign each player to a team by entering a number into the the little text entry area (light brown patch). In each players entry in the main gump. then place the flag for each team by pressing the Base button next to each team entry in the CTF Team Status gump. Remember to press the "Set Teams" button in the main gump after you set or change team assignments. You can find more by looking in xmlpoints.txt and doing a string search for CTF
Q: That part i've understood it's the simplest =] but i set up a full map in green acre's and i'd like the stone to be in brit, making it tele the players to green acres is what i'm confused on.. also having them get tele'd back to the stone is another thing i'd like to do.

you would have to modify the system to tele players on game startup.
The place to do that would be in the StartGame method in CTF.cs

QUOTE
public override void StartGame() { base.StartGame(); MatchStart = DateTime.Now; SetNameHue();
// teleport to base
TeleportPlayersToBase();
}
public void TeleportPlayersToBase()
{
// teleport players to the base
if (Participants != null)
{
foreach (ChallengeEntry entry in Participants)
{
CTFBase teambase = FindBase(entry.Team);
if (entry.Participant != null && teambase != null)
{
entry.Participant.MoveToWorld(teambase.Location, teambase.Map);
}
}
}
}