Raised This Month: $ Target: $400
 0% 

VariableFF


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author
bl4nk
SourceMod Developer
Join Date: Jul 2007
Plugin ID:
243
Plugin Version:
1.0.3
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Changes the amount of damage done by friendly fire.
    Old 12-31-2007 , 16:02   VariableFF
    Reply With Quote #1

    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)
      • .5 = Half damage
      • 1 = Default damage (plugin halts)
      • 2 = Double damage
    • 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
      • Initial release
    • 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.
    Attached Files
    File Type: zip variableff_1.0.4.zip (8.5 KB, 786 views)

    Last edited by bl4nk; 01-28-2008 at 12:40.
    bl4nk is offline
     



    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 07:22.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode