[bf1942] BF2 Autobalance

Brigham Stevens brs at vikingmind.com
Fri Jun 17 16:13:26 EDT 2005


My line 34 does not have that debug print statement.. But, would this
work if I added it right at the start of the function?  Like this:

def onPlayerDeath(p, vehicle):           
    if not bf2.serverSettings.getAutoBalanceTeam(): return None 

#added this here
    if p.isCommander(): return None
    if p.isSquadLeader(): return None

.... code contines


metac0m wrote:

>To prevent the commander and the squadleaders from beeing affected by
>the autobalance, add the following two lines to the file
>"admin/standard_admin/autobalance.py".
>
>find the line (34):
> if g_debug: print 'handling player death autobalance'
>
>after, add:
> if p.isCommander(): return None
> if p.isSquadLeader(): return None
>
>hopefully ea has no objections :p
>
>--metac0m
>
>
>  
>




More information about the Bf1942 mailing list