Mikusch / deathrun

A highly customizable Deathrun plugin for Team Fortress 2
GNU General Public License v3.0
20 stars 9 forks source link
deathrun sourcemod team-fortress-2 tf2

Deathrun Neu

Deathrun Neu is inspired by the plugins I played many years ago that were never made accessible to the public. It aims to keep weapon restrictions as little as possible while not ruining the core gameplay.

Features

Dependencies

Configuration

The global item configuration found in configs/deathrun/items.cfg allows you to configure and restrict each player's items as you please. Map-specific configuration files are read from the configs/deathrun/maps directory.

For example, there are two different ways to disable the jumping capabilities of the Ullapool Caber.

Using attributes:

"307"   // Ullapool Caber
{
    "attributes"
    {
        "1" // Zeroes out the self damage push force
        {
            "name"  "self dmg push force decreased"
            "value" "0.0"
            "mode"  "set"
        }
    }
}

Using entity properties (advanced):

"307"   // Ullapool Caber
{
    "entprops"
    {
        "1" // Makes the weapon start already detonated
        {
            "target"    "weapon"
            "name"      "m_iDetonated"
            "type"      "send"
            "field_type"    "int"
            "value"     "1"
        }
    }
}

These two methods may also be combined. For example, to give Medics a one-time use ÜberCharge that can not be rebuilt:

"29"    // Medi Gun
{
    "attributes"
    {
        "1"
        {
            "name"  "heal rate penalty" // No healing
            "value" "0.0"
        }
        "2"
        {
            "name"  "ubercharge rate penalty"   // No ÜberCharge gain
            "value" "0.0"
        }
    }
    "entprops"
    {
        "1" // Sets the ÜberCharge level to 100%
        {
            "target"    "weapon"
            "name"      "m_flChargeLevel"
            "type"      "send"
            "field_type"    "float"
            "value"     "1.0"
        }
    }
}

See items.cfg for more details and the default configuration.

Map Configuration

Some older maps have issues with players being able to activate buttons or kill other players through walls with explosive or throwable weapons. Instead of having to block these weapons in the global item configuration you have the option of creating a configuration file for each map.

To do that, put a file called <map name>.items.cfg in the configs/deathrun/maps directory. Workshop prefixes and suffixes should be omitted.

Any item definition indexes specified in a map-specific item configuration will override the global configuration.

ConVars