AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [TF2] Taunt Rate Limiter (https://forums.alliedmods.net/showthread.php?t=217486)

friagram 06-03-2013 10:06

[TF2] Taunt Rate Limiter
 
1 Attachment(s)
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

lyric 06-03-2013 10:28

Re: [TF2] Taunt Rate Limiter
 
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

loranger 06-03-2013 13:26

Re: [TF2] Taunt Rate Limiter
 
Good job, thanks

KyleS 06-03-2013 14:25

Re: [TF2] Taunt Rate Limiter
 
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.

lyric 06-03-2013 18:11

Re: [TF2] Taunt Rate Limiter
 
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

friagram 06-04-2013 04:05

Re: [TF2] Taunt Rate Limiter
 
Quote:

Originally Posted by KyleS (Post 1963850)
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.

friagram 06-04-2013 15:52

Re: [TF2] Taunt Rate Limiter
 
Alright updated with those changes.. I think.

VoiDeD 06-04-2013 18:52

Re: [TF2] Taunt Rate Limiter
 
Quote:

Originally Posted by friagram (Post 1963671)
- 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.

friagram 06-05-2013 01:22

Re: [TF2] Taunt Rate Limiter
 
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...

Donski 06-08-2013 11:21

Re: [TF2] Taunt Rate Limiter
 
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.


All times are GMT -4. The time now is 20:55.

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