Team Balance Immunity
Team Balance Immunity This extension allows you to use Valve's autobalance system, which is, in my opinion the best one, and give certain people immunity to it. A basic sample immunity plugin is included that gives people with the 'a' flag immunity to autobalance. The regular version will download an updated version of the gamedata if it changes. I have added versions of the extension so that you can opt-out of automatic gamedata updates if you wish. Instructions
TF2: Regular: 1.0 No Automatic Gamedata Updater (Not recommended): 1.0 CSS (Linux version does not work at the moment): Regular: 1.0 No Automatic Gamedata Updater (Not recommended): 1.0 The Linux CS:S version has a very nasty crash that I have been unable to track down. All debug and crash data I have collected has been utterly useless. I don't forsee a fix in the near future. Source code available Here The source code is the same for all versions, TF2 and CS:S. They are compiled using defines, so you need only un-comment or comment out whichever options you want in extension.cpp if you are compiling this yourself. SourcePawn Forwards: PHP Code:
PHP Code:
|
Re: [EXTENSION] TF2 Team Balance Immunity
Nice, I wish I knew how TF2's autobalancer chooses players to be balanced?
|
Re: [EXTENSION] TF2 Team Balance Immunity
It's based on how recently you joined the server and how much time has passed since the last time you were switched.
Source code needs to be cleaned up. Check line 46. :) Not being able to respawn kind of sucks- should be fixable. A forward for sourcepawn would be useful. Then you could use a plugin to check immunity. |
Re: [EXTENSION] TF2 Team Balance Immunity
I'm fairly sure it just chooses the next player to die after it decides that teams need balancing.
|
Re: [EXTENSION] TF2 Team Balance Immunity
Quote:
Code:
CBaseMultiplayerPlayer::CalculateTeamBalanceScore(void) |
Re: [EXTENSION] TF2 Team Balance Immunity
Quote:
|
Re: [EXTENSION] TF2 Team Balance Immunity
Quote:
By the way, I now have a forward for sourcepawn coded in, and the respawn bug is fixed. All I need to do is figure out why I always get "file not found" errors when trying to compile on Windows and fix them >.< |
Re: [EXTENSION] TF2 Team Balance Immunity
Updated source and binaries:
|
Re: [EXTENSION] TF2 Team Balance Immunity
Nice work on this Afronanny, glad to see there is finally a public one :D.
|
Re: [EXTENSION] TF2 Team Balance Immunity
Windows servers crash as they start :(
Quote:
|
All times are GMT -4. The time now is 10:10. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.