EvilEngine/DYNA/effect:spotlight: Difference between revisions

From Heavy Iron Modding
Content added Content deleted
No edit summary
No edit summary
 
(3 intermediate revisions by 3 users not shown)
Line 9:
{{AutoDynaInfobox}}
 
==Format: The Incredibles==
 
<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
|-
| 0x000x10 || uintu32 || '''flags''' ||
|-
| 0x04 || uint || '''attach_to''' ||
|-
| 0x08 || uint || '''target''' ||
|-
| 0x0C0x14 || uchar[[AssetID]] || '''attach_boneattach_to''' ||
|-
| 0x100x18 || uchar[[AssetID]] || '''target_bonetarget''' ||
|-
| 0x140x1C || ucharu8 || '''padding1attach_bone''' ||
|-
| 0x180x1D || ucharu8 || '''padding2target_bone''' ||
|-
| 0x1C0x1E || floatu8 || '''radiuspad1''' || padding
|-
| 0x200x1F || floatu8 || '''view_anglepad2''' || padding
|-
| 0x240x20 || floatf32 || '''max_distradius''' ||
|-
| 0x280x24 || xColor_tagf32 || '''colorview_angle''' ||
|-
| 0x2C0x28 || floatf32 || '''tmax_dist''' ||
|-
| 0x300x2C || float[[Color]] || '''ulightColor''' ||
|-
| 0x340x30 || float[[Color]] || '''vauraColor''' ||
|-
| 0x380x34 || uint[[AssetID]] || '''textureflaretexture''' || [[RWTX]]
|-
| 0x3C0x38 || xColor_tag [[Color]]|| '''color''' ||
|-
| 0x400x3C || floatf32 || '''size_min''' ||
|-
| 0x440x40 || floatf32 || '''size_max''' ||
|-
| 0x480x44 || ucharu8 || '''glow_min''' ||
|-
| 0x490x45 || ucharu8 || '''glow_max''' ||
|-
| 0x4A0x46 || ucharu8 || '''pad1''' || padding
|-
| 0x4B0x47 || ucharu8 || '''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