EvilEngine/DYNA/effect:spotlight: Difference between revisions
< EvilEngine | DYNA
Content added Content deleted
m (Seil moved page DYNA/effect:spotlight to EvilEngine/DYNA/effect:spotlight) |
No edit summary |
||
Line 8: | Line 8: | ||
</onlyinclude> |
</onlyinclude> |
||
{{AutoDynaInfobox}} |
{{AutoDynaInfobox}} |
||
==Format== |
|||
<source lang=cpp> |
|||
class zSpotlightAsset : public xDynAsset |
|||
{ |
|||
public: |
|||
unsigned int flags; |
|||
unsigned int attach_to; |
|||
unsigned int target; |
|||
unsigned char attach_bone; |
|||
unsigned char target_bone; |
|||
unsigned char pad1; |
|||
unsigned char pad2; |
|||
float radius; |
|||
float view_angle; |
|||
float max_dist; |
|||
class |
|||
{ |
|||
public: |
|||
xColor_tag color; |
|||
} light; |
|||
class |
|||
{ |
|||
public: |
|||
xColor_tag color; |
|||
} aura; |
|||
class |
|||
{ |
|||
public: |
|||
unsigned int texture; |
|||
xColor_tag color; |
|||
float size_min; |
|||
float size_max; |
|||
unsigned char glow_min; |
|||
unsigned char glow_max; |
|||
unsigned char pad1; |
|||
unsigned char pad2; |
|||
} flare; |
|||
}; |
|||
</source> |
|||
{| class="wikitable" |
{| class="wikitable" |
||
! Offset !! Type !! Variable !! Description |
! Offset !! Type !! Variable !! Description |
||
|- |
|- |
||
| |
| 0x10 || u32 || '''flags''' || |
||
|- |
|- |
||
| |
| 0x14 || [[AssetID]] || '''attach_to''' || |
||
|- |
|- |
||
| |
| 0x18 || [[AssetID]] || '''target''' || |
||
|- |
|- |
||
| |
| 0x1C || u8 || '''attach_bone''' || |
||
|- |
|- |
||
| |
| 0x1D || u8 || '''target_bone''' || |
||
|- |
|- |
||
| |
| 0x1E || u8 || '''pad1''' || padding |
||
|- |
|- |
||
| |
| 0x1F || u8 || '''pad2''' || padding |
||
|- |
|- |
||
| |
| 0x20 || f32 || '''radius''' || |
||
|- |
|- |
||
| |
| 0x24 || f32 || '''view_angle''' || |
||
|- |
|- |
||
| |
| 0x28 || f32 || '''max_dist''' || |
||
|- |
|- |
||
| |
| 0x2C || [[Color]] || '''lightColor''' || |
||
|- |
|- |
||
| |
| 0x30 || [[Color]] || '''auraColor''' || |
||
|- |
|- |
||
| |
| 0x34 || [[AssetID]] || '''flaretexture''' || [[RWTX]] |
||
|- |
|- |
||
| |
| 0x38 || [[Color]]|| '''color''' || |
||
|- |
|- |
||
| |
| 0x3C || f32 || '''size_min''' || |
||
|- |
|- |
||
| |
| 0x40 || f32 || '''size_max''' || |
||
|- |
|- |
||
| |
| 0x44 || u8 || '''glow_min''' || |
||
|- |
|- |
||
| |
| 0x45 || u8 || '''glow_max''' || |
||
|- |
|- |
||
| |
| 0x46 || u8 || '''pad1''' || padding |
||
|- |
|- |
||
| |
| 0x47 || u8 || '''pad2''' || padding |
||
|} |
|} |
||
Latest revision as of 17:10, 19 September 2023
effect:spotlight | |
---|---|
Version | 2 |
Hash | 0x6AA8BF67 |
Games used | The SpongeBob SquarePants Movie Rise of the Underminer |
Format
class zSpotlightAsset : public xDynAsset
{
public:
unsigned int flags;
unsigned int attach_to;
unsigned int target;
unsigned char attach_bone;
unsigned char target_bone;
unsigned char pad1;
unsigned char pad2;
float radius;
float view_angle;
float max_dist;
class
{
public:
xColor_tag color;
} light;
class
{
public:
xColor_tag color;
} aura;
class
{
public:
unsigned int texture;
xColor_tag color;
float size_min;
float size_max;
unsigned char glow_min;
unsigned char glow_max;
unsigned char pad1;
unsigned char pad2;
} flare;
};
Offset | Type | Variable | Description |
---|---|---|---|
0x10 | u32 | flags | |
0x14 | AssetID | attach_to | |
0x18 | AssetID | target | |
0x1C | u8 | attach_bone | |
0x1D | u8 | target_bone | |
0x1E | u8 | pad1 | padding |
0x1F | u8 | pad2 | padding |
0x20 | f32 | radius | |
0x24 | f32 | view_angle | |
0x28 | f32 | max_dist | |
0x2C | Color | lightColor | |
0x30 | Color | auraColor | |
0x34 | AssetID | flaretexture | RWTX |
0x38 | Color | color | |
0x3C | f32 | size_min | |
0x40 | f32 | size_max | |
0x44 | u8 | glow_min | |
0x45 | u8 | glow_max | |
0x46 | u8 | pad1 | padding |
0x47 | u8 | pad2 | padding |