|
Senior Member
Join Date: Oct 2020
Location: Orlando, FL
|
12-05-2020
, 19:13
Re: [L4D2] Reverse Friendly-Fire [v1.0 (05-Dec-2020)]
|
#2
|
I know there are many friendly-fire plugins out there already, but it has been my experience that most of them do not work at all or have too many bugs to be useful. I had been using one of those other plugins for a while, and fixed several bugs with it, but some things just could not be fixed (hooking player_hurt), so I created this new plugin using the new (SM 1.7+) syntax. This plugin hooks SDKHook_OnTakeDamage to intercept damage, and uses SDKHooks_TakeDamage to reverse the damage. Note that if you shoot a teammate with explosive ammo, you (the attacker) will be stumbled, not the victim. Similarly, if you shoot a teammate with incendiary ammo, you (the attacker) will be lit on fire for a few seconds, not the victim.
Last edited by Mystik Spiral; 12-21-2020 at 13:36.
|
|
|
|