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

Team Ratio Control


Post New Thread Reply   
 
Thread Tools Display Modes
Author
meng
Veteran Member
Join Date: Oct 2005
Location: us
Plugin ID:
1366
Plugin Version:
0.7
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    limits / adjusts team sizes by ratio.
    Unapprover:
    Reason for Unapproving:
    Author requested unapproval
    Old 12-28-2009 , 03:26   Team Ratio Control
    Reply With Quote #1

    Team Ratio Control

    Limits / Assigns players to a team based on a target ratio. Should be useful for custom gameplay types such as jailbreak, deathrun, hide'n'seek or any other game requiring different team sizes. There is also an optional basic balancer for adjusting the teams at round end.

    If you have any ideas on how to improve the balancer, please post. I wasnt sure about switching only the dead or maybe giving admin immunity.

    ConVars
    PHP Code:
    // enable plugin?
    sm_trc_enabled "1"

    // minimun # of players before controlling teams
    sm_trc_minplayers "1"

    // the target team1/team2 ratio
    // strict syntax! use "#:#" only. *use quotes when changing value!
    sm_trc_ratio "1:1"

    // adjust the effectiveness. range [0.0 - 1.0]
    // try 0.7 or so for less rigid limitations.
    sm_trc_ratioeffect "1.0"

    // auto-adjust teams at round end?
    // *players are randomly picked.
    sm_trc_autoadjust "1" 
    Attached Files
    File Type: sp Get Plugin or Get Source (TeamRatioControl.sp - 1251 views - 5.5 KB)
    __________________
    .
    [ 1 Dumerils Boa | 1 Cali King ]...
    .
    I'm a lil' spirituous.

    Last edited by meng; 12-31-2009 at 16:08.
    meng is offline
    Send a message via Yahoo to meng
    shustas
    SourceMod Donor
    Join Date: May 2007
    Location: London
    Old 12-28-2009 , 08:01   Re: Team Ratio Control
    Reply With Quote #2

    mp_autoteambalance and mp_teamlimmit?
    __________________
    shustas is offline
    meng
    Veteran Member
    Join Date: Oct 2005
    Location: us
    Old 12-28-2009 , 22:17   Re: Team Ratio Control
    Reply With Quote #3

    Quote:
    Originally Posted by shustas View Post
    mp_autoteambalance and mp_teamlimmit?
    ha, yea that would do the same thing. but i dont think that would work for other ratios. like 1 or so for jailbreak. maybe i should make sure those are turned off to avoid confusion. im not that familiar with jailbreak or hide n seek. but its been requested for those types of gameplay.
    __________________
    .
    [ 1 Dumerils Boa | 1 Cali King ]...
    .
    I'm a lil' spirituous.
    meng is offline
    Send a message via Yahoo to meng
    Cleric
    Member
    Join Date: Feb 2009
    Location: Sweden
    Old 12-29-2009 , 07:09   Re: Team Ratio Control
    Reply With Quote #4

    Great work, was looking for a plugin like this for dataviruset's SM_Hosties.
    __________________
    Cleric is offline
    meng
    Veteran Member
    Join Date: Oct 2005
    Location: us
    Old 12-31-2009 , 03:49   Re: Team Ratio Control
    Reply With Quote #5

    Thx, i thought it would be useful for jailbreak/hosties (same thing?). let me know how it works.
    __________________
    .
    [ 1 Dumerils Boa | 1 Cali King ]...
    .
    I'm a lil' spirituous.
    meng is offline
    Send a message via Yahoo to meng
    mats
    Senior Member
    Join Date: Jan 2005
    Old 01-08-2010 , 14:49   Re: Team Ratio Control
    Reply With Quote #6

    I have sm_trc_ratio "11:1" but still there are 2 T's?
    __________________
    mats is offline
    meng
    Veteran Member
    Join Date: Oct 2005
    Location: us
    Old 01-08-2010 , 15:10   Re: Team Ratio Control
    Reply With Quote #7

    hmm. well its t:ct. so try "1:11". and use default values for the rest. i should also mention this plugin has no effect on bots.
    __________________
    .
    [ 1 Dumerils Boa | 1 Cali King ]...
    .
    I'm a lil' spirituous.
    meng is offline
    Send a message via Yahoo to meng
    mats
    Senior Member
    Join Date: Jan 2005
    Old 01-08-2010 , 18:31   Re: Team Ratio Control
    Reply With Quote #8

    Quote:
    Originally Posted by meng View Post
    hmm. well its t:ct. so try "1:11". and use default values for the rest. i should also mention this plugin has no effect on bots.
    Tried that to, but still there are 2 t's. it is on deathrun maps
    __________________
    mats is offline
    meng
    Veteran Member
    Join Date: Oct 2005
    Location: us
    Old 01-08-2010 , 22:29   Re: Team Ratio Control
    Reply With Quote #9

    out of curiosity, try increasing the effect value. you can adjust it in game. try adding .1 at a time. ex. sm_trc_ratioeffect "1.1" see if that helps. also, use sm_trc_minplayers "0"
    __________________
    .
    [ 1 Dumerils Boa | 1 Cali King ]...
    .
    I'm a lil' spirituous.
    meng is offline
    Send a message via Yahoo to meng
    Groger
    Veteran Member
    Join Date: Oct 2009
    Location: Belgium
    Old 02-18-2010 , 08:04   Re: Team Ratio Control
    Reply With Quote #10

    Hi,

    Nice plugin i'm concidering uploading this to my jail server
    But the admin immunity as you said in the descripion would be very nice
    I hope its possible you can make it so the script looks into the config/admin.cfg

    Roger
    Groger 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 02:22.


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