Page 1 of 1

[GAME MODE] Team Deathmatch

Posted: Thu Feb 28, 2013 8:18 am
by izzy
Team Deathmatch (TDM) comes with PySnip/pyspades by default. Simply set game_mode to tdm in your config.txt to enable it:
Code: Select all
    "game_mode" : "tdm",
You can optionally configure it by adding and adjusting these two settings to your config.txt:
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.
Additional optional script to remove intels/disable capturing:

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

Re: [GAME MODE] Team Deathmatch

Posted: Thu Feb 28, 2013 6:35 pm
by LinktersHD
You might want to also state that you need to add TDM to the script list.

Re: [GAME MODE] Team Deathmatch

Posted: Thu Feb 28, 2013 7:25 pm
by topo
except you don't