 |
Server Help Community forums for Subgame, ASSS, and bots
|
Author |
Message |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: 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. _________________ This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him. |
|
Back to top |
|
 |
CypherJF I gargle nitroglycerin

Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: 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 |
|
Back to top |
|
 |
Mine GO BOOM Hunch Hunch What What

Age:41 Gender: Joined: Aug 01 2002 Posts: 3615 Location: Las Vegas Offline
|
Posted: 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. |
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: 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. |
|
Back to top |
|
 |
Guest
Offline
|
Posted: Thu Aug 21, 2003 9:24 pm Post subject: |
 |
|
|
|
Tip : use SHIP_Warbird, SHIP_Javelin,SHIP_Spider, etc. instead of pure numbers.
-Rifle |
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: 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. |
|
Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
Software by php BB © php BB Group Server Load: 163 page(s) served in previous 5 minutes.
|