You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+86-27Lines changed: 86 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,8 +11,8 @@
11
11
<details>
12
12
<summary>Click to expand!</summary>
13
13
14
-
Mutant Tanks: a L4D/L4D2 SourceMod Plugin
15
-
Copyright (C) 2024 Alfred "Psyk0tik" Llagas
14
+
Mutant Tanks: A L4D/L4D2 SourceMod Plugin
15
+
Copyright (C) 2017-2025 Alfred "Psyk0tik" Llagas
16
16
17
17
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
18
18
@@ -61,8 +61,8 @@ Originally an extended version of Super Tanks, Mutant Tanks combines Last Boss,
61
61
6. Store up to 500 Mutant Tank types.
62
62
7. Administration system designed for access and immunity to Mutant Tanks.
63
63
8. Custom target filters for targeting survivors, special infected, and Mutant Tanks.
64
-
9. Over 1,500 optional settings to configure.
65
-
10. Over 70 unique abilities to choose from.
64
+
9. Over 3,000 optional settings to configure.
65
+
10. Over 30 unique abilities to choose from.
66
66
11. Choose which abilities to install.
67
67
12. Add custom abilities and features through the use of forwards and natives.
68
68
13. Create all kinds of combinations of abilities.
@@ -71,6 +71,10 @@ Originally an extended version of Super Tanks, Mutant Tanks combines Last Boss,
71
71
16. Detects idle or bugged Tanks.
72
72
17. Toggle damage scaling based on difficulty.
73
73
18. Fully customizable reward system.
74
+
19. Fully customizable punishment system.
75
+
20. Fully customizable passive system.
76
+
21. Fully customizable spawn protection.
77
+
22. And many more!
74
78
</details>
75
79
76
80
## Commands
@@ -86,26 +90,50 @@ sm_mt_list - View a list of installed abilities.
86
90
sm_mt_reload - Reload the config file.
87
91
sm_tank - Spawn a Mutant Tank.
88
92
sm_mt_tank - Spawn a Mutant Tank.
93
+
sm_smoker - Spawn a Mutant Smoker.
94
+
sm_mt_smoker - Spawn a Mutant Smoker.
95
+
sm_boomer - Spawn a Mutant Boomer.
96
+
sm_mt_boomer - Spawn a Mutant Boomer.
97
+
sm_hunter - Spawn a Mutant Hunter.
98
+
sm_mt_hunter - Spawn a Mutant Hunter.
99
+
sm_spitter - Spawn a Mutant Spitter.
100
+
sm_mt_spitter - Spawn a Mutant Spitter.
101
+
sm_jockey - Spawn a Mutant Jockey.
102
+
sm_mt_jockey - Spawn a Mutant Jockey.
103
+
sm_charger - Spawn a Mutant Charger.
104
+
sm_mt_charger - Spawn a Mutant Charger.
89
105
sm_mt_version - Find out the current version of Mutant Tanks.
90
106
91
107
// Accessible by the developer only.
92
108
sm_mt_dev - Used only by and for the developer.
93
109
94
110
// Accessible by all players.
95
111
sm_mutanttank - Choose a Mutant Tank. (This command only works if the "Spawn Mode" setting under the "Plugin Settings/Human Support" section is set to 0.)
112
+
sm_mtank - Choose a Mutant Tank. (This command only works if the "Spawn Mode" setting under the "Plugin Settings/Human Support" section is set to 0.)
113
+
sm_mutantsmoker - Choose a Mutant Smoker. (This command only works if the "Spawn Mode" setting under the "Plugin Settings/Human Support" section is set to 0.)
114
+
sm_msmoker - Choose a Mutant Smoker. (This command only works if the "Spawn Mode" setting under the "Plugin Settings/Human Support" section is set to 0.)
115
+
sm_mutantboomer - Choose a Mutant Boomer. (This command only works if the "Spawn Mode" setting under the "Plugin Settings/Human Support" section is set to 0.)
116
+
sm_mboomer - Choose a Mutant Boomer. (This command only works if the "Spawn Mode" setting under the "Plugin Settings/Human Support" section is set to 0.)
117
+
sm_mutanthunter - Choose a Mutant Hunter. (This command only works if the "Spawn Mode" setting under the "Plugin Settings/Human Support" section is set to 0.)
118
+
sm_mhunter - Choose a Mutant Hunter. (This command only works if the "Spawn Mode" setting under the "Plugin Settings/Human Support" section is set to 0.)
119
+
sm_mutantspitter - Choose a Mutant Spitter. (This command only works if the "Spawn Mode" setting under the "Plugin Settings/Human Support" section is set to 0.)
120
+
sm_mspitter - Choose a Mutant Spitter. (This command only works if the "Spawn Mode" setting under the "Plugin Settings/Human Support" section is set to 0.)
121
+
sm_mutantjockey - Choose a Mutant Jockey. (This command only works if the "Spawn Mode" setting under the "Plugin Settings/Human Support" section is set to 0.)
122
+
sm_mjockey - Choose a Mutant Jockey. (This command only works if the "Spawn Mode" setting under the "Plugin Settings/Human Support" section is set to 0.)
123
+
sm_mutantcharger - Choose a Mutant Charger. (This command only works if the "Spawn Mode" setting under the "Plugin Settings/Human Support" section is set to 0.)
124
+
sm_mcharger - Choose a Mutant Charger. (This command only works if the "Spawn Mode" setting under the "Plugin Settings/Human Support" section is set to 0.)
96
125
sm_mt_info - View information about Mutant Tanks.
97
126
sm_mt_prefs - Set your Mutant Tanks preferences.
98
127
99
128
// Packaged
100
-
sm_mt_ability - View information about each ability (A-L).
101
-
sm_mt_ability2 - View information about each ability (M-Z).
129
+
sm_mt_ability - View information about each ability (A-J).
130
+
sm_mt_ability2 - View information about each ability (L-Z).
102
131
103
132
// Standalone
104
133
sm_mt_absorb - View information about the Absorb ability.
105
134
sm_mt_acid - View information about the Acid ability.
106
135
sm_mt_aimless - View information about the Aimless ability.
107
136
sm_mt_ammo - View information about the Ammo ability.
108
-
sm_mt_blind - View information about the Blind ability.
109
137
sm_mt_bomb - View information about the Bomb ability.
110
138
sm_mt_bury - View information about the Bury ability.
111
139
sm_mt_car - View information about the Car ability.
@@ -127,27 +155,21 @@ sm_mt_god - View information about the God ability.
127
155
sm_mt_gravity - View information about the Gravity ability.
128
156
sm_mt_gunner - View information about the Gunner ability.
129
157
sm_mt_heal - View information about the Heal ability.
130
-
sm_mt_hit - View information about the Hit ability.
131
158
sm_mt_hurt - View information about the Hurt ability.
132
159
sm_mt_hypno - View information about the Hypno ability.
133
160
sm_mt_ice - View information about the Ice ability.
134
161
sm_mt_idle - View information about the Idle ability.
135
162
sm_mt_invert - View information about the Invert ability.
136
-
sm_mt_item - View information about the Item ability.
137
163
sm_mt_jump - View information about the Jump ability.
138
-
sm_mt_kamikaze - View information about the Kamikaze ability.
139
164
sm_mt_lag - View information about the Lag ability.
140
165
sm_mt_laser - View information about the Laser ability.
141
-
sm_mt_leech - View information about the Leech ability.
142
166
sm_mt_lightning - View information about the Lightning ability.
143
167
sm_mt_medic - View information about the Medic ability.
144
168
sm_mt_meteor - View information about the Meteor ability.
145
169
sm_mt_minion - View information about the Minion ability.
146
-
sm_mt_necro - View information about the Necro ability.
147
170
sm_mt_nullify - View information about the Nullify ability.
148
171
sm_mt_omni - View information about the Omni ability.
149
172
sm_mt_panic - View information about the Panic ability.
150
-
sm_mt_pimp - View information about the Pimp ability.
151
173
sm_mt_puke - View information about the Puke ability.
152
174
sm_mt_pyro - View information about the Pyro ability.
153
175
sm_mt_quiet - View information about the Quiet ability.
@@ -157,28 +179,19 @@ sm_mt_regen - View information about the Regen ability.
157
179
sm_mt_respawn - View information about the Respawn ability.
158
180
sm_mt_restart - View information about the Restart ability.
159
181
sm_mt_rock - View information about the Rock ability.
160
-
sm_mt_rocket - View information about the Rocket ability.
161
-
sm_mt_shake - View information about the Shake ability.
162
182
sm_mt_shield - View information about the Shield ability.
163
183
sm_mt_shove - View information about the Shove ability.
164
184
sm_mt_slow - View information about the Slow ability.
165
185
sm_mt_smash - View information about the Smash ability.
166
-
sm_mt_smite - View information about the Smite ability.
167
-
sm_mt_spam - View information about the Spam ability.
168
-
sm_mt_splash - View information about the Splash ability.
169
-
sm_mt_splatter - View information about the Splatter ability.
170
186
sm_mt_throw - View information about the Throw ability.
171
187
sm_mt_track - View information about the Track ability.
172
188
sm_mt_ultimate - View information about the Ultimate ability.
173
189
sm_mt_undead - View information about the Undead ability.
174
-
sm_mt_vampire - View information about the Vampire ability.
175
190
sm_mt_vision - View information about the Vision ability.
176
191
sm_mt_warp - View information about the Warp ability.
177
192
sm_mt_whirl - View information about the Whirl ability.
178
193
sm_mt_witch - View information about the Witch ability.
179
-
sm_mt_xiphos - View information about the Xiphos ability.
180
194
sm_mt_yell - View information about the Yell ability.
181
-
sm_mt_zombie - View information about the Zombie ability.
182
195
```
183
196
</details>
184
197
@@ -232,6 +245,17 @@ mt_enabledgamemodes ""
232
245
// Maximum: "15.000000"
233
246
mt_gamemodetypes "0"
234
247
248
+
// Sets the graphics level of the plugin to help with server performance.
249
+
// 0: OFF
250
+
// 1: Low
251
+
// 2: Medium
252
+
// 3: High
253
+
// -
254
+
// Default: "3"
255
+
// Minimum: "0.000000"
256
+
// Maximum: "3.000000"
257
+
mt_graphicslevel "3"
258
+
235
259
// Enable Mutant Tanks on listen servers.
236
260
// 0: OFF
237
261
// 1: ON
@@ -1232,6 +1256,21 @@ forward void MT_OnRockThrow(int tank, int rock);
1232
1256
**/
1233
1257
forward void MT_OnSettingsCached(int tank, bool apply, int type);
1234
1258
1259
+
/**
1260
+
* Called when a passive is given to or taken away from a survivor.
1261
+
* Use this forward to give or take away passives.
1262
+
*
1263
+
* @param survivor Client index of the survivor.
1264
+
* @param type 1 = Health, 2 = Damage boost, 4 = Speed boost, 8 = Ammo, 16 = Item, 32 = God mode, 64 = Health and ammo refill, 128 = Respawn,
1265
+
* 255 = All eight passives, 256-2147483647 = Reserved for third-party plugins
1266
+
* @param apply True if the passive is given, false otherwise.
1267
+
* @param weaponOnly True if the passive is given to weapons only, false otherwise.
1268
+
* @param weaponIndex Type index of the weapon.
1269
+
*
1270
+
* @return Plugin_Handled to prevent giving or taking passives, Plugin_Continue to allow.
1271
+
**/
1272
+
forward Action MT_OnToggleSurvivorPassive(int survivor, int &type, bool apply, bool weaponOnly, int weaponIndex);
1273
+
1235
1274
/**
1236
1275
* Called when a Mutant Tank type has been chosen.
1237
1276
* Use this forward to check or change the chosen type.
* @error Invalid client index, client is not in-game, or type is 0 or less.
1675
1734
**/
1676
-
native void MT_SpawnTank(int tank, int type);
1735
+
native void MT_SpawnTank(int tank, int type, int specType = 0);
1677
1736
1678
1737
/**
1679
1738
* Staggers a player from a certain direction.
@@ -2581,7 +2640,7 @@ Whatever each button activates is entirely up to your configuration settings.
2581
2640
2582
2641
4. How do I change the buttons or add extra buttons?
2583
2642
2584
-
Edit lines `104-107` of the `mutant_tanks.inc` file and recompile each ability plugin.
2643
+
Edit lines `107-110` of the `mutant_tanks.inc` file and recompile each ability plugin.
2585
2644
</details>
2586
2645
<details>
2587
2646
<summary>Question 5</summary>
@@ -2659,7 +2718,7 @@ That setting is a special mode setting for players, which can determine how some
2659
2718
2660
2719
10. Is there any way players can view information about this feature in-game?
2661
2720
2662
-
Yes, use the `sm_mt_ability`/`sm_mt_ability2` commands.
2721
+
Yes, use the `sm_mt_ability` command.
2663
2722
2664
2723
The commands will each provide a menu that players can use to display certain information in chat.
2665
2724
@@ -2753,7 +2812,7 @@ Set the values in `Execute Config Types`.
2753
2812
2754
2813
**honorcode23** - For the [[L4D & L4D2] New Custom Commands](https://forums.alliedmods.net/showthread.php?t=133475) plugin.
2755
2814
2756
-
**panxiaohai** - For the [[L4D & L4D2] We Can Not Survive Alone](https://forums.alliedmods.net/showthread.php?t=167389), [[L4D & L4D2] Melee Weapon Tank](https://forums.alliedmods.net/showthread.php?t=166356), [[L4D & L4D2] Tank's Power](https://forums.alliedmods.net/showthread.php?t=134537), and [[L4D & L4D2] Automatic Robot](https://forums.alliedmods.net/showthread.php?t=130177) plugins.
2815
+
**panxiaohai** - For the [[L4D & L4D2] We Can Not Survive Alone](https://forums.alliedmods.net/showthread.php?t=167389), [[L4D & L4D2] Melee Weapon Tank](https://forums.alliedmods.net/showthread.php?t=166356), [[L4D & L4D2] Tank's Power](https://forums.alliedmods.net/showthread.php?t=134537), [[L4D & L4D2] Automatic Robot](https://forums.alliedmods.net/showthread.php?t=130177), and [[L4D2] Variable Size Of Infected and Witch](https://forums.alliedmods.net/showthread.php?t=165905) plugins.
2757
2816
2758
2817
**strontiumdog** - For the [[ANY] Evil Admin: Mirror Damage](https://forums.alliedmods.net/showthread.php?t=79321), [[ANY] Evil Admin: Pimp Slap](https://forums.alliedmods.net/showthread.php?t=79322), [[ANY] Evil Admin: Rocket](https://forums.alliedmods.net/showthread.php?t=79617), and [Evil Admin: Vision](https://forums.alliedmods.net/showthread.php?t=79324) plugins.
2759
2818
@@ -2843,7 +2902,7 @@ Set the values in `Execute Config Types`.
0 commit comments