Raised This Month: $51 Target: $400
 12% 

[ANY] Individual FriendlyFire


Post New Thread Reply   
 
Thread Tools Display Modes
Author
databomb
Veteran Member
Join Date: Jun 2009
Location: california
Plugin ID:
2283
Plugin Version:
1.2.0
Plugin Category:
Admin Commands
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    70 
    Plugin Description:
    Allows admins to change friendly fire settings for targetted individuals.
    Old 03-20-2011 , 02:18   [ANY] Individual FriendlyFire
    Reply With Quote #1

    Individual FriendlyFire

    Description:

    Allows admins to override server mp_friendlyfire settings for individual players.

    Requirements:

    SDKHooks must be installed. The SP attached will *NOT* compile on the forums.

    Installation:

    Verify SDKHooks is installed.
    Place the .smx in the addons/sourcemod/plugins/ directory of the server.

    Command Usage:

    sm_setff <target>
    sm_unsetff <target>

    Settings:

    sm_setff_target, [0,1]: Changes the target behavior of the plugin: 0- Allows the target to attack all teammates, 1- Allows the target to be attacked by all teammates.
    sm_setff_everyone, [0,1]: Enable global friendly-fire (emulates mp_friendlyfire 1)
    sm_setff_resetmethod, [-1,0,1,2]: Choose when the FF will be reset for the targeted player: [-1] Never, [0] Resets on death, [1] Resets on disconnect, [2] Resets at end of round.
    sm_setff_hide_ff, [0,1]: Hides the notification of mp_friendlyfire changing values.
    sm_setff_hide_tags, [0,1]: Hides the notification of sv_tags changing values.
    sm_setff_hide_teamattack, [0,1]: Hides team attack messages if your mod supports them.

    Sample Configurations:

    On a friendly-fire server where you want the !setff command to stop the target from being able to attack teammates:
    sm_setff_everyone 1
    sm_setff_target 0

    On a normal (mp_friendlyfire 0) server where you want the !setff command to allow only the target to attack teammates:
    sm_setff_everyone 0
    sm_setff_target 0

    Special Thanks:
    xomp for fearlessly testing the first versions of this on his servers.
    afronanny for the original concept found here (http://forums.alliedmods.net/showthread.php?t=119294) (afronanny's original plugin will not work, hence this new plugin)

    Future Considerations:

    Taking admin immunity into account.
    Integration with monetary systems from different mods allowing players to purchase the SetFF command.
    Menus.
    Responding to feature requests from the community.

    Change Log:
    1.2.0 Added new reset method: never (uses clientprefs cookie)
    1.1.1 Bug fix with default FF settings
    1.1.0 Initial public release
    Attached Files
    File Type: sp Get Plugin or Get Source (SetFF.sp - 709 views - 12.4 KB)
    File Type: smx SetFF.smx (7.3 KB, 589 views)
    __________________

    Last edited by databomb; 04-13-2012 at 09:29. Reason: new version 1.2.0
    databomb is offline
    xomp
    BANNED
    Join Date: Jul 2008
    Old 03-24-2011 , 21:18   Re: [ANY] Individual FriendlyFire
    Reply With Quote #2

    Thanks for this man! Works a treat!
    xomp is offline
    Send a message via Skype™ to xomp
    Anhil
    Member
    Join Date: Jan 2011
    Old 03-25-2011 , 15:17   Re: [ANY] Individual FriendlyFire
    Reply With Quote #3

    http://forums.alliedmods.net/showthread.php?t=119294 - doesn't it do same work?
    Anhil is offline
    Leonardo
    Veteran Member
    Join Date: Feb 2010
    Location: 90's
    Old 03-25-2011 , 16:23   Re: [ANY] Individual FriendlyFire
    Reply With Quote #4

    Quote:
    Originally Posted by databomb View Post
    Special Thanks:
    xomp for fearlessly testing the first versions of this on his servers.
    afronanny for the original concept found here (http://forums.alliedmods.net/showthread.php?t=119294) (afronanny's original plugin will not work, hence this new plugin)
    Leonardo is offline
    PabloP
    SourceMod Donor
    Join Date: Feb 2010
    Old 03-31-2011 , 18:04   Re: [ANY] Individual FriendlyFire
    Reply With Quote #5

    Anyway this could be made to save settings permanently?
    __________________
    Beware, Im a dummy
    PabloP is offline
    databomb
    Veteran Member
    Join Date: Jun 2009
    Location: california
    Old 03-31-2011 , 21:01   Re: [ANY] Individual FriendlyFire
    Reply With Quote #6

    I suppose it could, yes. Could you give me an example of how this would be useful to you and/or how it would be used?
    __________________
    databomb is offline
    Annihilator
    Senior Member
    Join Date: Nov 2006
    Location: Lithuania
    Old 04-01-2011 , 05:35   Re: [ANY] Individual FriendlyFire
    Reply With Quote #7

    As a punishment for someone FF on + autoban for TK
    Annihilator is offline
    Anhil
    Member
    Join Date: Jan 2011
    Old 04-09-2011 , 11:54   Re: [ANY] Individual FriendlyFire
    Reply With Quote #8

    Quote:
    Originally Posted by Leonardo View Post
    Quote:
    Originally Posted by databomb View Post
    Special Thanks:
    xomp for fearlessly testing the first versions of this on his servers.
    afronanny for the original concept found here (http://forums.alliedmods.net/showthread.php?t=119294) (afronanny's original plugin will not work, hence this new plugin)
    Oh, I'm blind, sorry.
    Anhil is offline
    PabloP
    SourceMod Donor
    Join Date: Feb 2010
    Old 04-09-2011 , 19:28   Re: [ANY] Individual FriendlyFire
    Reply With Quote #9

    Quote:
    Originally Posted by databomb View Post
    I suppose it could, yes. Could you give me an example of how this would be useful to you and/or how it would be used?
    yeah sorry ive been super busy, but I run a GG server with FF on, which is enjoyed by everybody in general. There are 2 main ways as i see it to disrupt my server,
    1-mic/chat spam -- solved by a perma mute/gag
    2-team killing -- currently solved by a perma ban. which a permanent version of this would prevent.
    __________________
    Beware, Im a dummy

    Last edited by PabloP; 04-09-2011 at 19:30.
    PabloP is offline
    zipcore
    Veteran Member
    Join Date: Mar 2010
    Location: m_flZipcore
    Old 08-04-2011 , 19:38   Re: [ANY] Individual FriendlyFire
    Reply With Quote #10

    can u expand your plugin by the feature of changing ff to mirror damage for individuals?
    __________________
    zipcore is offline
    Reply



    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:11.


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