DESCRIPTION
In non-Realism, penetrating weapons (military sniper, hunting rifle, and magnum) all get a "penetration bonus", such that they will do at least m_iMaxHealth damage to common infected (excluding Witch who takes normal damage, and Fallen Survivor who takes iMaxHealth/2 damage)
In Realism, only the magnum gets the penetration bonus.
This plugin aims to fix this problem. It offers cvars that allow nerfing the magnum or buffing the sniper in Realism. It can be configured to provide no penetration bonus (3 shots on advanced/expert to kill most commons), half penetration bonus (2 shots to kill commons on any difficulty), or full penetration bonus (1 shot to kill commons on any difficulty)
As of v1.1, this plugin can optionally apply to non-realism modes. It can also limit the maximum number of penetration kills; by default the magnum is limited to 2 by the game and the snipers are unlimited.
CVARS
sm_realismpenfix_enable - Enables this plugin; 1 = realism only, 2 = all modes, 0 = off (default 1)
sm_realismpenfix_debug - Print debugging output (default 0)
sm_realismpenfix_nerfmagnum - 0: Full penetration bonus / 1: Half penetration bonus / 2: No penetration bonus, no distance penalty / 3: no penetration bonus, plus distance damage penalty (default 1)
sm_realismpenfix_buffsniper - 0: No penetration bonus / 1: Half penetration bonus / 2: Full penetration bonus (default 1)
sm_realismpenfix_magnumlimit - Maximum number of enemies one magnum bullet can kill (0 disables feature) (default 0)
sm_realismpenfix_sniperlimit - Maximum number of enemies one sniper bullet can kill (0 disables feature) (default 0)
CONFIG
[game]/cfg/sourcemod/l4d2_realismpenfix.cfg
If upgrading from a previous version, I recommend using SilverShot's
Cvar Configs Updater plugin to update because it's the easiest solution. Or you can add any new cvars to this file yourself. Or backup this file, delete it and it will be automatically recreated and then you can restore your backed up settings.
HISTORY
v1.3 - The distance damage penalty applied with nerfmagnum 2 was too much for some folks. So nerfmagnum 2 now ignores the distance damage penalty (base magnum damage was selected to be 78). To apply the distance damage penalty to the magnum, set nerfmagnum to 3.
v1.2 - fixed bug where OnTakeDamage called by an entity instead of a client would cause a plugin error (Array index is out of bounds) (124 views!)
v1.1 - Added support for non-realism modes (enable cvar = 2)
Added support for limiting the maximum number of enemies a single bullet can hit (magnumlimit and sniperlimit cvars)
Magnum damage for nerfmagum == 2 will be accurately reduced according to distance
DEPENDENCIES
This plugin requires SDKHooks, so please download the smx file. I use SDKHooks 2.1, but since it uses OnTakeDamage it might work with 2.0