AlliedModders

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

TnTSCS 09-12-2011 21:15

[CS:S] Friendly Fire Announcer
 
1 Attachment(s)
I tried searching for a FF announcer, but couldn't find one for CSS. I found this one for L4D and used it as a model - [L4D] Exact FF Damage Announcer (1.4)

This plugin will announce to admins Friendly Fire that happens on the team they're not on. Normally, you can only see FF on the team you're on, and when people complain about someone team attacking, you wish you could have seen the message(s).

There is one cvar, you can set this plugin to always notify admins on all FF incidents that occur on the opposite team they're on, or set it to only notify admins of all FF incidents that occur on the opposite team if there is no admin on that team.

sm_cssffannounce_notify 1/0 - 0 means only if there is no admin on the other team

I hope you find it useful, and for those more expierenced coders, if you gander at it and notice crap that should be a different way, please let me know - I'm always learning something and eager for the critism.

And if I there is a valve cvar that will allow people to see opposite team's FF incidents, then I made this plugin for nothing :)

Anyways, you won't get spammed for every single team attack in your chat box. You will only get one message per second if the attacker keeps attacking after 1 second. Your console will have a log of ALL team attacks, your team and the opposite team.

Here's an example of the console output:
Code:

[Josh] attacked [Grant] - [damage: 17] - [armor: 3] - [weapon: sg550]
[Irving] attacked [Shawn] - [damage: 1] - [armor: 0] - [weapon: hegrenade]
[Irving] attacked [Reed] - [damage: 31] - [armor: 5] - [weapon: hegrenade]
[Irving] attacked [Orin] - [damage: 24] - [armor: 4] - [weapon: hegrenade]
[Irving] attacked [Ted] - [damage: 20] - [armor: 0] - [weapon: hegrenade]
[Irving] attacked [Erik] - [damage: 58] - [armor: 10] - [weapon: hegrenade]
[Irving] attacked [Pat] - [damage: 5] - [armor: 1] - [weapon: hegrenade]
[Josh] attacked [Greg] - [damage: 70] - [armor: 13] - [weapon: sg550]

Example of what is output in chat:
-ADMIN NOTIFY- [Gregg] attacked a teammate, check your console for details

CHANGE LOG:
Version 1.0.0
- Initial Release

Version 1.0.1
- Fixed Native "KillTimer" reported: Invalid timer handle :oops:

sinblaster 09-13-2011 01:14

Re: [CS:S} Friendly Fire Announcer
 
Good Job TnT

TnTSCS 09-13-2011 18:26

Re: [CS:S] Friendly Fire Announcer
 
I was wrong about there not being a plugin that does this... Bacardi posted on (along with a different way to handle this)...

Anyways, I think his plugin deserves to be mentioned - it's almost like mine, but his will spam the chat for every team attack where mine only prints once every second if the team attack continues... mine will spam the log though

http://forums.alliedmods.net/showthread.php?t=161597

I'm going to look at his code suggestions and implement them - thanks again for showing me different ways and methods Bacardi - I really appreciate it

TnTSCS 09-16-2011 02:00

Re: [CS:S] Friendly Fire Announcer
 
Fixed Native "KillTimer" reported: Invalid timer handle... sorry about that fellas

It was a simple oversight on my part :( :oops:

TnTSCS 09-16-2011 02:09

Re: [CS:S] Friendly Fire Announcer
 
eh... still getting the error.. I'll look at it tomorrow... either I'm overlooking something simple, or I'm too tired to be looking at it in the first place :)

I think I got it now - gonna let our server run with it for the night and then see if the error comes back - but I do need sleep - LOL

TnTSCS 10-07-2013 12:08

Re: [CS:S] Friendly Fire Announcer
 
I was going to update this one, but saw Bacardi posted one and it's approved...

http://forums.alliedmods.net/showthread.php?t=171252

No need for this one, especially since the posted version spews errors due to poor coding (from my earlier self).

gizmic 05-04-2017 01:34

Re: [CS:S] Friendly Fire Announcer
 
used to use this during the css days i just can't seem to find the same equivalent on csgo Bacardi one doesn't display dmg and isn't working for a few months now


All times are GMT -4. The time now is 17:20.

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