[bf1942] BF2 Autobalance

[JiF]Mike jif at mike3d.net
Mon Jun 20 14:48:28 EDT 2005


So does this tweak fall into the "blacklistable" tweaks?  This is a great
idea IMO.  -[JiF]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
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 2262 bytes
Desc: not available
URL: <http://icculus.org/pipermail/bf1942/attachments/20050620/54c6b608/attachment.bin>


More information about the Bf1942 mailing list