View Single Post
Mystik Spiral
Senior Member
Join Date: Oct 2020
Location: Orlando, FL
Old 12-09-2020 , 08:01   Re: [L4D2] Reverse Friendly-Fire [v1.2 (09-Dec-2020)]
Reply With Quote #8

I was able to get to this sooner than expected and released version 1.2...

Code:
Added dynamically changeable ConVars:

  reverseff_enabled:  	set to 1 to enable plugin, 0 to disable
  reverseff_immunity:  	set to 1 to make admins immune to reverse FF damage, set to 0 to reverse FF damage for everyone
  reverseff_multiplier: if attacker is using explosive or incendiary ammo, increase damage by this multiplier
			default is 1.125 (12.5% extra damage), 1.0=no extra damage, 2.0=double damage

Also added a standard ConVar:

  reverseff_version: 	shows the plugin version
If you are a server admin, and you have the admin system active on your client, you can change these ConVars during the middle of a game. For example, bring up a chat window and type...

!cvar reverseff_immunity 0

...to instantly make everyone, including admins, take reverse friendly-fire damage. Another example...

!cvar reverseff_multiplier 1.25

...to instantly make explosive/incendiary ammo do 25% more damage to the attacker than regular ammo.

Of course, the changes are not permanent. To make your changes permanent, edit the values in the cfg/sourcemod/l4d_reverse_ff.cfg file.

Last edited by Mystik Spiral; 12-09-2020 at 08:52. Reason: add examples
Mystik Spiral is offline