|
Amulets & Armor
v1.02
Open Source Game
|
#include <PACKET.H>
Data Fields | |
| T_byte8 command | PACK |
| T_word16 objectID | PACK |
| T_word16 objectType | PACK |
| T_byte8 initialSpeed | PACK |
| T_word16 angle | PACK |
| T_sword16 x | PACK |
| T_sword16 y | PACK |
| T_sword16 z | PACK |
| T_sword16 vz | PACK |
| T_word16 target | PACK |
| T_word16 ownerObjID | PACK |
This packet is similar to an ObjectAdd, but it is for a "projectile" – an object entering the world projected from another object. Thus, if we provide an object ID and a linear velocity, the initial X, Y, and Z are known, and XV, YV, and ZV are readily computed. Note that I only had room for an 8-bit initial speed. To get the real speed, just sign-extend it.
| T_byte8 command PACK |
| T_word16 objectID PACK |
CSC_PROJECTILE_CREATE
| T_word16 objectType PACK |
New object's ID
| T_byte8 initialSpeed PACK |
New object's type
| T_word16 angle PACK |
New object's initial speed
| T_sword16 x PACK |
New object's travel direction
| T_sword16 y PACK |
| T_sword16 z PACK |
| T_sword16 vz PACK |
| T_word16 target PACK |
| T_word16 ownerObjID PACK |
1.8.4