[GAME MODE] Halo Style Infection
Posted: Wed Jun 24, 2015 9:38 am
After spending many, MANY hours playing Halo: Reach Infection mode I was lead to create that style of game in Ace of Spades. And that's what I have done here. The aim of this game-mode is to replicate, to some extent the gameplay of Halo Infection. For those that don't know what that is...
The main advantage zombies have is the ability to "lunge" when they press the sneak button (default bound to 'v'). I had to modify Dr.Morphman's "Hookshot" to only allow zombies to use it (Dr.Morphman's Script: http://buildandshoot.com/viewtopic.php?f=67&t=9817).
As such I am redistributing his script with my modifications, so to make it clear HOOKSHOT.PY IS NOT MY OWN WORK.
There are some requirements for metadata to be placed in the map.txt file for the map you are using. In the extensions tag you must place:
Maps
- Humans are armed with their guns and grenades, while zombies can only damage players with the spade. Nobody can build or break blocks.
- The goal for the humans is to survive for the length of one round (configurable)
- The goal for the zombies is to kill all humans
- When a zombie kills a human they are "infected" and respawn as a zombie. The zombies win when there are no humans left, while humans win if there are any humans alive at the end of the round
The main advantage zombies have is the ability to "lunge" when they press the sneak button (default bound to 'v'). I had to modify Dr.Morphman's "Hookshot" to only allow zombies to use it (Dr.Morphman's Script: http://buildandshoot.com/viewtopic.php?f=67&t=9817).
As such I am redistributing his script with my modifications, so to make it clear HOOKSHOT.PY IS NOT MY OWN WORK.
There are some requirements for metadata to be placed in the map.txt file for the map you are using. In the extensions tag you must place:
- An entry called "infection" and it's value must be True
- An entry called "zombie_spawns" that contains a series of tuples specifying coordinates for zombie spawns. THERE MUST BE AT LEAST 2.
- An entry called "human_spawn" that contains a SINGLE tuple specifying the coordinates for the human's spawn
Code: Select all
I will be making maps for this gamemode myself, which I will post in the maps section and update this with links to them.name = 'Desert_Combat'
version = '0.1'
author = 'unknown'
description = 'korea sever'
from pyspades.constants import *
from pyspades.server import ServerConnection
def get_entity_location(team, entity_id):
if entity_id == BLUE_FLAG:
z = team.protocol.map.get_z(0, 0)
return (0, 0, z)
def get_spawn_location(connection):
if connection.name == '':
x, y, z = ServerConnection.get_spawn_location(connection)
return (x, y, z)
if connection.team is connection.protocol.blue_team:
x, y, z = ServerConnection.get_spawn_location(connection)
return (281, 274, 58)
if connection.team is connection.protocol.green_team:
x, y, z = ServerConnection.get_spawn_location(connection)
return (435, 263, 58)
def get_entity_location(team, entity_id):
if entity_id == BLUE_FLAG:
return (435, 254, 58)
if entity_id == GREEN_FLAG:
return (281, 263, 58)
if entity_id == BLUE_BASE:
return (435, 280, 58)
if entity_id == GREEN_BASE:
return (281, 272, 58)
extensions = {
'water_damage' : 50,
'infection' : True,
'zombie_spawns' : ((281,263,58),(281,263,58)),
'human_spawn' : (435,254,58)
}
Maps
- None yet :p