AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D] Vocalize Spam Guard (https://forums.alliedmods.net/showthread.php?t=83432)

teddyruxpin 01-09-2009 14:52

[L4D] Vocalize Spam Guard
 
2 Attachment(s)
This is a hack of a plugin that CrimsonGT wrote to block the 'callvote' commands. This is 99.9% the same code as the other plugin but has been changed up to give it unique cvars and HUD text strings. All credit should goto CrimsonGT for this. I simply just modified his work.

I hacked this up as I was sick and tired of people joining my L4D games only to non stop spam vocalize commands making it hard to hear any of the game play environment and constantly looking for the "Tank" or 'Witch" or other crap they are spamming about.

Comands / CVARS for sourcemod.cfg or CLI:

"sm_vocalize_guard_enabled", "1", "Enable/Disable L4D Vocalize Guardian [0 = FALSE, 1 = TRUE]"

"sm_vocalize_guard_adminimmune", "1", "Enable/Disable Admin Immunity to Penalties [0 = FALSE, 1 = TRUE]"
Allows you to let your admins still spam if they wish to. I personally would shoot my admins that did this so YYMV.

"sm_vocalize_guard_vlimit", "10", "Max Vocalize Spam Calls Allowed [0 = NO LIMIT]"
The amount of times the 'vocalize' command can be run in the 'vdelay' time period. Default is '10' meaning they can run 'vocalize' 10 times in a 3 second time period before they are kicked.

"sm_vocalize_guard_vdelay", "3", "Delay before a player can call another Vocalize command [0 = DISABLED]"
The amount of time delay between using the 'vocalize' command. Keep in mind the players all use scripted volcalize commands when you pickup items so you will NOT want to put this to a high number or you will kick players when they pickup guns at the start of each round.

"sm_vocalize_guard_bantime", "5", "Duration of Ban [0 = KICKS PLAYER]"
Duration in time the kicked player is banned for. Default of 5 mins.


NOTE: if you adjust the 'vdelay' time to low it WILL block and kick players on the start of campaigns or when spawning in the safe room. This is due to the scripted vocalize commands that are played when you pick up items. I would suggest keeping the upper limit high around 10 per vdelay. Meaning they can run 10 vocalize commands in the 3 second period before they are blocked and kicked.

I am also not 100% sure the "sm_vocalize_guard_adminimmune" is fully working. I was not able to test this much last night. Any input would be appreciate.

-Teddy

{7~11} TROLL 01-09-2009 15:01

Re: [L4D] Volcalize Spam Guard
 
cool idea very helpful i cant stand commands spamming lol

bman87 01-09-2009 16:20

Re: [L4D] Volcalize Spam Guard
 
I was trying to make a simple plugin to stop the vocalize spam. What I found was whenever your character (or bots) in the game randomly says something it triggers the vocalize command, and when you use the radial menu to say things it will also trigger.

So that may be an issue if someone uses the radial menu to fast? I know I have to sometimes spam the "Look" vocalization because its easier to tell everyone else that there is a 'Gren/medpack/weapons' here with the in-game radial menu, rather than using my mic.

teddyruxpin 01-09-2009 17:28

Re: [L4D] Volcalize Spam Guard
 
Quote:

Originally Posted by bman87 (Post 741201)
I was trying to make a simple plugin to stop the vocalize spam. What I found was whenever your character (or bots) in the game randomly says something it triggers the vocalize command, and when you use the radial menu to say things it will also trigger.

So that may be an issue if someone uses the radial menu to fast? I know I have to sometimes spam the "Look" vocalization because its easier to tell everyone else that there is a 'Gren/medpack/weapons' here with the in-game radial menu, rather than using my mic.


You would want to adjust this field to your needs. Default it will allow you to press the button 10 times in 3 seconds before it blocks you. So you would have be bashing on that keyboard to cause a problem where you get kicked. I would first mute you for 8 tries and kick you on the 10th.

"sm_vocalize_guard_vdelay", "3", "Delay before a player can call another Vocalize command [0 = DISABLED]"
The amount of time delay between using the 'vocalize' command. Keep in mind the players all use scripted volcalize commands when you pickup items so you will NOT want to put this to a high number or you will kick players when they pickup guns at the start of each round.

-Teddy

ChillyWI 01-09-2009 17:35

Re: [L4D] Volcalize Spam Guard
 
Would this work instead?
http://forums.alliedmods.net/showthread.php?t=73828

Just to block the vocalize command entirely? Would that block user initiated vocalize commands while allowing the automatic ones? I'd just rather block them entirely, so if that can't do it is it possible for your plugin to do so?

bman87 01-09-2009 17:35

Re: [L4D] Volcalize Spam Guard
 
Quote:

Originally Posted by teddyruxpin (Post 741252)
You would want to adjust this field to your needs. Default it will allow you to press the button 10 times in 3 seconds before it blocks you. So you would have be bashing on that keyboard to cause a problem where you get kicked. I would first mute you for 8 tries and kick you on the 10th.

"sm_vocalize_guard_vdelay", "3", "Delay before a player can call another Vocalize command [0 = DISABLED]"
The amount of time delay between using the 'vocalize' command. Keep in mind the players all use scripted volcalize commands when you pickup items so you will NOT want to put this to a high number or you will kick players when they pickup guns at the start of each round.

-Teddy

Right, I didn't see your explanation. You are aware of the scripted vocalizations. I just decided to scrap my plugin because I did not want it to interfere with the scripted stuff, which yours will do.

Someone could abuse the command until they have no more warnings, then a scripted response could go off and trigger a kick/ban.

bman87 01-09-2009 17:35

Re: [L4D] Volcalize Spam Guard
 
Quote:

Originally Posted by ChillyWI (Post 741253)
Would this work instead?
http://forums.alliedmods.net/showthread.php?t=73828

Just to block the vocalize command entirely? Would that block user initiated vocalize commands while allowing the automatic ones? I'd just rather block them entirely, so if that can't do it is it possible for your plugin to do so?

It will block them entirely, even scripted ones.

ChillyWI 01-09-2009 17:38

Re: [L4D] Volcalize Spam Guard
 
Quote:

Originally Posted by bman87 (Post 741255)
It will block them entirely, even scripted ones.

Thx for the info.

DontWannaName 01-09-2009 18:42

Re: [L4D] Volcalize Spam Guard
 
In TF2 there is a hidden cvar that allows you to change the rate that a client can use the voice commands. It is sm_cvar tf_max_voice_speak_delay but I dont see one for L4D

macing 01-11-2009 07:58

Re: [L4D] Volcalize Spam Guard
 
I don't know if the admin immunity is supposed to protect you from just the kick/ban or from the warning message and the vdelay or both but on my server it shows the warning message and I have to wait the vdelay-time however I don't get kicked ( Haven't tested it with a script though, only by tapping fast).


All times are GMT -4. The time now is 06:15.

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