AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   TOGs Deathmatch Team Balancer (https://forums.alliedmods.net/showthread.php?t=237542)

ThatOneGuy 03-25-2014 22:46

TOGs Deathmatch Team Balancer
 
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!

ThatOneGuy 03-26-2014 00:55

Re: TOGs Deathmatch Team Balancer v1.1
 
Updated to v1.1

ecca 03-29-2014 10:25

Re: TOGs Deathmatch Team Balancer v1.1
 
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.

ThatOneGuy 03-29-2014 23:21

Re: TOGs Deathmatch Team Balancer v1.1
 
Quote:

Originally Posted by ecca (Post 2117446)
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.

Ejziponken 03-29-2014 23:36

Re: TOGs Deathmatch Team Balancer v1.1
 
This works with FFA too?

ThatOneGuy 03-30-2014 01:48

Re: TOGs Deathmatch Team Balancer v1.1
 
Quote:

Originally Posted by Ejziponken (Post 2117723)
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.

Ejziponken 03-30-2014 04:34

Re: TOGs Deathmatch Team Balancer v1.1
 
FFA - Free for all = everybody against everybody in CS/CSGO.
Its deathmatch.

ThatOneGuy 05-30-2014 20:27

Re: TOGs Deathmatch Team Balancer v1.2
 
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).

TUSK3N1337 08-15-2014 10:35

Re: TOGs Deathmatch Team Balancer v1.2
 
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()


ThatOneGuy 08-16-2014 02:49

Re: TOGs Deathmatch Team Balancer v1.2
 
2 Attachment(s)
Quote:

Originally Posted by TUSK3N1337 (Post 2184335)
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.


All times are GMT -4. The time now is 06:59.

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