Raised This Month: $89 Target: $400
 22% 

[TF2] Taunt Rate Limiter


Post New Thread Reply   
 
Thread Tools Display Modes
Author
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Plugin ID:
3676
Plugin Version:
1.3
Plugin Category:
Gameplay
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    39 
    Plugin Description:
    Prevents players from spamming taunts, and crashing the server :/
    Old 06-03-2013 , 10:06   [TF2] Taunt Rate Limiter
    Reply With Quote #1

    Allows you to block taunts based on time
    Allows you to block action taunts

    CVARs:
    ftauntlimit_version: version number, for tracking (don't change) - lol
    sm_taunt_flags: (0) - Flag bits for filter
    sm_taunt_primary: (0) - Taunt delay after normal taunts (0 for no delay, negative to block all)
    sm_taunt_action: (-1) - Taunt delay after action slot items (0 for no delay, negative to block all)

    *Filter Flags (you add them up, and use that value for the flags cvar):
    - this works by excluding players based on teams:

    Ignore Red Primary Taunts: 1
    Ignore Blue Primary Taunts: 2
    Ignore Red Action Taunts: 4
    Ignore Blue Action Taunts: 8

    If for example you want to block all taunts, but allow blue to use primary only, you'd set:
    sm_taunt_primary -1 (to block all primary taunts)
    sm_taunt_action -1 (to block all action taunts)
    sm_taunt_flags 2 (to ignore blue players from checks and allow them to taunt)

    Code:
    2013-6-3 (v1.0)
    * Initial Release
    
    2013-6-4 (v1.1)
    * Removed redundant code
    
    2014-6-20 (v1.2)
    * Added option to block action taunts
    * Removed old code that no longer worked for taunts
    
    2014-6-23 (v1.3)
    * Fixed a bug where filter flags were getting clamped at 8 :|
    Installation:
    - Put SMX in plugins directory
    Attached Files
    File Type: sp Get Plugin or Get Source (tauntfix.sp - 305 views - 5.2 KB)
    __________________
    Profile - Steam Group - Plugins - Blog - Donate
    Add me on steam if you are seeking sp/map/model commissions.

    Last edited by friagram; 06-24-2014 at 02:08. Reason: Updated
    friagram is offline
    lyric
    Veteran Member
    Join Date: Sep 2012
    Old 06-03-2013 , 10:28   Re: [TF2] Taunt Rate Limiter
    Reply With Quote #2

    a shining example that the community is more concerned with game crashing bugfixes than valve are. thank you so much for this we are going to use it now
    __________________
    lyric is offline
    loranger
    Senior Member
    Join Date: Jun 2011
    Old 06-03-2013 , 13:26   Re: [TF2] Taunt Rate Limiter
    Reply With Quote #3

    Good job, thanks
    loranger is offline
    KyleS
    SourceMod Plugin Approver
    Join Date: Jul 2009
    Location: Segmentation Fault.
    Old 06-03-2013 , 14:25   Re: [TF2] Taunt Rate Limiter
    Reply With Quote #4

    The OnMapStart logic doesn't do much for you since you use OnClientPutInServer which would clear the array anyways. You don't really need to store global handles and use OnConfigsExecuted, instead you can sync the variables in OnPluginStart. Seems fine otherwise, nice hotfix.
    KyleS is offline
    lyric
    Veteran Member
    Join Date: Sep 2012
    Old 06-03-2013 , 18:11   Re: [TF2] Taunt Rate Limiter
    Reply With Quote #5

    Quote:
    Team Fortress 2 Update Released
    June 3, 2013 - TF2 Team

    An update to Team Fortress 2 has been released. The update will be applied automatically when you restart Team Fortress 2. The major changes include:
    Added new Adult Swim items to the Mann Co. Store
    The Breather Bag, The Weather Master, and The Bacteria Blocker
    Added ETF2L Highlander Season 4 and ETF2L 6v6 Season 14 tournament medals
    Fixed mat_viewportupscale using an error material for clients using DirectX8
    Fixed config_arena.cfg being replaced by the default version when dedicated servers update
    Fixed the Soldier's grenades being hidden when equipping the Full Metal Drill Hat and the Soldier's Sparkplug
    Fixed a missing LOD on the dispenser
    Updated the -insert_search_path delimiter to be a comma instead of a semi-colon
    Updated the equip region on the Practitioner's Processing Mask to match the Physician's Procedure Mask
    Updated The Conscientious Objector and The Bat Outta Hell so they can be crafted and can be used to craft other items
    Pretty much all hat updates while this server crashing bug runs rampant. i think tf2 has jumped teh shark
    __________________
    lyric is offline
    friagram
    Veteran Member
    Join Date: Sep 2012
    Location: Silicon Valley
    Old 06-04-2013 , 04:05   Re: [TF2] Taunt Rate Limiter
    Reply With Quote #6

    Quote:
    Originally Posted by KyleS View Post
    The OnMapStart logic doesn't do much for you since you use OnClientPutInServer which would clear the array anyways. You don't really need to store global handles and use OnConfigsExecuted, instead you can sync the variables in OnPluginStart. Seems fine otherwise, nice hotfix.
    Yeah, didnt really think it over much, the vars are all 0 which happens when the plugin loads, so it wont even matter for late loads anyay. I mostly made this while some kid was crashing all of my servers at 3am, and then quickly modified it this morning because someone wanted it for their vsh server.

    I think the convar stuff is something i had coypasted from something else so long ago i just forgot about, it's probably in a bunch of my plugins. Thanks for the heads up, I'll look it tomorrow.
    __________________
    Profile - Steam Group - Plugins - Blog - Donate
    Add me on steam if you are seeking sp/map/model commissions.
    friagram is offline
    friagram
    Veteran Member
    Join Date: Sep 2012
    Location: Silicon Valley
    Old 06-04-2013 , 15:52   Re: [TF2] Taunt Rate Limiter
    Reply With Quote #7

    Alright updated with those changes.. I think.
    __________________
    Profile - Steam Group - Plugins - Blog - Donate
    Add me on steam if you are seeking sp/map/model commissions.
    friagram is offline
    VoiDeD
    SourceMod Plugin Unapprover
    Join Date: Mar 2009
    Location: Illinois, USA
    Old 06-04-2013 , 18:52   Re: [TF2] Taunt Rate Limiter
    Reply With Quote #8

    Quote:
    Originally Posted by friagram View Post
    - Set sm_tauntallow_blue 1 if you are running saxton hale or something and need him to be able to hammer his taunt keys.
    It should be noted that the vsh and ff2 plugins will put the boss on a random team on arena and koth maps.
    __________________
    VoiDeD is offline
    friagram
    Veteran Member
    Join Date: Sep 2012
    Location: Silicon Valley
    Old 06-05-2013 , 01:22   Re: [TF2] Taunt Rate Limiter
    Reply With Quote #9

    You can set the cvar to 0, lower the taunt limit or set to 0 for normal taunts, or don't use this. Though we run ff2 on a variety of maps and he is always blue, and many of our maps are arena and koth...
    __________________
    Profile - Steam Group - Plugins - Blog - Donate
    Add me on steam if you are seeking sp/map/model commissions.
    friagram is offline
    Donski
    Senior Member
    Join Date: Sep 2012
    Old 06-08-2013 , 11:21   Re: [TF2] Taunt Rate Limiter
    Reply With Quote #10

    Same here, bosses always get assigned to BLU, but if it really is a problem and if you're using the latest version (1.07x) of FF2 or VSH you can always set ff2_force_team or hale_force_team.

    Last edited by Donski; 06-08-2013 at 11:24.
    Donski 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 15:33.


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