Related Plugins:
About:- Scales a survivors velocity when punched by the Tank.
- Also scales incapacitated survivors velocity.
Thanks:- KoMiKoZa - For the request.
- Lux - For notifying me.
Cvars:
Saved to
l4d_tank_punch_force.cfg in your servers
\cfg\sourcemod\ folder.
PHP Code:
// 0=Plugin off, 1=Plugin on.
l4d_tank_punch_force_allow "1"
// Scales a Survivors velocity when punched by the Tank.
l4d_tank_punch_force_force "1.0"
// Scales an Incapped Survivors velocity when punched by the Tank.
l4d_tank_punch_force_incap "0.0"
// Turn on the plugin in these game modes, separate by commas (no spaces). (Empty = all).
l4d_tank_punch_force_modes ""
// Turn off the plugin in these game modes, separate by commas (no spaces). (Empty = none).
l4d_tank_punch_force_modes_off ""
// Turn on the plugin in these game modes. 0=All, 1=Coop, 2=Survival, 4=Versus, 8=Scavenge. Add numbers together.
l4d_tank_punch_force_modes_tog "0"
// Tank Punch Force plugin version.
l4d_tank_punch_force_version
Changes:
Code:
2.1 (10-Jan-2024)
- Changed the plugins on/off/mode cvars to use the "Left 4 DHooks" method instead of creating an entity.
2.0 (12-Nov-2022)
- Added cvars "l4d_tank_punch_force_forcez" and "l4d_tank_punch_force_fling" to control the z velocity and type of fling.
- Compatibility with the "Block Stumble From Tanks" plugin by "Silvers".
- Plugin now requires "Left 4 DHooks Direct" plugin by "Silvers".
- Removed gamedata dependency.
1.3 (14-Nov-2021)
- Changes to fix warnings when compiling on SourceMod 1.11.
- Updated GameData signatures to avoid breaking when detoured by the "Left4DHooks" plugin.
1.2 (10-May-2020)
- Added better error log message when gamedata file is missing.
- Extra checks to prevent "IsAllowedGameMode" throwing errors.
1.1 (01-Apr-2020)
- Fixed "IsAllowedGameMode" from throwing errors when the "_tog" cvar was changed before MapStart.
1.0 (14-Jan-2020)
- Initial release.
Requirements:- Left 4 DHooks Direct plugin.
Installation:DO NOT click 'Get Plugin' or it will fail to compile because this plugin requires Left4DHooks!
- Download the .smx file and put into your servers \addons\sourcemod\plugins folder.
Updating from 1.3 or older:- New cvars have been added: use the Cvar Configs Updater, or delete the old cvars config or manually add them.