Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
Spectator p->ship Number in MERV

 
Post new topic   Reply to topic Printable version
 View previous topic  No Bots Can Connect To Server PLZ HELP... Post :: Post Fyi  View next topic  
Author Message
Cyan~Fire
I'll count you!
I'll count you!


Age:37
Gender:Gender:Male
Joined: Jul 14 2003
Posts: 4608
Location: A Dream
Offline

PostPosted: Thu Aug 21, 2003 6:07 pm    Post subject: Spectator p->ship Number in MERV Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Visit posters website
CypherJF
I gargle nitroglycerin


Gender:Gender:Male
Joined: Aug 14 2003
Posts: 2582
Location: USA
Offline

PostPosted: Thu Aug 21, 2003 6:35 pm    Post subject: Re: Spectator p->ship Number in MERV Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List
Mine GO BOOM
Hunch Hunch
What What
Hunch Hunch<br>What What


Age:41
Gender:Gender:Male
Joined: Aug 01 2002
Posts: 3615
Location: Las Vegas
Offline

PostPosted: Thu Aug 21, 2003 7:37 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Send email
Cyan~Fire
I'll count you!
I'll count you!


Age:37
Gender:Gender:Male
Joined: Jul 14 2003
Posts: 4608
Location: A Dream
Offline

PostPosted: Thu Aug 21, 2003 7:56 pm    Post subject: Reply to topic Reply with quote

Thanks for your help.
I just checked Catid's enum on ship types, and it's 8.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Guest



Offline

PostPosted: Thu Aug 21, 2003 9:24 pm    Post subject: Reply to topic Reply with quote

Tip : use SHIP_Warbird, SHIP_Javelin,SHIP_Spider, etc. instead of pure numbers.

-Rifle
Back to top
Cyan~Fire
I'll count you!
I'll count you!


Age:37
Gender:Gender:Male
Joined: Jul 14 2003
Posts: 4608
Location: A Dream
Offline

PostPosted: Fri Aug 22, 2003 5:00 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Visit posters website
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> Bot Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 163 page(s) served in previous 5 minutes.

phpBB Created this page in 0.426257 seconds : 30 queries executed (94.8%): GZIP compression disabled