EvilEngine/ZLIN: Difference between revisions
Content added Content deleted
No edit summary |
No edit summary |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 12: | Line 12: | ||
==Format== |
==Format== |
||
Zip Lines are base assets, so they start with their 0x8 byte header, then are followed by: |
Zip Lines are base assets, so they start with their 0x8 byte header, then are followed by: |
||
<source lang=cpp> |
|||
class zZipLineAsset : public xBaseAsset |
|||
{ |
|||
public: |
|||
unsigned char dismount_type; |
|||
xVec3 position; |
|||
float hang_length; |
|||
union |
|||
{ |
|||
unsigned int startSplineID; |
|||
NURBS* spline; |
|||
}; |
|||
union |
|||
{ |
|||
unsigned int boundEntityID; |
|||
xEnt* boundEntity; |
|||
}; |
|||
float speed; |
|||
unsigned int flags; |
|||
}; |
|||
</source> |
|||
{| class="wikitable" |
{| class="wikitable" |
||
! Offset !! Type !! Variable !! Description |
! Offset !! Type !! Variable !! Description |
||
|- |
|- |
||
| 0x08 || |
| 0x08 || u8 || '''dismount_type''' || |
||
|- |
|- |
||
| 0x09 || |
| 0x09 || u8[3] || null || padding |
||
|- |
|||
| 0x0A || uint8 || '''padding''' || |
|||
|- |
|||
| 0x0B || uint8 || '''padding''' || |
|||
|- |
|- |
||
| 0x0C || [[Vector3]] || '''position''' || |
| 0x0C || [[Vector3]] || '''position''' || |
||
|- |
|- |
||
| 0x18 || |
| 0x18 || f32 || '''hang_length''' || |
||
|- |
|- |
||
| 0x1C || |
| 0x1C || [[AssetID]] || '''startSplineID''' || Spline_AssetID |
||
|- |
|- |
||
| 0x20 || |
| 0x20 || [[AssetID]] || '''boundEntityID''' || |
||
|- |
|- |
||
| 0x24 || |
| 0x24 || f32 || '''speed''' || |
||
|- |
|- |
||
| 0x28 || |
| 0x28 || u32 || '''flags''' || |
||
|} |
|} |
||
Latest revision as of 19:10, 23 March 2024
ZLIN | |
---|---|
Zip Line | |
Type | Base |
Base Type | 0x40 |
Games used | The Incredibles |
Format
Zip Lines are base assets, so they start with their 0x8 byte header, then are followed by:
class zZipLineAsset : public xBaseAsset
{
public:
unsigned char dismount_type;
xVec3 position;
float hang_length;
union
{
unsigned int startSplineID;
NURBS* spline;
};
union
{
unsigned int boundEntityID;
xEnt* boundEntity;
};
float speed;
unsigned int flags;
};
Offset | Type | Variable | Description |
---|---|---|---|
0x08 | u8 | dismount_type | |
0x09 | u8[3] | null | padding |
0x0C | Vector3 | position | |
0x18 | f32 | hang_length | |
0x1C | AssetID | startSplineID | Spline_AssetID |
0x20 | AssetID | boundEntityID | |
0x24 | f32 | speed | |
0x28 | u32 | flags |