EvilEngine/DYNA/game object:flame emitter: Difference between revisions

From Heavy Iron Modding
Content added Content deleted
No edit summary
 
Line 1: Line 1:
<onlyinclude>
<onlyinclude>
{{#vardefine:name|game_object:flame_emitter}}<nowiki/>
{{#vardefine:name|game_object:flame_emitter}}<nowiki/>
{{#vardefine:version|4}}<nowiki/>
{{#vardefine:version|4-5}}<nowiki/>
{{#vardefine:hash|0xE6120704}}<nowiki/>
{{#vardefine:hash|0xE6120704}}<nowiki/>
{{#vardefine:games|TSSM Incredibles ROTU RatProto}}<nowiki/>
{{#vardefine:games|TSSM Incredibles ROTU RatProto}}<nowiki/>
Line 8: Line 8:
</onlyinclude>
</onlyinclude>
{{AutoDynaInfobox}}
{{AutoDynaInfobox}}

==Format==
===Version 4 (TSSM - The Incredibles)===
<source lang=cpp>
class asset_type : public xDynAsset
{
public:
unsigned int flags;
xVec3 loc;
xVec3 dir;
xVec3 scale;
float heat_random;
float damage;
float knockback;
};
</source>


{| class="wikitable"
{| class="wikitable"
! Offset !! Type !! Variable !! Description
! Offset !! Type !! Variable !! Description
|-
|-
| 0x00 || int || '''flags''' || 2 = Visible
| 0x10 || u32 || '''flags''' || 2 = Visible
|-
| 0x14 || [[Vector3]] || '''loc''' ||
|-
| 0x20 || [[Vector3]] || '''dir''' ||
|-
| 0x2C || [[Vector3]] || '''scale''' ||
|-
| 0x38 || f32 || '''heat_random''' ||
|-
| 0x3C || f32 || '''damage''' ||
|-
| 0x40 || f32 || '''knockback''' ||
|}

===Version 5 (ROTU - Ratatouille Prototype)===
<source lang=cpp>
struct asset_type : xDynAsset
{
unsigned int flags;
xVec3 loc;
xVec3 dir;
xVec3 scale;
float heat_random;
float damage;
float damageBoxHeightRatio;
float knockback;
unsigned int soundID;
unsigned int driverID;
};
</source>

{| class="wikitable"
! Offset !! Type !! Variable !! Description
|-
| 0x10 || u32 || '''flags''' || 2 = Visible
|-
| 0x14 || [[Vector3]] || '''loc''' ||
|-
| 0x20 || [[Vector3]] || '''dir''' ||
|-
| 0x2C || [[Vector3]] || '''scale''' ||
|-
|-
| 0x04 || [[Vector3]] || '''position''' ||
| 0x38 || f32 || '''heat_random''' ||
|-
|-
| 0x10 || [[Vector3]] || '''direction''' ||
| 0x3C || f32 || '''damage''' ||
|-
|-
| 0x1C || [[Vector3]] || '''scale''' ||
| 0x40 || f32 || '''damageBoxHeightRatio''' ||
|-
|-
| 0x28 || float || heat_random ||
| 0x44 || f32 || '''knockback''' ||
|-
|-
| 0x1C || float || damage ||
| 0x48 || [[AssetID]] || '''soundID''' ||
|-
|-
| 0x20 || float || knockback ||
| 0x4C || [[AssetID]] || '''driverID''' ||
|}
|}



Latest revision as of 15:10, 19 September 2023

game_object:flame_emitter
Version4-5
Hash0xE6120704
Games usedThe SpongeBob SquarePants Movie

The Incredibles
Rise of the Underminer

Ratatouille Prototype

Format

Version 4 (TSSM - The Incredibles)

class asset_type : public xDynAsset
{
public:
    unsigned int flags;
    xVec3 loc;
    xVec3 dir;
    xVec3 scale;
    float heat_random;
    float damage;
    float knockback;
};
Offset Type Variable Description
0x10 u32 flags 2 = Visible
0x14 Vector3 loc
0x20 Vector3 dir
0x2C Vector3 scale
0x38 f32 heat_random
0x3C f32 damage
0x40 f32 knockback

Version 5 (ROTU - Ratatouille Prototype)

struct asset_type : xDynAsset
{
    unsigned int flags;
    xVec3 loc;
    xVec3 dir;
    xVec3 scale;
    float heat_random;
    float damage;
    float damageBoxHeightRatio;
    float knockback;
    unsigned int soundID;
    unsigned int driverID;
};
Offset Type Variable Description
0x10 u32 flags 2 = Visible
0x14 Vector3 loc
0x20 Vector3 dir
0x2C Vector3 scale
0x38 f32 heat_random
0x3C f32 damage
0x40 f32 damageBoxHeightRatio
0x44 f32 knockback
0x48 AssetID soundID
0x4C AssetID driverID