Raised This Month: $ Target: $400
 0% 

[TF2] Teamstack Humiliation


Post New Thread Reply   
 
Thread Tools Display Modes
Author
simoneaolson
Member
Join Date: Sep 2009
Plugin ID:
1761
Plugin Version:
1.03
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Humiliates a player in the opposite base when they try to stack the teams
    Unapprover:
    Reason for Unapproving:
    Unsupported
    Old 06-25-2010 , 23:26   [TF2] Teamstack Humiliation
    Reply With Quote #1

    DESCRIPTION

    When the teams are stacked and a client attempts to join the winning team, the client gets teleported to the enemy base to be humiliated by death (w/ instant respawn). The humiliation ends when the opposite team kills the client 10 times.

    CVARS
    tf_teamswitch_hum_version - Plugin version
    tf_teamswitch_hum_enabled - Enable/Disable Def: 1
    tf_teamswitch_hum_threshold - Threshold that determines if the client's team is losing (float) Def: 0.80
    tf_teamswitch_hum_num_humiliations - Number of times to humiliate the client at the opposite spawn (int) Def: 10

    EXAMPLE
    (Client Team's Combined Score / Opposite Team's Combined Score) <= Threshold

    ex. client is blue, BLU team has 137 points and RED has 200

    137/200 <= 0.80 (threshold) --> Humiliate player that switched


    CHANGELOG
    v1.0 - Initial Release
    v1.01 - Fixed a minor bug
    v1.02 - Fixed IsClientInGame error
    v1.03 - Fixed error while trying to get client team on disconnect

    NOTES
    * Direct any bugs, suggestions, ideas, etc to this thread
    * Thanks to the sourcemod community!
    Attached Files
    File Type: sp Get Plugin or Get Source (tf_teamswitch_humiliation.sp - 351 views - 9.1 KB)

    Last edited by simoneaolson; 06-30-2010 at 00:13.
    simoneaolson is offline
    crazydog
    AlliedModders Donor
    Join Date: Jan 2006
    Old 06-26-2010 , 02:36   Re: [TF2] Teamstack Humiliation
    Reply With Quote #2

    How does this detect teams being stacked? Just by player count? Then I'd assume this doesn't work with any kind of team balancer?
    crazydog is offline
    simoneaolson
    Member
    Join Date: Sep 2009
    Old 06-26-2010 , 02:39   Re: [TF2] Teamstack Humiliation
    Reply With Quote #3

    It detects teams being stacked by

    (Client Team's Combined Score / Opposite Team's Combined Score) <= Threshold

    ex. client is blue, BLU team has 137 points and RED has 200

    137/200 <= 0.80 --> Humiliate player that switched
    simoneaolson is offline
    Droganis
    Junior Member
    Join Date: Nov 2009
    Old 07-27-2010 , 03:44   Re: [TF2] Teamstack Humiliation
    Reply With Quote #4

    What about a player that just joined the game, would it consider him/her or leave them out?
    Droganis is offline
    Matthias Vance
    Senior Member
    Join Date: Jan 2009
    Old 08-21-2010 , 10:58   Re: [TF2] Teamstack Humiliation
    Reply With Quote #5

    • Use MAXPLAYERS for arrays.
    • Start for() loops for players from 1 instead of 0.
    Matthias Vance 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 10:04.


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