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
Player Position packet weapons question

 
Post new topic   Reply to topic Printable version
 View previous topic  twcore issues. Post :: Post need same random seed with push of a b...  View next topic  
Author Message
Ikrit
Guest


Offline

PostPosted: Sun Jun 12, 2005 1:41 am    Post subject: Player Position packet weapons question Reply to topic Reply with quote

Hey everyone, I'm attempting to write in some better weapons stuff for TWCore and when I looked at the packet def's for weapons I noticed something weird, the there are only 9 different types of weapons but it has 5bits available for it... why does it seem to have 1 more bit than necessary and does it want the to process 01000 as 8 or 10000 as 8?

Thanks,
Ikrit
Back to top
Contempt+
Server Help Squatter


Age:36
Gender:Gender:Male
Joined: May 15 2005
Posts: 682
Location: Home
Offline

PostPosted: Sun Jun 12, 2005 2:48 am    Post subject: Reply to topic Reply with quote

it should be 01000 or 1000
_________________
SSE Network Administrator
Back to top
View users profile Send private message Add User to Ignore List Visit posters website AIM Address
Ikrit
Guest


Offline

PostPosted: Sun Jun 12, 2005 3:45 am    Post subject: Reply to topic Reply with quote

Ok... so, an overall thing could be like 0000111000000000 for regular level 3 bullet? which would put it at a huge number ... right?
Back to top
Contempt+
Server Help Squatter


Age:36
Gender:Gender:Male
Joined: May 15 2005
Posts: 682
Location: Home
Offline

PostPosted: Sun Jun 12, 2005 4:32 am    Post subject: Reply to topic Reply with quote

Well, there's only 1 number there. 00001110 is 14, and 00000000 is just 0.

I'm not really sure about the level 3 bullet, hopefully either you figure it out, or someone else can help. sorry man
Back to top
View users profile Send private message Add User to Ignore List Visit posters website AIM Address
Mr Ekted
Movie Geek


Gender:Gender:Male
Joined: Feb 09 2004
Posts: 1379
Offline

PostPosted: Sun Jun 12, 2005 7:12 am    Post subject: Reply to topic Reply with quote

Weapons types go from 0 to 8 in 5 bits (00000 to 01000). JeffP likely left an extra bit for future weapon types. A weapon field in the various structures is 16 bits long:

MM SH SH SH SH SH SL SL SB WL WL WT WT WT WT WT

MM = multi-mine
SH = # shrap
SL = shrap level
SB = shrap bounce
WL = weapon level
WT = weapon type

Note that in the packet itself (and in memory under Intel), these 2 bytes are physcially reversed (Intel order).
_________________
4,691 irradiated haggis!
Back to top
View users profile Send private message Add User to Ignore List
Ikrit (I should register)
Guest


Offline

PostPosted: Sun Jun 12, 2005 2:59 pm    Post subject: Reply to topic Reply with quote

Ah, thanks Ekted the order was confusing me, I had it backwards lol.
Back to top
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: 350 page(s) served in previous 5 minutes.

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