Difference between revisions of "UpdateTransformWithParentMessage"

From SWGANH Wiki
Jump to: navigation, search
 
(Struct)
Line 8: Line 8:
  
 
{| class="wikitable"
 
{| class="wikitable"
 +
|{{short}}||'''Operand_Count'''
 
|-
 
|-
|align="center" style="background:#6C86BF; color:white;"|'''SHORT'''||'''Operand_Count'''
+
|{{int}}||'''Opcode'''
 
|-
 
|-
|align="center" style="background:#3C548A; color:white;"|'''INT'''||'''Opcode'''
+
|{{long}}||'''CellID'''
 
|-
 
|-
|align="center" style="background:#3C4565; color:white;"|'''LONG'''||'''CellID'''
+
|{{long}}||'''ObjectID'''
 
|-
 
|-
|align="center" style="background:#3C4565; color:white;"|'''LONG'''||'''ObjectID'''
+
|{{short}}||'''PositionX'''
 
|-
 
|-
|align="center" style="background:#6C86BF; color:white;"|'''SHORT'''||'''PositionX'''
+
|{{short}}||'''PositionZ'''
 
|-
 
|-
|align="center" style="background:#6C86BF; color:white;"|'''SHORT'''||'''PositionZ'''
+
|{{short}}||'''PositionY'''
 
|-
 
|-
|align="center" style="background:#6C86BF; color:white;"|'''SHORT'''||'''PositionY'''
+
|{{int}}||'''UpdateCounter'''
 
|-
 
|-
|align="center" style="background:#3C548A; color:white;"|'''INT'''||'''UpdateCounter'''
+
|{{byte}}||'''<font color=red>??</font>'''
|-
+
|align="center" style="background:#B3C0DE; color:white;"|'''BYTE'''||'''<font color=red>??</font>'''
+
|-
+
|align="center" style="background:#B3C0DE; color:white;"|'''BYTE'''||'''Direction'''
+
 
|-
 
|-
 +
|{{byte}}||'''Direction'''
 
|}
 
|}
  

Revision as of 11:18, 10 April 2007


Struct


SHORT Operand_Count
INT Opcode
LONG CellID
LONG ObjectID
SHORT PositionX
SHORT PositionZ
SHORT PositionY
INT UpdateCounter
BYTE ??
BYTE Direction

Variable Descriptions


Opperand_Count = 9

Opcode = C867AB5A


  • CellID:
Cell where the object is moving.
  • ObjectID:
ObjectID that you are moving.
  • New Position of Object.
PositionX':
PositionY':
PositionZ':


The value is transformed the following way.
(Coordinate * 8) = Position
(Position / 8) = Coordinate
This is to bound the possible position movement in a cell.
  • UpdateCounter:
Number of movement updates the object has done. Incremented +1 for each new movement.


This is the direction for the object to face after moving. It is calculated by (Angle / 0.0625) where angle is in radians.

Tags


S→C This packet originates on the server.

75% This packet has been partially reversed.


Sample Code


Insert Code Snippet Here...

Sample Packet

Insert Sample Packet Here...