[bf1942] BF2 Autobalance

[RNGD]Tyrant tyrant at rngd.net
Tue Jun 21 17:09:54 EDT 2005

Could the problem be that the following line was removed: 
if g_debug: print 'handling player death autobalance'

I notice in the email about this that line was in it, but the mod that added
squad members had it removed
-----Original Message-----
From: [JiF]Mike [mailto:jif at mike3d.net] 
Sent: Tuesday, June 21, 2005 6:15 AM
To: bf1942 at icculus.org
Subject: RE: [bf1942] BF2 Autobalance

I tried this out yesterday and noticed my server stared crashing randomly.
I removed it and the server has been up since.  Anyone else have this
happen? I was never around for the crashes, so I do not know if it happened
when autobalance tried to switch someone. There are also no core files, the
server just "goes away".  -Mike 

-----Original Message-----
From: Brigham Stevens [mailto:brs at vikingmind.com] 
Sent: Saturday, June 18, 2005 2:55 AM
To: bf1942 at icculus.org
Subject: Re: [bf1942] BF2 Autobalance

Yes...I'm pretty sure this worked for me tonight on my server - Nobody on my
squad ever got autoswitched. Here is the start of the onPlayerDeath handler.
p.getSquadId() returns 0 if they are not in a squad.

def onPlayerDeath(p, vehicle):           
    if not bf2.serverSettings.getAutoBalanceTeam(): return None   
    if p.isCommander(): return None
    if p.isSquadLeader(): return None
    if p.getSquadId() > 0: return None

    # dont use autobalance when its suicide/changes team

> Can this be expanded to include Squad member, swapping lone wolf 
> players only, or better yet swap unsquaded people first, and if none 
> exist, then to swap squad members.  Can be real annoying when your 
> playing in a squad and all of a sudden your on the other side.  Quite 
> disrupting.
> mentasm

More information about the Bf1942 mailing list