1
1
# Deathrun Neu
2
2
3
- Deathrun Neu is inspired by the plugins I played many years ago that were never made accessible to the public.
4
- It aims to keep weapon restrictions as little as possible while not ruining the core gameplay.
3
+ A Deathrun plugin for Team Fortress 2 with minimal weapon and class restrictions.
5
4
6
5
## Features
7
6
8
- * Activator queue system (` !drqueue ` )
9
- * Ability to hide other players in crowded areas (` !drhide ` )
10
- * Dynamic Activator health for fair combat minigames
11
- * Configurable round timer (using the ` tf_arena_round_time ` ConVar)
7
+ * Activator queue system (` !queue ` )
8
+ * Ability to toggle visility of teammates in crowded areas (` !hideplayers ` )
9
+ * Dynamic activator health for combat minigames
10
+ * Anti-exploit measures
12
11
* Highly customizable item and plugin configuration
13
12
14
13
## Dependencies
15
14
16
- * SourceMod 1.11
17
- * [ DHooks with Detour Support] ( https://forums.alliedmods.net/showpost.php?p=2588686&postcount=589 )
15
+ * SourceMod 1.12+
18
16
* [ TF2Attributes] ( https://forums.alliedmods.net/showthread.php?t=210221 )
17
+ * [ TF2Items] ( https://forums.alliedmods.net/showthread.php?t=115100 )
18
+ * [ TF2 Econ Data] ( https://forums.alliedmods.net/showthread.php?t=315011 )
19
+ * [ Plugin State Manager] ( https://github.com/Mikusch/PluginStateManager ) (compile only)
19
20
* [ More Colors] ( https://forums.alliedmods.net/showthread.php?t=185016 ) (compile only)
20
21
21
22
## Configuration
22
23
23
24
The global item configuration found in ` configs/deathrun/items.cfg ` allows you to configure and restrict each player's
24
- items as you please. Map-specific configuration files are read from the ` configs/deathrun/maps ` directory.
25
+ items as you please.
25
26
26
27
For example, there are two different ways to disable the jumping capabilities of the Ullapool Caber.
27
28
@@ -32,98 +33,65 @@ Using attributes:
32
33
{
33
34
"attributes"
34
35
{
35
- "1" // Zeroes out the self damage push force
36
- {
37
- "name" "self dmg push force decreased"
38
- "value" "0.0"
39
- "mode" "set"
40
- }
36
+ "self dmg push force decreased" "0"
41
37
}
42
38
}
43
39
```
44
40
45
- Using entity properties (advanced) :
41
+ Using netprops :
46
42
47
43
```
48
44
"307" // Ullapool Caber
49
45
{
50
- "entprops "
46
+ "netprops "
51
47
{
52
- "1 " // Makes the weapon start already detonated
48
+ "m_iDetonated " // Makes the weapon start already detonated
53
49
{
54
- "target" "weapon"
55
- "name" "m_iDetonated"
56
- "type" "send"
50
+ "target" "item"
51
+ "type" "send"
57
52
"field_type" "int"
58
- "value" "1"
53
+ "value" "1"
59
54
}
60
55
}
61
56
}
62
57
```
63
58
64
- These two methods may also be combined. For example, to give Medics a one-time use ÜberCharge that can not be rebuilt:
59
+ These two methods may also be combined. For example, you can give Medics a one-time use ÜberCharge with this
60
+ configuration:
65
61
66
62
```
67
63
"29" // Medi Gun
68
64
{
69
65
"attributes"
70
66
{
71
- "1"
72
- {
73
- "name" "heal rate penalty" // No healing
74
- "value" "0.0"
75
- }
76
- "2"
77
- {
78
- "name" "ubercharge rate penalty" // No ÜberCharge gain
79
- "value" "0.0"
80
- }
67
+ "heal rate penalty" "0" // No healing
68
+ "ubercharge rate penalty" "0" // No ÜberCharge gain
81
69
}
82
- "entprops "
70
+ "netprops "
83
71
{
84
- "1 " // Sets the ÜberCharge level to 100%
72
+ "m_flChargeLevel " // Sets the ÜberCharge level to 100%
85
73
{
86
- "target" "weapon"
87
- "name" "m_flChargeLevel"
88
- "type" "send"
74
+ "target" "weapon"
75
+ "type" "send"
89
76
"field_type" "float"
90
- "value" "1.0 "
77
+ "value" "1 "
91
78
}
92
79
}
93
80
}
94
81
```
95
82
96
- See [ items.cfg] ( /addons/sourcemod/configs/deathrun/items.cfg ) for more details and the default configuration.
83
+ If you don't want to copy-paste the same configuration onto similar weapons, you may use the prefabs system. After an
84
+ item has been defined, you can copy its properties over to another weaopon:
97
85
98
- ### Map Configuration
99
-
100
- Some older maps have issues with players being able to activate buttons or kill other players through walls with
101
- explosive or throwable weapons. Instead of having to block these weapons in the global item configuration you have the
102
- option of creating a configuration file for each map.
103
-
104
- To do that, put a file called ` <map name>.items.cfg ` in the ` configs/deathrun/maps ` directory. Workshop prefixes and
105
- suffixes should be omitted.
106
-
107
- Any item definition indexes specified in a map-specific item configuration will override the global configuration.
108
-
109
- ## ConVars
110
-
111
- - ` dr_version ` - Plugin version, don't touch.
112
- - ` dr_queue_points ( def. "15" ) ` - Amount of queue points awarded to runners at the end of each round.
113
- - ` dr_chattips_interval ( def. "240" ) ` - Interval between helpful tips printed to chat, in seconds. Set to 0 to disable
114
- chat tips.
115
- - ` dr_runner_glow ( def. "0" ) ` - If enabled, runners will have a glowing outline.
116
- - ` dr_activator_count ( def. "1" ) ` - Amount of activators chosen at the start of a round.
117
- - ` dr_activator_health_modifier ( def. "1.0" ) ` - Modifier of the health the activator receives from runners.
118
- - ` dr_activator_healthbar ( def. "1" ) ` - If enabled, the activator health will be displayed on screen.
119
- - ` dr_backstab_damage ( def. "750.0" ) ` - Damage dealt to the activator by backstabs. Set to 0 to let the game determine the damage.
120
- - ` dr_speed_modifier ( def. "0.0" ) ` - Maximum speed modifier for all classes, in HU/s.
121
- - ` dr_speed_modifier_scout ( def. "0.0" ) ` - Maximum speed modifier for Scout, in HU/s.
122
- - ` dr_speed_modifier_sniper ( def. "0.0" ) ` - Maximum speed modifier for Sniper, in HU/s.
123
- - ` dr_speed_modifier_soldier ( def. "0.0" ) ` - Maximum speed modifier for Soldier, in HU/s.
124
- - ` dr_speed_modifier_demoman ( def. "0.0" ) ` - Maximum speed modifier for Demoman, in HU/s.
125
- - ` dr_speed_modifier_medic ( def. "0.0" ) ` - Maximum speed modifier for Medic, in HU/s.
126
- - ` dr_speed_modifier_heavy ( def. "0.0" ) ` - Maximum speed modifier for Heavy, in HU/s.
127
- - ` dr_speed_modifier_pyro ( def. "0.0" ) ` - Maximum speed modifier for Pyro, in HU/s.
128
- - ` dr_speed_modifier_spy ( def. "0.0" ) ` - Maximum speed modifier for Spy, in HU/s.
129
- - ` dr_speed_modifier_engineer ( def. "0.0" ) ` - Maximum speed modifier for Engineer, in HU/s.
86
+ ```
87
+ "211" // Medi Gun (Renamed/Strange)
88
+ {
89
+ "prefab" "29"
90
+ }
91
+ "35" // Kritzkrieg
92
+ {
93
+ "prefab" "29"
94
+ }
95
+ ```
96
+
97
+ See [ items.cfg] ( /addons/sourcemod/configs/deathrun/items.cfg ) for more details and the default configuration.
0 commit comments