AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Extensions (https://forums.alliedmods.net/forumdisplay.php?f=134)
-   -   Team Balance Immunity (https://forums.alliedmods.net/showthread.php?t=129626)

Afronanny 06-18-2010 06:32

Re: [EXTENSION] TF2 Team Balance Immunity
 
Quote:

Originally Posted by blik (Post 1212279)
Been working great since I started using it.



Would love to see an extension for this aswell!

I'll be away until the 28th. When I get back I can write a plugin to enforce the autobalance.

Afronanny 06-28-2010 16:19

Re: [EXTENSION] TF2 Team Balance Immunity
 
Quote:

Originally Posted by retsam (Post 1211639)
Cool thx. I was thinking you would have to edit the extension for that, but I guess you got it set up so you can use the forwards with the plugin. I guess I should read the OP better. I could have easily done that myself, sorry. Anyways thx.

Ill probably recode that a bit to use some bools for checking admin flag ahead of time. Also may make some globals for the cvars.


Also, minor error, you forgot to change the cvar handles in pluginstart. You have most of the class ones as soldier. :)

Oops. Fixed that =D

retsam 06-28-2010 18:19

Re: [EXTENSION] TF2 Team Balance Immunity
 
Can you add a way to track if a player is switched. This probably directly relates to enforcing of switches anyways.

I want to add a printtochat msg to those who get switched in mine.

I think you do it with this?
0000000000b884e0 T CTFPlayer::CalculateTeamBalanceScore

Afronanny 06-29-2010 23:24

Re: [EXTENSION] TF2 Team Balance Immunity
 
Quote:

Originally Posted by retsam (Post 1222973)
Can you add a way to track if a player is switched. This probably directly relates to enforcing of switches anyways.

I want to add a printtochat msg to those who get switched in mine.

I think you do it with this?
0000000000b884e0 T CTFPlayer::CalculateTeamBalanceScore

Working on a CalculateTeamBalanceScore forward now, as well as implementing AltPluzF4's method, since it seems to be more reliable (and the sig is correct)

Afronanny 07-25-2010 00:38

Re: [EXTENSION] TF2 Team Balance Immunity
 
I stopped being lazy and updated this as promised.

Changes in version 1.3:
-Added OnGetPlayer forward, seems to be more reliable than CBaseEntity::IsAlive
-Added OnCalculateTeamBalanceScore forward.
-Removed OnIsAlive forward
-Updated include data

Please note that this newer version is not backwards compatible with the old example plugin. You need to update plugins using the OnIsAlive forward to use OnGetPlayer instead. The example plugin included in TBI 1.3 has been updated.

The windows version has not been tested, and may crash.

EDIT: The windows version loads fine in my testing.

retsam 07-26-2010 16:05

Re: [EXTENSION] TF2 Team Balance Immunity
 
Fyi, small issue. The new extension wont even let the server load. : / (my windows test server)

L 07/26/2010 - 13:03:40: -------- Mapchange to achievements_heavy --------
L 07/26/2010 - 13:03:40: [AUTOIMMUNITY] Could not locate GetPlayer - Disabling d
etour
Missing shutdown function for Sys_InitAuthentication() : Sys_ShutdownAuthenticat
ion()
Missing shutdown function for S_Init() : S_Shutdown()
Missing shutdown function for Decal_Init() : Decal_Shutdown()
Missing shutdown function for InitStudioRender() : ShutdownStudioRender()
Missing shutdown function for StaticPropMgr()->Init() : StaticPropMgr()->Shutdow

DJ Tsunami 07-26-2010 16:27

Re: [EXTENSION] TF2 Team Balance Immunity
 
The gamedata file in the Windows package is still the old one. The one in the Linux package is fine.

retsam 07-26-2010 16:34

Re: [EXTENSION] TF2 Team Balance Immunity
 
Oh. Very good. :P

Afronanny 07-26-2010 17:56

Re: [EXTENSION] TF2 Team Balance Immunity
 
Quote:

Originally Posted by DJ Tsunami (Post 1252336)
The gamedata file in the Windows package is still the old one. The one in the Linux package is fine.


Oops. Fixed.

blik 07-27-2010 15:32

Re: [EXTENSION] TF2 Team Balance Immunity
 
Works well, small issue/question/feature enhancement - with the extension loaded it can take what seems to be an eternity for a team switch to take place when there are many admins on the server.

Is it possible, that when a switch is attempted, and the client is found to be an admin, that another switch is immediately attempted (and repeated until a non admin is found)?


All times are GMT -4. The time now is 00:28.

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