EvilEngine/DYNA/game object:Turret: Difference between revisions
< EvilEngine | DYNA
Content added Content deleted
(Add format) |
No edit summary |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 9: | Line 9: | ||
{{AutoDynaInfobox}} |
{{AutoDynaInfobox}} |
||
==Format== |
|||
<source lang=cpp> |
|||
class zTurretAsset : public xDynAsset |
|||
{ |
|||
public: |
|||
unsigned int baseObject; |
|||
unsigned int gunObject; |
|||
float yawRange; |
|||
float yawSpeed; |
|||
float pitchRange; |
|||
float pitchSpeed; |
|||
float recoveryTime; |
|||
float overheatFraction; |
|||
float coolingSpeed; |
|||
float overheatTime; |
|||
signed short hitPoints; |
|||
unsigned short damage; |
|||
xVec3 cameraOffset; |
|||
unsigned int finalPointer; |
|||
xColor_tag laserColor; |
|||
xVec3 offsets[2]; |
|||
float laserLength; |
|||
float laserThickness; |
|||
float laserSpeed; |
|||
union |
|||
{ |
|||
unsigned int laserSoundGroupId; |
|||
iSndGroupHandle laserSoundGroup; |
|||
}; |
|||
union |
|||
{ |
|||
unsigned int targetTextureId; |
|||
RwRaster* targetTextureRaster; |
|||
}; |
|||
float targetTextureSizeX; |
|||
float targetTextureSizeY; |
|||
}; |
|||
</source> |
|||
{| class="wikitable" |
{| class="wikitable" |
||
! Offset !! Type !! Variable !! Description |
! Offset !! Type !! Variable !! Description |
||
|- |
|- |
||
| |
| 0x10 || [[AssetID]] || '''baseObject''' || [[SIMP]] |
||
|- |
|||
| 0x04 || [[SIMP]] || '''gunObject''' || SIMP_AssetID |
|||
|- |
|- |
||
| |
| 0x14 || [[AssetID]] || '''gunObject''' || [[SIMP]] |
||
|- |
|- |
||
| |
| 0x18 || f32 || '''yawRange''' || |
||
|- |
|- |
||
| |
| 0x1C || f32 || '''yawSpeed''' || |
||
|- |
|- |
||
| |
| 0x20 || f32 || '''pitchRange''' || |
||
|- |
|- |
||
| |
| 0x24 || f32 || '''pitchSpeed''' || |
||
|- |
|- |
||
| |
| 0x28 || f32 || '''recoveryTime''' || |
||
|- |
|- |
||
| |
| 0x2C || f32 || '''overheatFraction''' || |
||
|- |
|- |
||
| |
| 0x30 || f32 || '''coolingSpeed''' || |
||
|- |
|- |
||
| |
| 0x34 || f32 || '''overheatTime''' || |
||
|- |
|- |
||
| |
| 0x38 || u16 || '''hitPoints''' || |
||
|- |
|- |
||
| |
| 0x3A || u16 || '''damage''' || |
||
|- |
|- |
||
| 0x3C || [[ |
| 0x3C || [[Vector3]] || '''cameraOffset''' || |
||
|- |
|- |
||
| |
| 0x48 || [[AssetID]] || '''finalPointer''' || DYNA Pointer |
||
|- |
|- |
||
| |
| 0x4C || [[Color]] || '''laserColor''' || |
||
|- |
|- |
||
| 0x50 || [[Vector3]] || '''offsets''' || |
| 0x50 || [[Vector3]][2] || '''offsets''' || |
||
|- |
|- |
||
| |
| 0x68 || f32 || '''laserLength''' || |
||
|- |
|- |
||
| |
| 0x6C || f32 || '''laserThickness''' || |
||
|- |
|- |
||
| |
| 0x70 || f32 || '''laserSpeed''' || |
||
|- |
|- |
||
| |
| 0x74 || [[AssetID]] || '''laserSoundGroupId''' || [[SGRP]] |
||
|- |
|- |
||
| |
| 0x78 || [[AssetID]] || '''targetTextureId''' || [[RWTX]] |
||
|- |
|- |
||
| |
| 0x7C || f32 || '''targetTextureSizeX''' || |
||
|- |
|- |
||
| |
| 0x80 || f32 || '''targetTextureSizeY''' || |
||
|} |
|} |
||
Latest revision as of 02:43, 24 March 2024
game_object:Turret | |
---|---|
Hash | 0x798A7982 |
Games used | The Incredibles |
Format
class zTurretAsset : public xDynAsset
{
public:
unsigned int baseObject;
unsigned int gunObject;
float yawRange;
float yawSpeed;
float pitchRange;
float pitchSpeed;
float recoveryTime;
float overheatFraction;
float coolingSpeed;
float overheatTime;
signed short hitPoints;
unsigned short damage;
xVec3 cameraOffset;
unsigned int finalPointer;
xColor_tag laserColor;
xVec3 offsets[2];
float laserLength;
float laserThickness;
float laserSpeed;
union
{
unsigned int laserSoundGroupId;
iSndGroupHandle laserSoundGroup;
};
union
{
unsigned int targetTextureId;
RwRaster* targetTextureRaster;
};
float targetTextureSizeX;
float targetTextureSizeY;
};
Offset | Type | Variable | Description |
---|---|---|---|
0x10 | AssetID | baseObject | SIMP |
0x14 | AssetID | gunObject | SIMP |
0x18 | f32 | yawRange | |
0x1C | f32 | yawSpeed | |
0x20 | f32 | pitchRange | |
0x24 | f32 | pitchSpeed | |
0x28 | f32 | recoveryTime | |
0x2C | f32 | overheatFraction | |
0x30 | f32 | coolingSpeed | |
0x34 | f32 | overheatTime | |
0x38 | u16 | hitPoints | |
0x3A | u16 | damage | |
0x3C | Vector3 | cameraOffset | |
0x48 | AssetID | finalPointer | DYNA Pointer |
0x4C | Color | laserColor | |
0x50 | Vector3[2] | offsets | |
0x68 | f32 | laserLength | |
0x6C | f32 | laserThickness | |
0x70 | f32 | laserSpeed | |
0x74 | AssetID | laserSoundGroupId | SGRP |
0x78 | AssetID | targetTextureId | RWTX |
0x7C | f32 | targetTextureSizeX | |
0x80 | f32 | targetTextureSizeY |