Raised This Month: $32 Target: $400
 8% 

[TF2] Anti-Intelligence Spam (1.0, 8/16/2014)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
SleepKiller
Junior Member
Join Date: Jul 2014
Plugin ID:
4310
Plugin Version:
1.0
Plugin Category:
Server Management
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    50 
    Plugin Description:
    Stops players from being able to spam "We have taken the enemy intelligence."
    Old 08-15-2014 , 22:24   [TF2] Anti-Intelligence Spam (1.0, 8/16/2014)
    Reply With Quote #1

    Description:
    I had the thought the other night after seeing intel spamming "I wonder if anyone has written a plugin to stop that," so I searched for it using Google and the plugin search on the SourceMod site. After nothing came up I decided to write it myself.

    This plugin quite simply keeps track of when the event and sound for the intelligence being picked up or dropped and compares it against a timeout value. If the timeout period hasn't elapsed the event or sound is prevented from being broadcast. Players can still pick up the intel in the timeout period, it just won't be announced.

    Also each player has their times tracked differently, so innocent players for the most part will be unaffected by this. But with the sounds the times are tracked globally since I am unaware of a way to track those for each player.

    I high recommend you go into your cfg/sourcemod folder, open up the auto generated tf2anti-intelspam.cfg and customize the timeout values to your liking.

    Cvars:
    • antiintelspam_version - Version Cvar, not much else to say.
    • antiintelspam_timeout (default: 3) - The amount of time in seconds that a player must wait before the fact that they have picked up or dropped the intel will be rebroadcast to the other players.
    • antiintelspam_soundtimeout (default: 3) - The amount of time in seconds that the plugin will delay the announcer from, well announcing that the intel has been picked up or dropped.

    Changelog:

    Quote:
    8/16/2014 - 1.0

    * Initial Release.
    PS. To all you programmers out there, I'm eager to get some (constructive) feedback on my code and what I could have done better. If you take the time to do so it is appreciated.
    Attached Files
    File Type: sp Get Plugin or Get Source (tf2anti-intelspam.sp - 1366 views - 4.7 KB)

    Last edited by SleepKiller; 08-26-2014 at 01:41.
    SleepKiller is offline
    Donski
    Senior Member
    Join Date: Sep 2012
    Old 08-17-2014 , 14:15   Re: [TF2] Anti-Intelligence Spam (1.0, 8/16/2014)
    Reply With Quote #2

    I've been looking for something like this for ages, thank you! It's fun hearing Admin rap but after a while it gets annoying.
    Donski is offline
    ocwoody
    AlliedModders Donor
    Join Date: Nov 2010
    Location: huh
    Old 08-17-2014 , 14:47   Re: [TF2] Anti-Intelligence Spam (1.0, 8/16/2014)
    Reply With Quote #3

    Awesome job. I've been looking for something like this!
    ocwoody is offline
    lyric
    Veteran Member
    Join Date: Sep 2012
    Old 08-17-2014 , 15:36   Re: [TF2] Anti-Intelligence Spam (1.0, 8/16/2014)
    Reply With Quote #4

    need something for those that use the noisemaker spammers.. so annoying
    __________________
    lyric is offline
    Leonardo
    Veteran Member
    Join Date: Feb 2010
    Location: 90's
    Old 08-18-2014 , 14:28   Re: [TF2] Anti-Intelligence Spam (1.0, 8/16/2014)
    Reply With Quote #5

    and so it took 3+ years to make it ...

    Last edited by Leonardo; 08-18-2014 at 14:29.
    Leonardo is offline
    Powerlord
    AlliedModders Donor
    Join Date: Jun 2008
    Location: Seduce Me!
    Old 08-18-2014 , 14:39   Re: [TF2] Anti-Intelligence Spam (1.0, 8/16/2014)
    Reply With Quote #6

    Hmm, you may inspire me to submit another function to SDKTools for the next version of SourceMod... one to fetch all sound files for a game_sound entry.

    Might make the logic for this kind of plugin a little simpler and handle it if Valve adds more sounds for it later.
    __________________
    Not currently working on SourceMod plugin development.
    Powerlord is offline
    Horsedick
    AlliedModders Donor
    Join Date: Sep 2011
    Old 08-18-2014 , 14:55   Re: [TF2] Anti-Intelligence Spam (1.0, 8/16/2014)
    Reply With Quote #7

    hmm this may work good for a achiev map I run... will test.
    Horsedick is offline
    jpwanabe
    Veteran Member
    Join Date: Mar 2010
    Old 11-25-2015 , 12:30   Re: [TF2] Anti-Intelligence Spam (1.0, 8/16/2014)
    Reply With Quote #8

    Any idea on what this error means? It filles my error log.
    Code:
    L 11/25/2015 - 12:26:10: [SM] Native "IsClientInGame" reported: Client index 0 is invalid
    L 11/25/2015 - 12:26:10: [SM] Displaying call stack trace for plugin "tf2anti-intelspam.smx":
    L 11/25/2015 - 12:26:10: [SM]   [0]  Line 73, /home/forums/content/files/2/5/0/9/7/9/136946.attach::Event_IntelPickedUp()
    __________________
    My Steam TF2APP
    My sig changes with each load! Refresh to see my other servers!
    jpwanabe is offline
    ratawar
    BANNED
    Join Date: Dec 2017
    Location: GB
    Old 06-11-2020 , 19:06   Re: [TF2] Anti-Intelligence Spam (1.0, 8/16/2014)
    Reply With Quote #9

    I gave the plugin a little refresh
    Attached Files
    File Type: zip anti_intel_spam.zip (11.6 KB, 114 views)
    ratawar is offline
    Send a message via ICQ to ratawar Send a message via AIM to ratawar Send a message via Yahoo to ratawar Send a message via Skype™ to ratawar
    Sreaper
    髪を用心
    Join Date: Nov 2009
    Old 06-13-2020 , 02:37   Re: [TF2] Anti-Intelligence Spam (1.0, 8/16/2014)
    Reply With Quote #10

    Quote:
    Originally Posted by ratawar View Post
    I gave the plugin a little refresh
    You seem to have forgotten your include file though.
    Code:
    #include <autoexecconfig>
    Sreaper 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 10:07.


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