EvilEngine/DYNA/effect:spotlight: Difference between revisions

From Heavy Iron Modding
Content added Content deleted
No edit summary
No edit summary
 
(One intermediate revision by one other user 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"
{| class="wikitable"
! Offset !! Type !! Variable !! Description
! Offset !! Type !! Variable !! Description
|-
|-
| 0x00 || uint || '''flags''' ||
| 0x10 || u32 || '''flags''' ||
|-
|-
| 0x04 || uint || '''attach_to''' ||
| 0x14 || [[AssetID]] || '''attach_to''' ||
|-
|-
| 0x08 || uint || '''target''' ||
| 0x18 || [[AssetID]] || '''target''' ||
|-
|-
| 0x0C || char || '''attach_bone''' ||
| 0x1C || u8 || '''attach_bone''' ||
|-
|-
| 0x0D || char || '''target_bone''' ||
| 0x1D || u8 || '''target_bone''' ||
|-
|-
| 0x0E || char || '''padding1''' ||
| 0x1E || u8 || '''pad1''' || padding
|-
|-
| 0x0F || char || '''padding2''' ||
| 0x1F || u8 || '''pad2''' || padding
|-
|-
| 0x10 || float || '''radius''' ||
| 0x20 || f32 || '''radius''' ||
|-
|-
| 0x14 || float || '''view_angle''' ||
| 0x24 || f32 || '''view_angle''' ||
|-
|-
| 0x18 || float || '''max_dist''' ||
| 0x28 || f32 || '''max_dist''' ||
|-
|-
| 0x1C || [[Color]] || '''lightColor''' ||
| 0x2C || [[Color]] || '''lightColor''' ||
|-
|-
| 0x20 || [[Color]] || '''auraColor''' ||
| 0x30 || [[Color]] || '''auraColor''' ||
|-
|-
| 0x24 || [[AssetID]] || '''texture''' ||
| 0x34 || [[AssetID]] || '''flaretexture''' || [[RWTX]]
|-
|-
| 0x28 || [[Color]]|| '''color''' ||
| 0x38 || [[Color]]|| '''color''' ||
|-
|-
| 0x2C || float || '''size_min''' ||
| 0x3C || f32 || '''size_min''' ||
|-
|-
| 0x30 || float || '''size_max''' ||
| 0x40 || f32 || '''size_max''' ||
|-
|-
| 0x34 || char || '''glow_min''' ||
| 0x44 || u8 || '''glow_min''' ||
|-
|-
| 0x35 || char || '''glow_max''' ||
| 0x45 || u8 || '''glow_max''' ||
|-
|-
| 0x36 || char || '''pad1''' ||
| 0x46 || u8 || '''pad1''' || padding
|-
|-
| 0x37 || char || '''pad2''' ||
| 0x47 || u8 || '''pad2''' || padding
|}
|}



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