VariableFF
Changes the amount of damage done by friendly fire.
Commands:
sm_variableff_amount <Amount to scale FF damage by>
sm_variableff_selfdamage <0\1>
Examples:- sm_variableff_amount
- 0 = No damage (same as FF off)
- 1 = Default damage (plugin halts)
- sm_variableff_selfdamage
- 0 = Self damage isn't scaled
- 1 = Self damage is scaled
Notes:- This plugin should work with any mod. If any problems arise, don't hesitate to post them.
- Setting the amount to 1 will halt the plugin, as that wouldn't change the damage at all.
- The "new" damage amount is rounded to the nearest integer to avoid problems with displaying health percentages.
- Setting the amount to 0 is exactly the same as turning FF off (minus players reacting to being shot).
- You can't set the amount to anything below 0.
Installation:- Download the .zip file and extract it to your ~/addons/sourcemod folder. If asked, choose to overwrite any file that exists.
- Check to make sure that ~/addons/sourcemod/plugins/variableff.smx exists.
- Change the map, manually load the plugin, or restart the server to use the plugin.
Compiling/Downloading Notes:
This plugin uses the
"Get Damage in TF2" extension, provided by naris. I didn't upload the
.sp file directly since the webserver wouldn't be able to compile it due to missing includes. Instead, I put all of the needed files inside of the
.zip for you to download. Use the
.smx I provided, or compile it yourself.
Thanks to:- naris for the extensions.
- EKS & teame06 for helping with my float/integer incompetance.
- joe.to community for requesting the plugin.
Changelog:- 1.0.0
- 1.0.1
- Fixed a typo that could have caused problems.
- 1.0.2
- Added new cvar to Enable\Disable scaling of self damage (sm_variableff_selfdamage).
- Cleaned up the coding a bit.
- 1.0.3
- Fixed a problem that could cause errors when used with certain plugins.
- 1.0.4
- Reverted changes from 1.0.3 - they were not the problem. Instead, I added an extra check to make sure that players are in-game before the plugin checks to see if they're alive.