AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [TF2] Taunt Time Limit 0x06 (Last updated 8/4/2017 | 5:43PM CDT) (https://forums.alliedmods.net/showthread.php?t=253856)

Chdata 12-29-2014 13:48

[TF2] Taunt Time Limit 0x06 (Last updated 8/4/2017 | 5:43PM CDT)
 
1 Attachment(s)
[TF2] Taunt Time Limit
Before you give a suggestion, read the TODO list. It's probably already there.

Description:
  • Forces players to stop special taunts (such as conga) after 5 seconds.

    They cannot special taunt again until 15 seconds have passed from when they started taunting.

    This was made for some friends of mine, so extra functionality will come whenever I feel like it.

    http://i.imgur.com/jEG7s7P.jpg
Convars: tf/cfg/sourcemod/tauntlimiter.cfg
  • cv_taunt_timelimit [Default: "5.0"] - After this many seconds, special taunt will be forcibly stopped.
  • cv_taunt_blocktime [Default: "15.0"] - After initiating special taunt, cannot special taunt again for this many seconds.
Installation:
  • Get Plugin & Drag n' Drop to tf/addons/sourcemod/plugins/
Changelist:
Quote:

0x06 (8/4/2017 | 5:43PM)

* Updated plugin to work for ALL equippable taunts.
* Plugin will catch any new taunts that are added to the game.
* Changed method for blocking special taunts.
* Generalized the naming scheme of the plugin.

0x03 (3/28/2015 | 5:24AM)

* Added convar for how long after starting conga to stop it.
* Added convar for how long after starting conga to continue blocking reusing it.
* Added version cvar.

0x02 (12/30/2014 | 1:24PM)

* Simplified the code a lot.
* Probably fixed the cases that allowed people to bypass this block.
* Must wait 15 seconds again before congaing again.

0x01 (12/29/2014 | 12:37PM)

* Initial release!
TODO: (As I get to it)
Spoiler

Credits:
  • Most of this is rswallen's code that was posted in another discussion.
  • No I really did almost nothing.
  • Friagram for reminding me Valve updated taunt stuff.
Want support?
  • Post questions and...
    Post a question on my steam profile if you have questions not related to this plugin.
Wanna support me?
  • Post suggestions (read the TODO list first) and...
    Join TF2Data and play on our servers! ;p
    (See siggy for links!)
GitHub Link:
https://github.com/Chdata/TF2-Taunt-Time-Limit

friagram 12-29-2014 18:36

Re: [TF2] Conga Time Limit 0x01 (Last updated *Today* 12/29/2014 | 12:37PM CDT)
 
Because LOBSTERS


You don't need to check if a player is in a cond before removing it, you can just remove it with the native.
public OnEntityCreated(iEnt, const String:szClassname[]) << don't use this
use OnConditionAdded > check for taunting, and then you can check the taunt index. This would work 100% of the time, everytime. You could then use a global float to save their last start/cancellation and block the conga using requestframe or w/e from OnConditionAdded, so they can't start it again until your delay. If they arn't on cooldown, fire a timer to kill it and set the cd.

Chdata 12-29-2014 18:59

Re: [TF2] Conga Time Limit 0x01 (Last updated *Today* 12/29/2014 | 12:37PM CDT)
 
Yeah I know and was gonna change that (about checking if in the cond) for some reason I was copypasting stuff I don't need.

I forgot about m_iTauntIndex, THX

... Or the itemdefindex one

Chdata 12-30-2014 14:28

Re: [TF2] Conga Time Limit 0x02 (Last updated *Today* 12/30/2014 | 1:24PM CDT)
 
Kay it's updated.

kelvin31 12-30-2014 23:56

Re: [TF2] Conga Time Limit 0x02 (Last updated *Today* 12/30/2014 | 1:24PM CDT)
 
Quote:

Originally Posted by Chdata (Post 2242290)
Kay it's updated.

is it autogen "ch.conga.cfg" this time?
if yes, can I cahnge conga limit second?

Chdata 12-31-2014 02:46

Re: [TF2] Conga Time Limit 0x02 (Last updated *Today* 12/30/2014 | 1:24PM CDT)
 
I didn't add cvars yet

braak0327 12-31-2014 02:54

Re: [TF2] Conga Time Limit 0x02 (Last updated *Today* 12/30/2014 | 1:24PM CDT)
 
*TEARS*

Chdata 03-28-2015 06:29

Re: [TF2] Conga Time Limit 0x03 (Last updated *Today* 3/28/2015 | 6:24AM CDT)
 
Added the convars.

Generates tf/cfg/sourcemod/ch.conga.cfg now.

341464 01-24-2016 00:27

Re: [TF2] Conga Time Limit 0x03 (Last updated 3/28/2015 | 5:24AM CDT)
 
I think this just saved me a bunch of trouble. Seriously, I've been getting so many players congaing none stop on my server and overflowing everyone.

Chdata 08-04-2017 18:53

Re: [TF2] Taunt Time Limit 0x06 (Last updated 8/4/2017 | 5:43PM CDT)
 
Updated the plugin to catch all special taunts.

"This'll capture pretty much everything: Conga, Kazotsky Kick, Mannrobics, Box-Trot, Victory Lap, Dosido, High Five, etc..."

Including any new taunts that get added over time.

Unless Valve completely changes the taunt system again, which is unpredictable and unlikely.


All times are GMT -4. The time now is 17:13.

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