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

[TF2] SlapTheStackers


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Pootis Spencer Ere
Junior Member
Join Date: Nov 2011
Plugin ID:
3229
Plugin Version:
1.0
Plugin Category:
Gameplay
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Periodically slaps class stackers
    Old 09-09-2012 , 08:48   [TF2] SlapTheStackers
    Reply With Quote #1

    (this is my first plugin release)

    Tired of playing CTF matches that have more snipers then scouts?
    Want something done about all of those heavy/medic teams spawn-camping your base?
    Don't want to completely disable specific classes on your server?
    Well you're not alone.

    Add this plugin to "discourage" class stacking.
    it's completely configurable through cvars:

    sm_SlapTheStackers_MinPlayers : Min number of players per team in order to slap them (Min:0, Max:, Default:4, NB:zero disables slapping)
    sm_SlapTheStackers_Interval : How often (in seconds) to slap the class stackers. (Min:0.1, Max:300, Default:0.5)
    sm_SlapTheStackers_Damage : How much slap damage players recieve. (Min:0, Max:300, Default:1)

    sm_SlapTheStackers_PercentageScale : TeamClassCountLimit = RoundUp( (NumTeamPlayers / 9Classes) * ThisValue ); (Min:0.1, Max:0.9, Default:0.15)
    Code:
    TeamClassCountLimit = RoundUp( (NumTeamPlayers / 9Classes) * PercentageScaleValue )
    >> During testing, using a fixed percentage value wouldn't work properly 
    >> so this formula was designed to scale the class percentage as players join/leave teams.
    
    Examples (Warning! advanced math, it may make your head explode!):
    >> Using a scale value of 0.1
    >>>> 0.1 * (4Players / 9Classes = 0.4~) = 0.40 (40% of 4 players rounded up = 1ClassLimit)
    >>>> 0.1 * (16Players / 9Classes = 1.7~) = 0.17 (17% of 16 players rounded up = 3ClassLimit)
    >>>>>> All players exceeding this class limit count will be slapped.
    
    >> Using a scale value of 0.15
    >>>> 0.15 * (4Players / 9Classes = 0.4~) = 0.6 (60% of 4 players rounded up = 1ClassLimit)
    >>>> 0.15 * (16Players / 9Classes = 1.7~) = 0.255 (25.5% of 16 players rounded up = 4ClassLimit)
    >>>>>> All players exceeding this class limit count will be slapped.
    	  
    >> Using a scale value of 0.2
    >>>> 0.2 * (4Players / 9Classes = 0.4~) = 0.80 (80% of 4 players rounded up = 1ClassLimit)
    >>>> 0.2 * (16Players / 9Classes = 1.7~) = 0.34 (34% of 16 players rounded up = 6ClassLimit)
    >>>>>> All players exceeding this class limit count will be slapped.
    Attached Files
    File Type: sp Get Plugin or Get Source (SlapTheStackers.sp - 586 views - 4.2 KB)
    __________________
    Common Aliases: Xyphos, [poni] Shutterfly, Pootis Spencer Ere

    Mapping & Gameplay: AddCond | AreaCond | TrapKill | TriggerHappy

    SlapTheStackers

    Last edited by Pootis Spencer Ere; 10-10-2012 at 11:07. Reason: Spelling, Disable Smiles, Title fix
    Pootis Spencer Ere is offline
    K o T
    Senior Member
    Join Date: Jan 2011
    Old 04-06-2013 , 02:15   Re: [TF2] SlapTheStackers
    Reply With Quote #2

    Plugins such took robbed hp some on base
    K o T is offline
    lyric
    Veteran Member
    Join Date: Sep 2012
    Old 04-06-2013 , 11:33   Re: [TF2] SlapTheStackers
    Reply With Quote #3

    Quote:
    Originally Posted by K o T View Post
    Plugins such took robbed hp some on base
    Has anyone really been far even as decided to use even go want to do look more like?
    __________________
    lyric is offline
    Snaggle
    AlliedModders Donor
    Join Date: Jul 2010
    Location: England
    Old 04-06-2013 , 15:22   Re: [TF2] SlapTheStackers
    Reply With Quote #4

    Quote:
    Originally Posted by lyric View Post
    Has anyone really been far even as decided to use even go want to do look more like?
    The plugin slap the base to hp if the base stack medic and heavy.
    Snaggle is offline
    K o T
    Senior Member
    Join Date: Jan 2011
    Old 04-08-2013 , 18:52   Re: [TF2] SlapTheStackers
    Reply With Quote #5

    sometimes it is just necessary to depart for 2 minutes and you threw out
    K o T is offline
    noodleboy347
    AlliedModders Donor
    Join Date: Mar 2009
    Old 04-09-2013 , 01:29   Re: [TF2] SlapTheStackers
    Reply With Quote #6

    Quote:
    Originally Posted by K o T View Post
    sometimes it is just necessary to depart for 2 minutes and you threw out
    What now
    noodleboy347 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 20:28.


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