EvilEngine/DYNA/effect:spotlight: Difference between revisions

From Heavy Iron Modding
Content added Content deleted
(Created page with "<onlyinclude> {{#vardefine:name|effect:spotlight}}<nowiki/> {{#vardefine:version|2}}<nowiki/> {{#vardefine:hash|0x6AA8BF67}}<nowiki/> {{#vardefine:games|TSSM Incredibles ROTU}...")
 
No edit summary
 
(5 intermediate revisions by 3 users not shown)
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"
! 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
|}


{{DynaAssets}}
{{DynaAssets}}

Latest revision as of 17:10, 19 September 2023

effect:spotlight
Version2
Hash0x6AA8BF67
Games usedThe SpongeBob SquarePants Movie

The Incredibles

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