[GAME MODE] Team Deathmatch

3 posts Page 1 of 1 First unread post
izzy
Head Admin / Co-founder
Head Admin / Co-founder
Posts: 474
Joined: Tue Oct 09, 2012 8:16 pm


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
LinktersHD
Deuced Up
Posts: 124
Joined: Thu Nov 01, 2012 12:27 pm


You might want to also state that you need to add TDM to the script list.
topo
Global Moderator
Global Moderator
Posts: 179
Joined: Thu Nov 01, 2012 12:43 pm


except you don't
3 posts Page 1 of 1 First unread post
Return to “Game Modes”

Who is online

Users browsing this forum: No registered users and 15 guests