Raised This Month: $169 Target: $400
 42% 

[TF2] Humiliation Conditions


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Plugin ID:
3638
Plugin Version:
1.0.0
Plugin Category:
Gameplay
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    22 
    Plugin Description:
    Applies various conditions to players during the humiliation round
    Old 05-03-2013 , 19:19   [TF2] Humiliation Conditions
    Reply With Quote #1

    [TF2] Humiliation Conditions

    v1.0.0

    Description:
    Applies various conditions to players during the humiliation round. Condition codes:

    Quote:
    1 = UberCharged
    2 = UberCharge Fading (requires 1 to be set for any effect)
    4 = Teleported sparkle
    8 = Buff Banner (Rings + Glowing)
    16 = Battalion's Backup (Rings + Glowing)
    32 = Mini-Crits (Crit-a-Cola)
    64 = Jarated
    128 = Mad Milked
    256 = Quick-Fix MegaHeal
    512 = Marked for Death
    1024 = Speed Buff (Disciplinary Action)
    Cvars:
    • humiliation_conditions_version - plugin version
    • humiliation_conditions_auto_update - enables automatic updating (has no effect if Updater is not installed), defaults to 1
    • humiliation_conditions_winning_team - sum of condition codes to be applied to winning team
    • humiliation_conditions_losing_team - sum of condition codes to be applied to losing team
    • humiliation_conditions_winning_team_admin - sum of condition codes to be applied to admins on the winning team
    • humiliation_conditions_losing_team_admin - sum of condition codes to be applied to admins on the losing team

    Admins are defined by the "a" flag. The admin flag can be overridden by overriding "humiliation_conditions_admin".

    Plugin creates and loads cfg/sourcemod/plugin.humiliationconditions.cfg.

    Installation:
    Put humiliationconditions.smx into /addons/sourcemod/plugins, and reboot your server or type "sm plugins load humiliationconditions" into your console or rcon.

    Auto Update:
    Install Updater. The plugin will be auto-updated according to your Updater settings. It'll work without Updater.

    Changelog:
    • v1.0.0 (5/3/13)
      • Initial release

    Download Plugin (humiliationconditions.smx)
    View Source (humiliationconditions.sp)


    Requires updater.inc and mckayupdater.sp to compile.
    __________________

    Last edited by Dr. McKay; 05-03-2013 at 19:20.
    Dr. McKay is offline
    FlaminSarge
    Veteran Member
    Join Date: Jul 2010
    Old 05-04-2013 , 08:31   Re: [TF2] Humiliation Conditions
    Reply With Quote #2

    Doesn't ubercharge not work for the losing team?

    In addition, it might be more flexible to parse a string containing a list of comma-separated cond numbers (saving the list every time it's changed so you don't have to parse it every time you want to apply conds) instead of defining a set list of conds, so any cond can be used. Naturally, you'd block unsafe conds like cond 1.
    __________________
    Bread EOTL GunMettle Invasion Jungle Inferno will break everything. Don't even ask.

    All plugins: Randomizer/GiveWeapon, ModelManager, etc.
    Post in plugin threads with questions.
    Steam is for playing games.
    You will be fed to javalia otherwise.
    Psyduck likes replays.

    Last edited by FlaminSarge; 05-04-2013 at 08:32.
    FlaminSarge is offline
    Dr. McKay
    Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
    Join Date: Aug 2011
    Location: Atlantis
    Old 05-04-2013 , 15:29   [TF2] Humiliation Conditions
    Reply With Quote #3

    Quote:
    Originally Posted by FlaminSarge View Post
    Doesn't ubercharge not work for the losing team?

    In addition, it might be more flexible to parse a string containing a list of comma-separated cond numbers (saving the list every time it's changed so you don't have to parse it every time you want to apply conds) instead of defining a set list of conds, so any cond can be used. Naturally, you'd block unsafe conds like cond 1.
    I don't know, I didn't test über on the losing team.

    I did some testing and there's actually a very small list of conditions that can be applied (and work) with TF2_AddCondition. Plus in the future I'm planning on adding "conditions" that aren't true TF2 conditions, such as merging my Humiliation Glow plugin with this one.
    __________________
    Dr. McKay is offline
    FlaminSarge
    Veteran Member
    Join Date: Jul 2010
    Old 05-05-2013 , 09:09   Re: [TF2] Humiliation Conditions
    Reply With Quote #4

    There's 65 conditions right now, and nearly all of them work with the native (in particular, the ones that DON'T are healing, overhealed, inhealradius, bleeding, onfire; cloakflicker gets added and is removed a frame later if the relevant player isn't a cloaked spy touching an enemy/out of CnD cloak; similar restrictions are on 'disguising' but not 'disguised').

    At the very least, cond 43 (reprogrammed) seems like a thing that would be interesting for this plugin; however, using string parsing and identifiers for your custom conditions would be far more flexible (yes, string parsing is generally considered clunky but with cvars you don't really have much choice so why not).
    __________________
    Bread EOTL GunMettle Invasion Jungle Inferno will break everything. Don't even ask.

    All plugins: Randomizer/GiveWeapon, ModelManager, etc.
    Post in plugin threads with questions.
    Steam is for playing games.
    You will be fed to javalia otherwise.
    Psyduck likes replays.
    FlaminSarge is offline
    Dr. McKay
    Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
    Join Date: Aug 2011
    Location: Atlantis
    Old 05-05-2013 , 11:22   [TF2] Humiliation Conditions
    Reply With Quote #5

    Quote:
    Originally Posted by FlaminSarge View Post
    There's 65 conditions right now, and nearly all of them work with the native (in particular, the ones that DON'T are healing, overhealed, inhealradius, bleeding, onfire; cloakflicker gets added and is removed a frame later if the relevant player isn't a cloaked spy touching an enemy/out of CnD cloak; similar restrictions are on 'disguising' but not 'disguised').

    At the very least, cond 43 (reprogrammed) seems like a thing that would be interesting for this plugin; however, using string parsing and identifiers for your custom conditions would be far more flexible (yes, string parsing is generally considered clunky but with cvars you don't really have much choice so why not).
    I'll go through the list again and take a look, but in my experience a lot of the conditions either have no effect or don't work right in humiliation. Applying the bonked condition, for example, works but causes weird graphical glitches. Similarly, applying Kritzkreiged (or one of the other crits conditions) is useless, since the losers don't have weapons and the winners already have crits. I suppose I can remove crit-a-cola for that reason.

    I suppose a comma-delimited list might work better. Numbers get pretty large pretty quick when doing bitwise
    __________________
    Dr. McKay is offline
    FlaminSarge
    Veteran Member
    Join Date: Jul 2010
    Old 05-06-2013 , 00:20   Re: [TF2] Humiliation Conditions
    Reply With Quote #6

    The Crit-a-Cola one is useful mainly because it causes players to take minicrits, which takes effect for afterburn, bleeding, and sentry guns. I suppose that's a reason you can leave it in.

    In addition, if random crits are disabled, then players that respawn during humiliation don't deal winning crits, as they lose the winningcrit cond on respawn but can't crit. Even in stock TF2, it's possible to respawn during humiliation by changing classes if you're on the winning team, as long as your respawn timer has expired.
    __________________
    Bread EOTL GunMettle Invasion Jungle Inferno will break everything. Don't even ask.

    All plugins: Randomizer/GiveWeapon, ModelManager, etc.
    Post in plugin threads with questions.
    Steam is for playing games.
    You will be fed to javalia otherwise.
    Psyduck likes replays.
    FlaminSarge is offline
    Pootisbird
    Junior Member
    Join Date: Jan 2013
    Location: Germany
    Old 07-15-2013 , 18:45   Re: [TF2] Humiliation Conditions
    Reply With Quote #7

    Is it possible and when yes how to us multiple Conditions? Like "humiliation_conditions_winning_team 1,1024 " ?
    __________________


    Pootisbird is offline
    Dr. McKay
    Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
    Join Date: Aug 2011
    Location: Atlantis
    Old 07-15-2013 , 20:59   [TF2] Humiliation Conditions
    Reply With Quote #8

    Quote:
    Originally Posted by Pootisbird View Post
    Is it possible and when yes how to us multiple Conditions? Like "humiliation_conditions_winning_team 1,1024 " ?
    Add up the codes that you want to use. For example, 1 + 1024 = 1025.
    __________________
    Dr. McKay is offline
    FlaminSarge
    Veteran Member
    Join Date: Jul 2010
    Old 07-18-2013 , 02:02   Re: [TF2] Humiliation Conditions
    Reply With Quote #9

    Valve's increased the number of conditions to 71, so that system for that cvar may not be ideal if you want to add any more conds.
    __________________
    Bread EOTL GunMettle Invasion Jungle Inferno will break everything. Don't even ask.

    All plugins: Randomizer/GiveWeapon, ModelManager, etc.
    Post in plugin threads with questions.
    Steam is for playing games.
    You will be fed to javalia otherwise.
    Psyduck likes replays.
    FlaminSarge 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 17:20.


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