Raised This Month: $168 Target: $400
 42% 

[CS:S] Friendly Fire Manager


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Bigbuck
Senior Member
Join Date: Jul 2009
Plugin ID:
1195
Plugin Version:
1.0.6
Plugin Category:
Server Management
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
    5 
    Plugin Description:
    Basic friendly fire manager for Counter Strike: Source.
    Old 10-01-2009 , 17:01   [CS:S] Friendly Fire Manager
    Reply With Quote #1

    Description:
    This plugin will provide servers with basic friendly fire protection. Right now this only works with CS:S, but if there is enough interest I would like to extend it to all Source MP games. I created this plugin because I needed it to replace the Mani Admin option of slapping when a user commits friendly fire. I know there are many FF/TK controllers out there but I did not find one to suit my needs. This is why the plugin is very simple to start out with and will hopefully flesh out.

    Installation:
    Download the css_ff_manager.zip package and extract all files to your server. Alternately, you can download each file individually and compile the plugin yourself.
    Note: The css_ff_manager.zip package was compiled against SourceMod 1.3. If you are using 1.2 please download the file individually and compile them yourself.

    Configuration:
    This plugin will create a config file in the cfg/sourcemod directory on your server. There you can configure the plugin to your liking.

    CVAR's:
    Below are CVAR's specific to FF Manager and their descriptions.

    sm_css_ffm_type_slap - The player who commited FF is slapped with the total FF damage amount.
    sm_css_ffm_type_reflective - FF damage done to a teammate is reflected back onto the player who did it.
    sm_css_ffm_slap_damage - If FF type slap is on, how much damage to slap the user with?
    sm_css_ffm_slap_sound - If FF type slap is on, should we play a sound when the user is slapped?
    sm_css_ffm_log - Log friendly fire incidents? (Logged to addons/sourcemod/logs/css_ff_manager.log)
    sm_css_ffm_announcements_clients - Announces FF incidents only to those involved.
    sm_css_ffm_announcements_all - Announces FF incidents to everyone.

    Changelog:
    1.0.0
    • Initial Release
    1.0.1
    • Moved FF check to OnConfigsExecuted to prevent first run error
    • Added check for self inflicted damage
    • Changed URL to point to its own page
    1.0.2
    • Added check for warmup.smx plugin to prevent fail state being triggered
    • Plugin should now check if a warmup round is active before checking mp_friendlyfire
    1.0.3
    • Modified check for Warmup Round Plugin to be every round instead of just once
    • Plugin now announces if it is enabled or not
    1.0.4
    • Removed mp_friendlyfire check
    1.0.5
    • Added translation support
    1.0.6
    • Added seperate CVAR's for FF type and announcements
    • Added CVAR to enable/disable slap sound
    • Overall optimization
    • Note: This version contains changes to the css_ff_manager.cfg file. If you have modified this file please back it up before overwriting it with the new version.
    Attached Files
    File Type: sp Get Plugin or Get Source (css_ff_manager.sp - 1336 views - 6.3 KB)
    File Type: txt css_ff_manager.txt (273 Bytes, 588 views)
    File Type: zip css_ff_manager_v1.0.6.zip (10.0 KB, 1232 views)

    Last edited by Bigbuck; 01-16-2010 at 11:38. Reason: 1.0.6 Released
    Bigbuck is offline
    Bigbuck
    Senior Member
    Join Date: Jul 2009
    Old 10-05-2009 , 18:00   Re: [CSS] Friendly Fire Manager
    Reply With Quote #2

    1.0.1 has been released. This is a maintenance release to fix to minor bugs.
    Bigbuck is offline
    gaissi
    Senior Member
    Join Date: Sep 2009
    Old 10-07-2009 , 08:18   Re: [CSS] Friendly Fire Manager
    Reply With Quote #3

    Quote:
    L 10/07/2009 - 12:42:03: [SM] Plugin encountered error 25: Call was aborted
    L 10/07/2009 - 12:42:03: [SM] Native "SetFailState" reported: mp_friendlyfire must be set to 1 to use this plugin
    L 10/07/2009 - 12:42:03: [SM] Displaying call stack trace for plugin "css_ff_manager.smx":
    L 10/07/2009 - 12:42:03: [SM] [0] Line 78, /home/groups/alliedmodders/forums/files/5/6/5/3/3/50871.attach::OnPluginStart()
    I get this error in my log file...

    Thanks for the plugin but what means this error?

    gaissi
    gaissi is offline
    Bigbuck
    Senior Member
    Join Date: Jul 2009
    Old 10-07-2009 , 17:51   Re: [CSS] Friendly Fire Manager
    Reply With Quote #4

    Make sure you are using version 1.0.1. I fixed that bug in that version.
    Bigbuck is offline
    gaissi
    Senior Member
    Join Date: Sep 2009
    Old 10-08-2009 , 01:11   Re: [CSS] Friendly Fire Manager
    Reply With Quote #5

    Ihave used this version.... But the same misstake....
    gaissi is offline
    gaissi
    Senior Member
    Join Date: Sep 2009
    Old 10-08-2009 , 11:47   Re: [CSS] Friendly Fire Manager
    Reply With Quote #6

    I always renew the smx file and remove the cfg file in cfg/sourcemod. A new one is created. Always the misstake....

    I hope you fixed it, the plugin is great...
    gaissi is offline
    Bigbuck
    Senior Member
    Join Date: Jul 2009
    Old 10-08-2009 , 13:23   Re: [CSS] Friendly Fire Manager
    Reply With Quote #7

    If you are using 1.0.1, then yes that is fixed. If you still get an error it would report that it was called from OnConfigsExecuted instead of OnPluginStart. That would mean you actually have mp_friendlyfire set to 0 in your server.cfg.
    Bigbuck is offline
    gaissi
    Senior Member
    Join Date: Sep 2009
    Old 10-08-2009 , 16:59   Re: [CSS] Friendly Fire Manager
    Reply With Quote #8

    Thanks,

    The misstake was in the warmup round, in this round the friendlyfire is off.

    greet gaissi
    gaissi is offline
    Bigbuck
    Senior Member
    Join Date: Jul 2009
    Old 10-08-2009 , 17:14   Re: [CSS] Friendly Fire Manager
    Reply With Quote #9

    Ahh I see. Did it work correctly after that?
    Bigbuck is offline
    gaissi
    Senior Member
    Join Date: Sep 2009
    Old 10-09-2009 , 01:18   Re: [CSS] Friendly Fire Manager
    Reply With Quote #10

    Exectly....

    After the first round the friednlyfire is on.... but the plugin would be loaded before in the first so it's not possible for me to run this plugin....

    But great work...

    Greet gaissi
    gaissi is offline
    Reply


    Thread Tools
    Display Modes

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


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