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

[TF2] Thriller Dance


Post New Thread Reply   
 
Thread Tools Display Modes
Author
SoulSharD
Member
Join Date: Oct 2013
Location: United Kingdom
Plugin ID:
4291
Plugin Version:
1.0.1
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Force players to do the Thriller!
    Old 07-28-2014 , 09:16   [TF2] Thriller Dance
    Reply With Quote #1

    [TF2] Thriller Dance
    Description:
    Adds a command to force players to do the Thriller for a specified amount of time. This plugin uses the TF2 condition 54 which renders players immobile, and are forced to taunt until the end of the specified duration. However, condition 54 has some side-effects, which are listed below.

    Cvars:

    sm_thrillerdance_version - Does something useful.
    sm_thrillerdance_humilation - Forces the losing teams to dance during the humiliation period. (def. 0) [Includes stalemate]
    sm_thrillerdance_displaytimer - 0/1 - Enable or disable the display timer during the thriller. (def. 0)

    The countdown will play a small sound whenever it ticks. To disable the sound use this internal command: "sv_hudhint_sound 0" (only if you have sm_thrillerdance_displaytimer set to 1).

    Commands:

    sm_thriller <name|#userid> [duration/s] (Slay)

    Example: sm_thriller SoulSharD 120 - Will send me dancing for 2 minutes.

    Any values which are <= 0 will remove the Thriller.
    Using this command on a player that is currently dancing will reset his countdown to the new value.

    sm_dance - Same function as sm_thriller.

    Installation:
    1. Download the below 'thrillerdance.smx' file.
    2. Paste the 'thrillerdance.smx' file into: addons/sourcemod/plugins
    3. Load the plugin using your preferred methods. (Restart or command.)
    Bugs/Fixes:
    • As of release: none. (I'm sure someone will correct me later.)
    Notes:
    • The effect is automatically removed on death.
    • The commands will not work during "waiting for players" This is deliberate to prevent buggy things happening when the round actually starts.
    Credits:
    • DarthNinja - His Force Round End plugin was used to test the humiliation feature.
    • The unfortunate souls in my trade server... lol...
    Changelog:
    • 28/07/14 - Initial Release.
    • 28/07/14 - Added cvar: "sm_thriller_displaytimer"
    [SIDE-EFFECTS]
    As I've mention above, there are a few positive and negative effects:


    The thriller music automatically plays, some may find this a good thing, but others may want to disable the music, which isn't possible. The music is also client-side, others can't hear it unless they're dancing themselves. (This also means I didn't have to precache it.)



    And the worst effect, the condition also completely disables ability to access the console. This includes binds. However, fortunately chat based commands still work (! and /) Which means if you use this on yourself, you are able to remove it with "!thriller @me 0" in chat.


    Quick information:
    • 3600 = 1 hour
    • 86400 = 1 day
    • 604800 = 1 week
    I will not be held responsible for what you do with this information. (Timer would probably die anyway...)

    Attached Files
    File Type: sp Get Plugin or Get Source (thrillerdance.sp - 1328 views - 5.0 KB)
    __________________


    Last edited by SoulSharD; 07-28-2014 at 17:16. Reason: Update.
    SoulSharD is offline
    Horsedick
    AlliedModders Donor
    Join Date: Sep 2011
    Old 07-28-2014 , 15:02   Re: [TF2] Thriller Dance
    Reply With Quote #2

    Interesting... I don't care for the timer though at the bottom of the screen. can you add a Cvar to allow you to not show that or any messages at all. If I was to use this I'd rather use it as a hidden feature and just have players wonder what the hell was going on.
    Horsedick is offline
    SoulSharD
    Member
    Join Date: Oct 2013
    Location: United Kingdom
    Old 07-28-2014 , 17:14   Re: [TF2] Thriller Dance
    Reply With Quote #3

    Alrighty then, I've added a new cvar to enable/disable the display (and sound). It's also disabled by default.

    version: 1.0.1
    __________________

    SoulSharD is offline
    Horsedick
    AlliedModders Donor
    Join Date: Sep 2011
    Old 07-28-2014 , 19:53   Re: [TF2] Thriller Dance
    Reply With Quote #4

    Well disabling the sounds also prevents someone from using their mic...not sure if that is by design or what.
    Horsedick is offline
    SoulSharD
    Member
    Join Date: Oct 2013
    Location: United Kingdom
    Old 07-29-2014 , 05:41   Re: [TF2] Thriller Dance
    Reply With Quote #5

    If that's during the dance, then yes. The TF2 condition pretty much disables everything but the chat and pause.
    __________________

    SoulSharD is offline
    Wormy
    Senior Member
    Join Date: Jan 2013
    Location: 2fort
    Old 08-18-2015 , 13:48   Re: [TF2] Thriller Dance
    Reply With Quote #6

    If you could add a command that players can use on theirselves then that would be great. Like sm_thrillerme.
    __________________

    Last edited by Wormy; 08-18-2015 at 13:48.
    Wormy is offline
    Benoist3012
    Veteran Member
    Join Date: Mar 2014
    Location: CWave::ForceFinish()
    Old 08-18-2015 , 14:57   Re: [TF2] Thriller Dance
    Reply With Quote #7

    I have maybe one bug, I discovered when I was making a map that when players are sent in hell they get the over heal effect but this one disapear only if the thriller cond come at end, so you can maybe broke the overheal in the helltower. But this is more tf2 fault.

    I recommand you to add TF2_AddCondition(client, TFCond:54, 1.4); in you duration timer instead of removing it.
    __________________

    Last edited by Benoist3012; 08-18-2015 at 14:57.
    Benoist3012 is offline
    Reply



    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 05:06.


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