Raised This Month: $12 Target: $400
 3% 

[TF2] Taunt Time Limit 0x06 (Last updated 8/4/2017 | 5:43PM CDT)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Plugin ID:
4468
Plugin Version:
0x06
Plugin Category:
Server Management
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    2 
    Plugin Description:
    Forces players to stop congaing after 5 seconds.
    Old 12-29-2014 , 13:48   [TF2] Taunt Time Limit 0x06 (Last updated 8/4/2017 | 5:43PM CDT)
    Reply With Quote #1

    [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.

    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
    Attached Files
    File Type: sp Get Plugin or Get Source (tauntlimiter.sp - 965 views - 5.2 KB)
    __________________

    Last edited by Chdata; 08-04-2017 at 19:13.
    Chdata is offline
    friagram
    Veteran Member
    Join Date: Sep 2012
    Location: Silicon Valley
    Old 12-29-2014 , 18:36   Re: [TF2] Conga Time Limit 0x01 (Last updated *Today* 12/29/2014 | 12:37PM CDT)
    Reply With Quote #2

    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.
    __________________
    Profile - Plugins
    Add me on steam if you are seeking sp/map/model commissions.

    Last edited by friagram; 12-29-2014 at 18:38.
    friagram is offline
    Chdata
    Veteran Member
    Join Date: Aug 2012
    Location: Computer Chair, Illinois
    Old 12-29-2014 , 18:59   Re: [TF2] Conga Time Limit 0x01 (Last updated *Today* 12/29/2014 | 12:37PM CDT)
    Reply With Quote #3

    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
    __________________

    Last edited by Chdata; 12-29-2014 at 20:33.
    Chdata is offline
    Chdata
    Veteran Member
    Join Date: Aug 2012
    Location: Computer Chair, Illinois
    Old 12-30-2014 , 14:28   Re: [TF2] Conga Time Limit 0x02 (Last updated *Today* 12/30/2014 | 1:24PM CDT)
    Reply With Quote #4

    Kay it's updated.
    __________________
    Chdata is offline
    kelvin31
    Member
    Join Date: May 2010
    Old 12-30-2014 , 23:56   Re: [TF2] Conga Time Limit 0x02 (Last updated *Today* 12/30/2014 | 1:24PM CDT)
    Reply With Quote #5

    Quote:
    Originally Posted by Chdata View Post
    Kay it's updated.
    is it autogen "ch.conga.cfg" this time?
    if yes, can I cahnge conga limit second?
    kelvin31 is offline
    Chdata
    Veteran Member
    Join Date: Aug 2012
    Location: Computer Chair, Illinois
    Old 12-31-2014 , 02:46   Re: [TF2] Conga Time Limit 0x02 (Last updated *Today* 12/30/2014 | 1:24PM CDT)
    Reply With Quote #6

    I didn't add cvars yet
    __________________
    Chdata is offline
    braak0327
    AlliedModders Donor
    Join Date: Dec 2012
    Location: NORT....SOUTH KOREA
    Old 12-31-2014 , 02:54   Re: [TF2] Conga Time Limit 0x02 (Last updated *Today* 12/30/2014 | 1:24PM CDT)
    Reply With Quote #7

    *TEARS*
    __________________
    I'M KIMCHI
    braak0327 is offline
    Send a message via Skype™ to braak0327
    Chdata
    Veteran Member
    Join Date: Aug 2012
    Location: Computer Chair, Illinois
    Old 03-28-2015 , 06:29   Re: [TF2] Conga Time Limit 0x03 (Last updated *Today* 3/28/2015 | 6:24AM CDT)
    Reply With Quote #8

    Added the convars.

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

    Last edited by Chdata; 03-28-2015 at 06:30.
    Chdata is offline
    341464
    Senior Member
    Join Date: Dec 2010
    Location: GetClientEyePosition
    Old 01-24-2016 , 00:27   Re: [TF2] Conga Time Limit 0x03 (Last updated 3/28/2015 | 5:24AM CDT)
    Reply With Quote #9

    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.
    __________________
    341464 is offline
    Send a message via Skype™ to 341464
    Chdata
    Veteran Member
    Join Date: Aug 2012
    Location: Computer Chair, Illinois
    Old 08-04-2017 , 18:53   Re: [TF2] Taunt Time Limit 0x06 (Last updated 8/4/2017 | 5:43PM CDT)
    Reply With Quote #10

    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.
    __________________

    Last edited by Chdata; 08-04-2017 at 18:53.
    Chdata 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 09:54.


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