[bf1942] BF2 Admin API (WAS: RE: [bf1942] Re: RE: The 1.61 patch)

Cameron cameron at aberdeenlanparty.co.uk
Wed Dec 8 12:04:37 EST 2004


Yep just looks like im going to have to learn Python :)

cameron


----- Original Message -----
From: "Michael Ressen" <netadmin at michiganburbs.com>
To: <bf1942 at icculus.org>
Sent: Wednesday, December 08, 2004 3:32 PM
Subject: Re: [bf1942] BF2 Admin API (WAS: RE: [bf1942] Re: RE: The 1.61
patch)


> Does anyone else get the feeling we just caught a glimpse of the holy
grail?
>
> /BA
>
>
> Andreas Fredriksson wrote:
> > All of these can be written with the Python API. I think it's a better
> > idea to have the community implement these things.
> >
> > For instance, to add a new rcon command to kill a player you would first
> > add the function to the default rcon handler (or to your own if you
> > decide to rewrite the entire protocol). Doing the logic is then very
> > easy:
> >
> > def adminKill(player_index):
> >    player = bf2.playerManager.getPlayerByIndex(player_index)
> >    if not player or not player.isAlive(): return
> >    vehicle = player.getVehicle()
> >    vehicle.setDamage(1.0)
> >
> > // Andreas
> >
> > -----Original Message-----
> > From: Markus Thurlin [mailto:thurlin at algonet.se]
> > Sent: den 8 december 2004 15:22
> > To: bf1942 at icculus.org
> > Subject: [bf1942] Re: RE: The 1.61 patch
> >
> > While we are at it, I might aswell throw in a couple of wishes for
> > christmas
> > :)
> >
> > Santa, I would like:
> > * admincommand to kill a player
> > * admincommand to swap team for a player
> > * a logport (like HL) so we could get some real ircbots for the
> > clancommunity
> >
> > /truppo


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.802 / Virus Database: 545 - Release Date: 26/11/2004




More information about the Bf1942 mailing list