Raised This Month: $35 Target: $400
 8% 

TOGs Deathmatch Team Balancer


Post New Thread Reply   
 
Thread Tools Display Modes
Author
ThatOneGuy
Veteran Member
Join Date: Jul 2012
Location: Oregon, USA
Plugin ID:
4143
Plugin Version:
2.0.1
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Balances Teams for Death Match Servers
    Old 03-25-2014 , 23:46   TOGs Deathmatch Team Balancer
    Reply With Quote #1

    Description

    After trying several team balancers, I found I was not happy with any of them. So, I decided to make my own.

    This is a very simple balancer. Instead of checking teams every time a player dies, it checks them on configurable intervals. If the teams are unbalanced by a configurable amount, the plugin will move the next player that dies and is not immune and that is not in cooldown (unless cooldown is disabled).

    Unlike the other plugins I tested, this one does not kill the player when moving them, so their score is unchanged (or level if it is a gungame server, etc.).

    Players can be made immune to team balance if they have the flag defined by the cvar tdmtb_immuneflag.

    For server owners who wish to make the time between checks far apart, I've also implemented an admin command to run the check.


    Download Package
    Source Code



    See Github repository for plugin details and instructions.


    If you enjoy this plugin, I'm always open to donations! Either way, enjoy!
    __________________

    Last edited by ThatOneGuy; 01-14-2018 at 22:20. Reason: Updated to 2.0.1
    ThatOneGuy is offline
    ThatOneGuy
    Veteran Member
    Join Date: Jul 2012
    Location: Oregon, USA
    Old 03-26-2014 , 01:55   Re: TOGs Deathmatch Team Balancer v1.1
    Reply With Quote #2

    Updated to v1.1
    ThatOneGuy is offline
    ecca
    Sexy Santa
    Join Date: Jan 2011
    Old 03-29-2014 , 11:25   Re: TOGs Deathmatch Team Balancer v1.1
    Reply With Quote #3

    Basically this just move players over to other team without any check that confirms they will be more balanced ? It's like mp_autoteambalance but for DM as i can see.
    __________________
    ecca is offline
    ThatOneGuy
    Veteran Member
    Join Date: Jul 2012
    Location: Oregon, USA
    Old 03-30-2014 , 00:21   Re: TOGs Deathmatch Team Balancer v1.1
    Reply With Quote #4

    Quote:
    Originally Posted by ecca View Post
    Basically this just move players over to other team without any check that confirms they will be more balanced ? It's like mp_autoteambalance but for DM as i can see.
    Kind of. It is made primarily for gungame servers, where kdr isnt as important and a good kdr doesnt imply being good at gungame. It is non-biased in that it moves the first person to die, but can exclude admins, donators, etc. I find that it fits gungame servers better than any DM team balance plugins I've found so far. I wouldnt use this on a regular DM server though...i would sooner use one of the few others out there.

    Last edited by ThatOneGuy; 03-30-2014 at 00:26. Reason: typo
    ThatOneGuy is offline
    Ejziponken
    AlliedModders Donor
    Join Date: Apr 2008
    Old 03-30-2014 , 00:36   Re: TOGs Deathmatch Team Balancer v1.1
    Reply With Quote #5

    This works with FFA too?
    Ejziponken is offline
    ThatOneGuy
    Veteran Member
    Join Date: Jul 2012
    Location: Oregon, USA
    Old 03-30-2014 , 02:48   Re: TOGs Deathmatch Team Balancer v1.1
    Reply With Quote #6

    Quote:
    Originally Posted by Ejziponken View Post
    This works with FFA too?
    I dont even know what FFA is. I made it for CSS, so I doubt it works for other games since their natives/hooks would likely be different. If you have a test server, you could try it, but yea...tis for CSS.
    ThatOneGuy is offline
    Ejziponken
    AlliedModders Donor
    Join Date: Apr 2008
    Old 03-30-2014 , 05:34   Re: TOGs Deathmatch Team Balancer v1.1
    Reply With Quote #7

    FFA - Free for all = everybody against everybody in CS/CSGO.
    Its deathmatch.
    Ejziponken is offline
    ThatOneGuy
    Veteran Member
    Join Date: Jul 2012
    Location: Oregon, USA
    Old 05-30-2014 , 21:27   Re: TOGs Deathmatch Team Balancer v1.2
    Reply With Quote #8

    Updated plugin to v1.2:
    • Fixed problem i noticed in the code that the check immunity function could take off a players immunity.
    • Fixed error that could have occured if check immunity or check balance functions were called via rcon (print to chat would cause an error, since client isnt in game).
    • Added check to see if plugin is enabled before checks on player death.
    • Added cooldown time (configurable via cvar) for players who are switched, as well as a minimum number of players (configurable via cvar) needed for the cooldowns to activate (and ability to disable cooldown time all together).
    ThatOneGuy is offline
    TUSK3N1337
    SourceMod Donor
    Join Date: Dec 2013
    Location: Sweden
    Old 08-15-2014 , 11:35   Re: TOGs Deathmatch Team Balancer v1.2
    Reply With Quote #9

    Code:
    L 08/15/2014 - 05:09:05: [SM] Native "KillTimer" reported: Invalid timer handle 66eb0824 (error 3)
    L 08/15/2014 - 05:09:05: [SM] Displaying call stack trace for plugin "togdmteambalance.smx":
    L 08/15/2014 - 05:09:05: [SM]   [0]  Line 408, C:\Users\Daniel\Downloads\CSS\Server Builds\SM\addons\sourcemod\scripting\togdmteambalance.sp::OnPluginEnd()
    __________________
    TUSK3N1337 is offline
    Send a message via Skype™ to TUSK3N1337
    ThatOneGuy
    Veteran Member
    Join Date: Jul 2012
    Location: Oregon, USA
    Old 08-16-2014 , 03:49   Re: TOGs Deathmatch Team Balancer v1.2
    Reply With Quote #10

    Quote:
    Originally Posted by TUSK3N1337 View Post
    Code:
    L 08/15/2014 - 05:09:05: [SM] Native "KillTimer" reported: Invalid timer handle 66eb0824 (error 3)
    L 08/15/2014 - 05:09:05: [SM] Displaying call stack trace for plugin "togdmteambalance.smx":
    L 08/15/2014 - 05:09:05: [SM]   [0]  Line 408, C:\Users\Daniel\Downloads\CSS\Server Builds\SM\addons\sourcemod\scripting\togdmteambalance.sp::OnPluginEnd()
    Hmmm...I coded this a while back...before I was as handy with timers XD

    You would only ever run into that error if you unloaded the plugin or the server was crashing or restarting...

    Anyways, give this a try. I removed the declared handle, since it shouldn't need one unless I need to kill the timer for some reason (which I don't - It is terminated automatically on map change and restarted next map start). Update (v1.2a) attached below.

    If you have any other questions/bugs/requests, let me know.
    Attached Files
    File Type: smx togdmteambalance.smx (12.0 KB, 49 views)
    File Type: sp Get Plugin or Get Source (togdmteambalance.sp - 56 views - 10.2 KB)

    Last edited by ThatOneGuy; 08-16-2014 at 03:50.
    ThatOneGuy 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 00:29.


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