About:- Prevents the Witch from insta-killing survivors.
- Damage values for incapped survivors and non-incapped are scaled to the game difficulty with the plugins scale cvar.
- l4d_witch_damage_scale "25,50,75,100" - This means 25% of the cvars damage value on Easy difficulty, 100% on Expert.
Thanks:
Cvars:
Saved to
l4d_witch_damage.cfg in your servers
\cfg\sourcemod\ folder.
PHP Code:
// 0=Plugin off, 1=Plugin on.
l4d_witch_damage_allow "1"
// Damage applied when survivor is not incapped. Scaled with scale cvar depending on the game difficulty.
l4d_witch_damage_damage "100"
// Damage applied when survivor is incapped. Scaled with scale cvar depending on the game difficulty.
l4d_witch_damage_incapped "30"
// Scales damage depending on game difficulty, each comma separated: 1st = Easy. 2nd = Normal. 3rd = Advanced. 4th = Expert.
l4d_witch_damage_scale "100,100,100,100"
// Turn on the plugin in these game modes, separate by commas (no spaces). (Empty = all).
l4d_witch_damage_modes ""
// Turn off the plugin in these game modes, separate by commas (no spaces). (Empty = none).
l4d_witch_damage_modes_off ""
// Turn on the plugin in these game modes. 0=All, 1=Coop, 2=Survival, 4=Versus, 8=Scavenge. Add numbers together.
l4d_witch_damage_modes_tog "0"
// Witch Damage plugin version.
l4d_witch_damage_version
Changes:
Code:
1.6 (29-Aug-2022)
- Fixed damage not setting correctly when the victim has temporary health. Thanks to "a2121858" for reporting.
1.5 (15-May-2020)
- Replaced "point_hurt" entity with "SDKHooks_TakeDamage" function.
1.4 (10-May-2020)
- Extra checks to prevent "IsAllowedGameMode" throwing errors.
1.3 (01-Apr-2020)
- Fixed "IsAllowedGameMode" from throwing errors when the "_tog" cvar was changed before MapStart.
1.2 (16-Feb-2020)
- Fixed not doing damage due to wrong string size mistake.
1.1 (17-Sep-2019)
- Fixed not working in all cases. - Thanks to "cacaopea" for reporting.
1.0 (16-Sep-2019)
- Initial release.
Installation:- Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder.