Raised This Month: $252 Target: $400
 63% 

Anti-Micspam v0.3 (6/11)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
FLOOR_MASTER
Senior Member
Join Date: Mar 2008
Plugin ID:
409
Plugin Version:
0.3
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    7 
    Plugin Description:
    Automatically mute or punish players who engage in HLSS/HLDJ spamming
    Unapprover:
    Reason for Unapproving:
    Unsupported. Unfixed errors. Superceded by http://forums.alliedmods.net/showthread.php?t=107086
    Old 06-03-2008 , 07:42   Anti-Micspam v0.3 (6/11)
    Reply With Quote #1

    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.
    Attached Files
    File Type: sp Get Plugin or Get Source (micspam.sp - 4032 views - 4.7 KB)

    Last edited by FLOOR_MASTER; 06-12-2008 at 23:18.
    FLOOR_MASTER is offline
    FLOOR_MASTER
    Senior Member
    Join Date: Mar 2008
    Old 06-03-2008 , 08:34   Re: Anti-Micspam v0.1 (6/3)
    Reply With Quote #2

    I inadvertently uploaded the wrong file, which was labeled as version "TEST" and had some debug output left in. I've corrected the upload.
    FLOOR_MASTER is offline
    Extreme_One
    Veteran Member
    Join Date: Nov 2006
    Old 06-03-2008 , 08:39   Re: Anti-Micspam v0.1 (6/3)
    Reply With Quote #3

    Nice.

    Any chance you could add something along the lines of:

    sm_micspam_mutemsg default: "You were muted due to excessive micspam"
    __________________
    Extreme_One is offline
    DJ Tsunami
    DJ Post Spammer
    Join Date: Feb 2008
    Old 06-03-2008 , 08:56   Re: Anti-Micspam v0.1 (6/3)
    Reply With Quote #4

    Maybe it's an idea to just execute sm_mute if basecomm.smx is running?
    __________________
    DJ Tsunami is offline
    PStar
    Veteran Member
    Join Date: Mar 2008
    Old 06-03-2008 , 09:03   Re: Anti-Micspam v0.1 (6/3)
    Reply With Quote #5

    Could you add another punishments?
    For example: slay,slap....

    You could trigger them through super commands perhaps.
    PStar is offline
    FLOOR_MASTER
    Senior Member
    Join Date: Mar 2008
    Old 06-03-2008 , 09:27   Re: Anti-Micspam v0.1 (6/3)
    Reply With Quote #6

    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.
    FLOOR_MASTER is offline
    sirmoe
    Senior Member
    Join Date: Mar 2008
    Old 06-03-2008 , 09:39   Re: Anti-Micspam v0.1 (6/3)
    Reply With Quote #7

    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 - 233:49: [micspam.smx] orioN<4><STEAM_0:1:11319992><> triggered anti-micspam protection, kicking
    L 06/03/2008 - 235:17: [micspam.smx] TK795<5><STEAM_0:0:XXX04><> triggered anti-micspam protection, kicking
    L 06/03/2008 - 2354: [micspam.smx] TK795<6><STEAM_0:0:XXX04><> triggered anti-micspam protection, kicking
    L 06/03/2008 - 236:02: [micspam.smx] TK795<7><STEAM_0:0:XXX04><> triggered anti-micspam protection, kicking
    L 06/03/2008 - 236:44: [micspam.smx] TK795<8><STEAM_0:0:XXX04><> triggered anti-micspam protection, kicking
    L 06/03/2008 - 23:400: [micspam.smx] TK795<9><STEAM_0:0:XXX04><> triggered anti-micspam protection, kicking

    Last edited by sirmoe; 06-03-2008 at 09:42.
    sirmoe is offline
    ottobohn
    Senior Member
    Join Date: Sep 2007
    Old 06-03-2008 , 10:04   Re: Anti-Micspam v0.1 (6/3)
    Reply With Quote #8

    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
    ottobohn is offline
    FLOOR_MASTER
    Senior Member
    Join Date: Mar 2008
    Old 06-03-2008 , 10:18   Re: Anti-Micspam v0.2 (6/3)
    Reply With Quote #9

    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.
    FLOOR_MASTER is offline
    cLutch
    Junior Member
    Join Date: Feb 2008
    Old 06-03-2008 , 21:54   Re: Anti-Micspam v0.2 (6/3)
    Reply With Quote #10

    Thanks for taking a look at my request. I pretty much <3 you now.
    cLutch 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 14:12.


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