Update July 10, 2012:
The arena script has been updated to flash the team color at the end of the round. Also, an option has been added to allow multiple spawning locations for each team. The comments in the script have been changed to reflect the new options. See the example in the script comments to learn how this works.
Some bugs have been fixed. If the players escape the spawn somehow they will be teleported back. Fixed a bug where points weren't awarded on a game that ends at the time limit.
- Code: Select all
# The spawn location/s for the green team are set by using the data from the 'arena_green_spawns'
# tuple in the extensions dictionary. Likewise, the blue spawn/s is set with the 'arena_blue_spawns'
# key. 'arena_green_spawns' and 'arena_blue_spawns' are tuples which contain tuples of spawn
# coordinates. Spawn locations are chosen randomly.
# NOTE THAT THE SCRIPT RETAINS BACKWARDS COMPATIBILITY with the old 'arena_green_spawn' and
# 'arena_blue_spawn'
- Code: Select all
# Sample extensions dictionary of an arena map with two gates:
# In this example there is one spawn location for blue and two spawn locations for green.
# extensions = {
# 'arena': True,
# 'arena_blue_spawns' : ((128, 256, 60),),
# 'arena_green_spawns' : ((384, 256, 60), (123, 423, 51)),
# 'arena_gates': ((192, 236, 59), (320, 245, 60))
# }
Tip: use the /coord (and then hit a block with the spade) and /where admin commands to help you get block locations when setting up the script (you can temporarily set ALWAYS_ENABLED to False to turn off arena mode so that you can use /coord)
Download: https://raw.github.com/matpow2/pyspades ... r/arena.py
Arena is a game of team survival. The last team standing while playing in arena mode gets a point (counted using intel captures). When you die in arena mode you will not re-spawn until the round ends. A round ends when all the players on one team are killed. Then, 15 seconds elapses (default) in which the players are contained in a spawn zone and can freely change weapons. After the 15 seconds, the gates of the spawn zones are destroyed, releasing the players into the map.
Making the gates in-game
The Ace of Spades client automatically varies the colors of blocks slightly when they are placed. However, since pyspades does not have this "feature," you can use this workaround to get gates of a uniform color without having to recolor the blocks in voxed or the pyspades map editor.
- Start up your server and build the gates in the client like usual.
- Disconnect from the server
- Reconnect to your server
- Save the map using the F1 key
- Go to your Ace of Spades installation folder (usually C:\Ace of Spades) and in the vxl directory the lastsav.vxl file will be your map.