Most of the code for this plugin is fetched from(BloodyBlade's version)[L4D2] Realism Penetration Fix (v1.3 bugfix, 2014 Oct 5)
The code used to block the wound is from(Toranks's version)[L4D2] Nerf Damage To Commons [v1.0.8 | 03-March-2021]
These two plugins will conflict, moreover, to avoid complex programming, I separate the functionality I need from these two plugins.
So with this plugin.
What will this plugin do?
This mod prevents Magnum from penetrating common Infested and tearing apart the first target it hits, just like the M60.
Cvar:
cfg file in "../left4dead2/cfg/sourcemod/l4d2_realismMagnum.cfg"
PHP Code:
// This file was auto-generated by SourceMod (v1.11.0.6906)
// ConVars for plugin "l4d2_realismMagnum.smx"
// Enable this plugins?
// 0 = Disable, 1 = Enable
// -
// Default: "1"
l4d2_RealismMagnum_Enabled "1"
// Block Magnum from penetrating the first common infection?
// 0 = No, 1 = Yes, 2 = only Block in realism
// -
// Default: "1"
l4d2_RealismMagnum_blockpenet "1"
// Magnum will tore common infection to pieces?
// 0 = Disable, 1 = Enable, 2 = Only enable in realism
// -
// Default: "1"
l4d2_RealismMagnum_tore "1"
Change logs:
Code:
1.0 (26-Nov-2022)
- Initial release.
Install:
1.Click "Get Plugin" and put the *.smx file in "../addons/sourcemod/plugins".