Bot Questions - Spectator p->ship Number in MERV Cyan~Fire - Thu Aug 21, 2003 6:07 pm Post subject: Spectator p->ship Number in MERV
See subject.
Probably been asked already, but couldn't find it on search.
CypherJF - Thu Aug 21, 2003 6:35 pm Post subject: Re: Spectator p->ship Number in MERV
Cyan~Fire wrote:
See subject.
Probably been asked already, but couldn't find it on search.
// useful data stored by MervBot about each player (player.h)
p->name = player name stored as char[20]
p->squad = player squad stored as char[20]
p->ship = ship (0-7) enumerated as SHIP_Warbird, SHIP_Spectator, etc..
p->safety = if ship is in safety zone (boolean)
p->bounty = player bounty
p->energy = player energy (have bot with *energy on to get accurate readings)
p->flagCount = how many flags player is holding
p->team = player frequency
p->(burst, repel, thor, brick, decoy, rocket, portal) = how many items of that type player has
p->(stealth, cloak, xradar, awarp, ufo, flash, safety, shields, supers) = if player has that item on (boolean)
p->score.killPoints = player kill points
p->score.flagPoints = player flag points
p->score.wins = player kills from f2
p->score.losses = player deaths from f2
I know I talked to ya already but here are valuable things..
- cyp
Mine GO BOOM - Thu Aug 21, 2003 7:37 pm Post subject:
As I've never used Merv, I can't tell you, but SS works like this: Spec is ship 8 in the packets, but some bots are kinder and switch it around so Spec is 0, while warbird, etc match up with their 1-8 numbers. So, its either 0 or 8.
Cyan~Fire - Thu Aug 21, 2003 7:56 pm Post subject:
Thanks for your help.
I just checked Catid's enum on ship types, and it's 8.
Anonymous - Thu Aug 21, 2003 9:24 pm Post subject:
Tip : use SHIP_Warbird, SHIP_Javelin,SHIP_Spider, etc. instead of pure numbers.
-Rifle
Cyan~Fire - Fri Aug 22, 2003 5:00 pm Post subject:
CypherJF wrote:
p->ship = ship (0-7) enumerated as SHIP_Warbird, SHIP_Spectator, etc..
And anyway, it makes more sense in my screwed up brain to use numbers.