AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CS:S] Friendly Fire Manager (https://forums.alliedmods.net/showthread.php?t=105143)

Bigbuck 10-01-2009 17:01

[CS:S] Friendly Fire Manager
 
3 Attachment(s)
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.

Bigbuck 10-05-2009 18:00

Re: [CSS] Friendly Fire Manager
 
1.0.1 has been released. This is a maintenance release to fix to minor bugs.

gaissi 10-07-2009 08:18

Re: [CSS] Friendly Fire Manager
 
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

Bigbuck 10-07-2009 17:51

Re: [CSS] Friendly Fire Manager
 
Make sure you are using version 1.0.1. I fixed that bug in that version.

gaissi 10-08-2009 01:11

Re: [CSS] Friendly Fire Manager
 
Ihave used this version.... But the same misstake....

gaissi 10-08-2009 11:47

Re: [CSS] Friendly Fire Manager
 
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...

Bigbuck 10-08-2009 13:23

Re: [CSS] Friendly Fire Manager
 
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.

gaissi 10-08-2009 16:59

Re: [CSS] Friendly Fire Manager
 
Thanks,

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

greet gaissi

Bigbuck 10-08-2009 17:14

Re: [CSS] Friendly Fire Manager
 
Ahh I see. Did it work correctly after that?

gaissi 10-09-2009 01:18

Re: [CSS] Friendly Fire Manager
 
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


All times are GMT -4. The time now is 09:58.

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