AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=109)
-   -   Anti-Micspam v0.3 (6/11) (https://forums.alliedmods.net/showthread.php?t=72227)

FLOOR_MASTER 06-03-2008 07:42

Anti-Micspam v0.3 (6/11)
 
1 Attachment(s)
Anti-Micspam automates the process of detecting and punishing players who excessively playback prerecorded audio over in-game VOIP such as with HLSS or HLDJ. The detection technique is derived from an AMX Mod plugin but extends the basic functionality significantly.

Configuration
  • sm_micspam_threshold default: 3
    • The time, in seconds, a player can play a sound before punishment is taken. For example, if you set this value to 0, any micspam will trigger punishment (as long as it's long enough to be caught by the plugin - half a second or so). Setting it higher allows players to play short sounds without punishment.
  • sm_micspam_immunity default: 0
    • Players with an immunity level greater than this value will be immune to being punished for micspam.
  • sm_micspam_punishment default: 0
    • Specifies the punishment to dole out for micspamming. 0 = mute player, 1 = kick player, 2 = ban player.
  • sm_micspam_mutemsg default: "You were muted due to excessive micspam"
    • If sm_micspam_punishment is 0, this specifies the message to display (in green chat text) to the muted player.
  • sm_micspam_kickmsg default: "You were kicked due to excessive micspam"
    • If sm_micspam_punishment is 1, this specifies the message to show to the kicked player.
  • sm_micspam_banmsg default: "You were banned due to excessive micspam"
    • If sm_micspam_punishment is 2, this specifies the message to show to the banned player.
  • sm_micspam_bantime default: 5
    • If sm_micspam_punishment is 2, this specifies the duration, in minutes, that a ban lasts. A value of 0 creates a permanent ban.
Version History
  • 2008-06-03 - v0.1
    • Initial release
  • 2008-06-03 - v0.2
    • Changed tracking method slightly
    • Added sm_micspam_mutemsg
  • 2008-06-11 - v0.3
    • Added ability to automatically ban as punishment
Installation
  • Copy micspam.smx to addons/sourcemod/plugins
Notes: I have tested this with TF2 and it should work with all Source games, but I am not certain. If you select muting as a punishment and you want to unmute the player, you must first mute the player manually before unmuting the player. This is because basecomm maintains an internal "muted clients" list and thinks that the player Anti-Micspam muted is not actually muted.

FLOOR_MASTER 06-03-2008 08:34

Re: Anti-Micspam v0.1 (6/3)
 
I inadvertently uploaded the wrong file, which was labeled as version "TEST" and had some debug output left in. I've corrected the upload.

Extreme_One 06-03-2008 08:39

Re: Anti-Micspam v0.1 (6/3)
 
Nice.

Any chance you could add something along the lines of:

sm_micspam_mutemsg default: "You were muted due to excessive micspam"

DJ Tsunami 06-03-2008 08:56

Re: Anti-Micspam v0.1 (6/3)
 
Maybe it's an idea to just execute sm_mute if basecomm.smx is running?

PStar 06-03-2008 09:03

Re: Anti-Micspam v0.1 (6/3)
 
Could you add another punishments?
For example: slay,slap....

You could trigger them through super commands perhaps.

FLOOR_MASTER 06-03-2008 09:27

Re: Anti-Micspam v0.1 (6/3)
 
Tsunami: I considered that, but I was planning on adding the ability to "throttle" voicecomm in the sense that the plugin would mute the player when using HLSS/HLDJ and unmute afterwards, allowing the player to still talk. Sending commands to basecomm via ServerCmd would inundate the server logs with excess messages. I did file a request for a native interface to basecomm (http://bugs.alliedmods.net/index.php...s&task_id=1742), though.

I'll add the requested punishment options in an update later today.

sirmoe 06-03-2008 09:39

Re: Anti-Micspam v0.1 (6/3)
 
I just tested this with a mate, setup the plugin to kick for hlss spam -which it did however now he cant reconnect to the server?

Does it put a temp ban?

L 06/03/2008 - 23:33:49: [micspam.smx] orioN<4><STEAM_0:1:11319992><> triggered anti-micspam protection, kicking
L 06/03/2008 - 23:35:17: [micspam.smx] TK795<5><STEAM_0:0:XXX04><> triggered anti-micspam protection, kicking
L 06/03/2008 - 23:35:34: [micspam.smx] TK795<6><STEAM_0:0:XXX04><> triggered anti-micspam protection, kicking
L 06/03/2008 - 23:36:02: [micspam.smx] TK795<7><STEAM_0:0:XXX04><> triggered anti-micspam protection, kicking
L 06/03/2008 - 23:36:44: [micspam.smx] TK795<8><STEAM_0:0:XXX04><> triggered anti-micspam protection, kicking
L 06/03/2008 - 23:40:30: [micspam.smx] TK795<9><STEAM_0:0:XXX04><> triggered anti-micspam protection, kicking

ottobohn 06-03-2008 10:04

Re: Anti-Micspam v0.1 (6/3)
 
I welcome plugins such as this. This will set sourcemod aside from many other plugins due to its nature to get a handle on crazy players.

Otto

FLOOR_MASTER 06-03-2008 10:18

Re: Anti-Micspam v0.2 (6/3)
 
I've updated the plugin with the addition of sm_micspam_mutemsg. Currently, muted players will see sm_micspam_mutemsg in green chat text.

Sirmoe: the reason is that the player was kicked before stopping the micspam, and all the cvars that HLDJ/HLSS set haven't been unset. When the player reconnects without having reset those cvars, the plugin sees this as continuing to micspam. The player needs to unset those cvars before reconnecting. Specifically, the player needs to set voice_loopback to 0 (in v0.1) or voice_inputfromfile to 0 (in v0.2 and beyond). I could probably write a workaround that waits for the user to toggle it off. I've jotted this down on my to-do list.

cLutch 06-03-2008 21:54

Re: Anti-Micspam v0.2 (6/3)
 
Thanks for taking a look at my request. I pretty much <3 you now.


All times are GMT -4. The time now is 18:21.

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