Description
This plugin ignores physics damage on some clients and also removes the damage that a Tank receives from props (e.g. car).
I did this because people used to melee/shove the tv at saferoom (No Mercy map, as an example) and every time it hits a survivor, it loses an annoying 3 HP.
Also felt a bit unrealistic the amount of damage the tank loses sometimes while trying to hit a car into the survivors.
Features- Configuring which SI should ignore physics damage.
- Configuring the maximum damage to be ignored by all survivors.
Cvars
A configuration file named "
l4d_ignore_physics_damage.cfg" will automatically be created for you upon the first run in the "
\cfg\sourcemod\" folder.
PHP Code:
// Enable/Disable the plugin.
// 0 = Disable, 1 = Enable.
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
l4d_ignore_physics_damage_enable "1"
// Which special infected should ignore physics damage.
// 1 = SMOKER, 2 = BOOMER, 4 = HUNTER, 8 = SPITTER, 16 = JOCKEY, 32 = CHARGER, 64 = TANK.
// Add numbers greater than 0 for multiple options.
// Example: "127", ignores physics damage on all SI.
// -
// Default: "64"
// Minimum: "0.000000"
// Maximum: "127.000000"
l4d_ignore_physics_damage_si "64"
// Maximum physics damage to be ignored by all survivors.
// 0 = OFF.
// -
// Default: "4.0"
// Minimum: "0.000000"
l4d_ignore_physics_damage_survivor "4.0"
Admin Commands
- sm_print_cvars_l4d_ignore_physics_damage => Print the plugin related cvars and their respective values to the console. (z flag required)
Change Log
Notes
- The average damage that a common prop does to survivors is 3~4.
Related Plugins
To Do
- Find a proper way to detect the physics mass instead of checking the damage.
Post Reply
- Any feedback, bug reports, fixes, improvements, translations or suggestions for the plugin are welcome.
Installation
- Put the "l4d_ignore_physics_damage.smx" file (click Get Plugin) in your "\addons\sourcemod\plugins\" folder.