Code: Select all
You can optionally configure it by adding and adjusting these two settings to your config.txt: "game_mode" : "tdm",
Code: Select all
"kill_limit" : 100,
"intel_points" : 10,
- kill_limit is the total number of combined kills by all players on a team that triggers a round win when reached.
- intel_points only affects the number of "kills" added to a team's total upon capturing the intel. It doesn't affect the number of kills (10) added to a player's score on the TAB scoreboard upon capturing the intel.
disable_intel.py
Code: Select all
# disable_intel.py last modified 2013-02-22 16:21:27
from pyspades.constants import *
def apply_script(protocol, connection, config):
class DisableIntelConnection(connection):
def on_flag_take(self):
self.send_chat("Intel disabled.")
return False
return connection.on_flag_take(self)
class DisableIntelProtocol(protocol):
def on_flag_spawn(self, x, y, z, flag, entity_id):
if entity_id == GREEN_FLAG:
return (0, 0, 63)
if entity_id == BLUE_FLAG:
return (0, 0, 63)
return protocol.on_flag_spawn(self, x, y, z, flag, entity_id)
return DisableIntelProtocol, DisableIntelConnection