Raised This Month: $12 Target: $400
 3% 

Team Balance Immunity


Post New Thread Reply   
 
Thread Tools Display Modes
Afronanny
Veteran Member
Join Date: Aug 2009
Old 06-18-2010 , 06:32   Re: [EXTENSION] TF2 Team Balance Immunity
Reply With Quote #21

Quote:
Originally Posted by blik View Post
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 is offline
Afronanny
Veteran Member
Join Date: Aug 2009
Old 06-28-2010 , 16:19   Re: [EXTENSION] TF2 Team Balance Immunity
Reply With Quote #22

Quote:
Originally Posted by retsam View Post
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
Afronanny is offline
retsam
Veteran Member
Join Date: Aug 2008
Location: so-cal
Old 06-28-2010 , 18:19   Re: [EXTENSION] TF2 Team Balance Immunity
Reply With Quote #23

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
__________________

Last edited by retsam; 06-28-2010 at 18:22.
retsam is offline
Afronanny
Veteran Member
Join Date: Aug 2009
Old 06-29-2010 , 23:24   Re: [EXTENSION] TF2 Team Balance Immunity
Reply With Quote #24

Quote:
Originally Posted by retsam View Post
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 is offline
Afronanny
Veteran Member
Join Date: Aug 2009
Old 07-25-2010 , 00:38   Re: [EXTENSION] TF2 Team Balance Immunity
Reply With Quote #25

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.

Last edited by Afronanny; 07-25-2010 at 17:44.
Afronanny is offline
retsam
Veteran Member
Join Date: Aug 2008
Location: so-cal
Old 07-26-2010 , 16:05   Re: [EXTENSION] TF2 Team Balance Immunity
Reply With Quote #26

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
__________________

Last edited by retsam; 07-26-2010 at 16:07.
retsam is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 07-26-2010 , 16:27   Re: [EXTENSION] TF2 Team Balance Immunity
Reply With Quote #27

The gamedata file in the Windows package is still the old one. The one in the Linux package is fine.
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.
DJ Tsunami is offline
retsam
Veteran Member
Join Date: Aug 2008
Location: so-cal
Old 07-26-2010 , 16:34   Re: [EXTENSION] TF2 Team Balance Immunity
Reply With Quote #28

Oh. Very good.
__________________
retsam is offline
Afronanny
Veteran Member
Join Date: Aug 2009
Old 07-26-2010 , 17:56   Re: [EXTENSION] TF2 Team Balance Immunity
Reply With Quote #29

Quote:
Originally Posted by DJ Tsunami View Post
The gamedata file in the Windows package is still the old one. The one in the Linux package is fine.

Oops. Fixed.
Afronanny is offline
blik
Senior Member
Join Date: May 2006
Old 07-27-2010 , 15:32   Re: [EXTENSION] TF2 Team Balance Immunity
Reply With Quote #30

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)?
blik 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 20:42.


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