Raised This Month: $319 Target: $400
 79%   Almost there!

[SMJT] SM Jail Teams (Ratio Balance)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
eladnava
Member
Join Date: Feb 2011
Plugin ID:
2264
Plugin Version:
1.0.0
Plugin Category:
Gameplay
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    This plugin introduces a team ratio of terrorists to counter-terrorists for jail servers.
    Old 03-06-2011 , 11:18   [SMJT] SM Jail Teams (Ratio Balance)
    Reply With Quote #1

    [SMJT] SM Jail Teams



    This plugin introduces a team ratio of terrorists to counter-terrorists for jail servers. It will not allow joining the CTs team if there aren't enough terrorists to preserve the ratio between the teams. By default, every CT requires 3 Terrorists to be logged in and playing. You can change this in the plugin CVars.

    Warning: If terrorists start leaving the server, and the balance is cancelled, the plugin will not move any of the CTs back to the terrorist team, but I am greatly considering adding this in the next version!

    Version History:
    v1.0.3 - Fixed bug where it didn't let people into CT
    v1.0.2 - Removed admin bypass, it was misbehaving
    v1.0.1 - Changed text and sound when denying transfer
    v1.0.0 - Initial Release

    cfg/sourcemod/sm_jailteams.cfg

    Auto-generated after installation.

    Code:
    // This file was auto-generated by SourceMod (v1.3.6)
    // ConVars for plugin "sm_jailteams.smx"
    
    
    // Enables the jail team ratio plugin.
    // -
    // Default: "1"
    sm_jt "1"
    
    // The ratio of terrorists to counter-terrorists. (Default: 1CT = 3T)
    // -
    // Default: "3"
    sm_jt_ratio "3"
    
    // There is no need to change this value.
    // -
    // Default: "1.0.0"
    sm_jt_version "1.0.0"
    Enjoy!
    Attached Files
    File Type: sp Get Plugin or Get Source (sm_jailteams.sp - 10097 views - 3.9 KB)

    Last edited by eladnava; 03-11-2011 at 04:17.
    eladnava is offline
    namine
    SourceMod Donor
    Join Date: Jul 2010
    Old 03-08-2011 , 08:31   Re: [SMJT] SM Jail Teams (Ratio Balance)
    Reply With Quote #2

    A fine plugin that is much more effective than other ratio enforcers on the forum. Could you maybe incorporate seniority so it could auto-move players based on points and time on the server?
    __________________
    namine is offline
    Groger
    Veteran Member
    Join Date: Oct 2009
    Location: Belgium
    Old 03-08-2011 , 15:30   Re: [SMJT] SM Jail Teams (Ratio Balance)
    Reply With Quote #3

    I tested this on a full server

    Lots of people told me they couldn't join a team. Could you have a look at that plz?.
    Groger is offline
    eladnava
    Member
    Join Date: Feb 2011
    Old 03-10-2011 , 12:08   Re: [SMJT] SM Jail Teams (Ratio Balance)
    Reply With Quote #4

    It won't let them join if doing so would cancel the ratio specified in the config. By default, 1 CT = 3 Terror. E.g. there are 9 terrorists and 3 CTs. A new player joins and wants to go CT. It won't let them.

    If there were 9 Terrrorists and 2 CTs, it would let another one join to the CT.

    Re: namine, do you want the mod to auto-move players from T to CT when necessary? The problem with auto-moving in Jail servers is that people without a microphone get moved and can't be a guard. Usually, more people want to be a CT guard than the prisoner. Also, what do you mean based on points? (Kills)? (Deaths)?

    Last edited by eladnava; 03-11-2011 at 00:04.
    eladnava is offline
    eladnava
    Member
    Join Date: Feb 2011
    Old 03-11-2011 , 06:52   Re: [SMJT] SM Jail Teams (Ratio Balance)
    Reply With Quote #5

    v1.0.3 released, some bugs fixed
    eladnava is offline
    Groger
    Veteran Member
    Join Date: Oct 2009
    Location: Belgium
    Old 05-14-2011 , 12:14   Re: [SMJT] SM Jail Teams (Ratio Balance)
    Reply With Quote #6

    T team get stacked all the time. Could you plz fix this

    So it blocks people from joining CT if there are enought ct's, but it doesnt force people to join CT if there are enough Ts

    Thx in advance
    Groger is offline
    dataviruset
    AlliedModders Donor
    Join Date: Feb 2009
    Location: Hong Kong
    Old 05-14-2011 , 19:06   Re: [SMJT] SM Jail Teams (Ratio Balance)
    Reply With Quote #7

    What's the difference between this plugin and this one?
    dataviruset is offline
    klausenbusk
    AlliedModders Donor
    Join Date: Jan 2011
    Old 05-14-2011 , 20:49   Re: [SMJT] SM Jail Teams (Ratio Balance)
    Reply With Quote #8

    Quote:
    Originally Posted by dataviruset View Post
    What's the difference between this plugin and this one?
    I try this plugin before, and switced to this, because it have a big bug, you doesn’t spawn
    klausenbusk is offline
    klausenbusk
    AlliedModders Donor
    Join Date: Jan 2011
    Old 05-19-2011 , 14:05   Re: [SMJT] SM Jail Teams (Ratio Balance)
    Reply With Quote #9

    eladnava i have added some code to do what you want: (not tested )
    Quote:
    Originally Posted by eladnava View Post
    Warning: If terrorists start leaving the server, and the balance is cancelled, the plugin will not move any of the CTs back to the terrorist team, but I am greatly considering adding this in the next version!
    I have only added the code under OnClientDisconnect, it may need some optimizations

    If you use it, please give me some credit for it
    Attached Files
    File Type: sp Get Plugin or Get Source (sm_jailteams.sp - 1347 views - 4.7 KB)

    Last edited by klausenbusk; 02-19-2012 at 11:04.
    klausenbusk is offline
    databomb
    Veteran Member
    Join Date: Jun 2009
    Location: Los Angeles, CA
    Old 05-19-2011 , 19:06   Re: [SMJT] SM Jail Teams (Ratio Balance)
    Reply With Quote #10

    Quote:
    Originally Posted by dataviruset View Post
    What's the difference between this plugin and this one?
    This plugin uses integer division whereas my plugin uses float division. And some other stuff too, probably.
    __________________
    Public Plugins | Please: No new private requests.
    databomb 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 06:41.


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