[bf1942] BF2 Autobalance

[JiF]Mike jif at mike3d.net
Tue Jun 21 09:14:38 EDT 2005


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