BF2 Status Commands
From Tactical Wiki
[edit] Player Info (pl)
If you send a "pl" command to the server (via RCON or GameSpy port), you will get the following information back for each player. The data for each player is tab-delimted (\t or \x09) and the players are carraige-return delimited (\r or \x13). All values come back as strings. Included in italics are the attributes/methods used by Python to get those values ("p" is the Player object).
- Index (integer 0-63) -- p.index
- Name -- p.getName()
- Team (1 or 2) -- p.getTeam()
- Ping -- p.getPing()
- Is Valid (0 or 1) (uncertain as to what this means) -- p.isValid()
- Is Remote (0 or 1) -- p.isRemote()
- Is AI Player (0 or 1) -- p.isAIPlayer()
- Is Alive (0 or 1) -- p.isAlive()
- Is Man Down (0 or 1) -- p.isManDown()
- Profile ID (a rather large integer) -- p.getProfileID()
- Is Flag Holder (0 or 1) -- p.isFlagHolder()
- Get Suicide (0 or 1) (uncertain) -- p.getSuicide()
- Time To Spawn (integer 0-server spawn timer) -- p.getTimeToSpawn()
- Squad ID (0 for none, 1-9 otherwise) -- p.getSquadId()
- Is Squad Leader (0 or 1) -- p.isSquadLeader()
- Is Commander (0 or 1) -- p.isCommander()
- Spawn Group (uncertain) -- p.getSpawnGroup()
- IP Address -- p.getAddress()
- Damage Assists -- p.score.damageAssists
- Passenger Assists -- p.score.passengerAssists
- Target Assists -- p.score.targetAssists
- Revives -- p.score.revives
- Team Damages -- p.score.teamDamages
- Team Vehicle Damages -- p.score.teamVehicleDamages
- Flag Captures -- p.score.cpCaptures
- Flag Defends -- p.score.cpDefends
- Flag Capture Assists -- p.score.cpAssists
- Flag Neutralizes -- p.score.cpNeutralizes
- Flag Neutralize Assists -- p.score.NeutralizeAssists
- Suicides -- p.score.suicides
- Kills -- p.score.kills
- TKs -- p.score.TKs
- Vehicle Type ('none' if no vehicle) -- p.getVehicle() (plus some translation to a specific vehicle)
- Kit ('none' if player is dead) -- p.getKit() only if p.isAlive()
- Connect Time (an interger-decimal combo of unknown origin. Example: '67802.0458245') -- p.stats.connectAt
- Deaths -- p.score.deaths
- Score -- p.score.score
- Vehicle Name -- p.getVehicle() (plus some translation to a specific vehicle)
Return to BF2 and Python.
