diff options
| author | petrie911 <69443847+petrie911@users.noreply.github.com> | 2024-05-02 15:46:51 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-02 17:46:51 -0300 |
| commit | c9df6fda729f76607b3c1ce45cfe82a203f16d99 (patch) | |
| tree | 636d2a2ced45cfdf9cf6cfa4be5220aa827c5e79 /include/sf64object.h | |
| parent | 926677aa6c6cfb3b633a64c772d264e1946cc79c (diff) | |
More docs (#226)
* docs
* more docs
* forgot timers
Diffstat (limited to 'include/sf64object.h')
| -rw-r--r-- | include/sf64object.h | 74 |
1 files changed, 37 insertions, 37 deletions
diff --git a/include/sf64object.h b/include/sf64object.h index 9fb29722..53ee4eec 100644 --- a/include/sf64object.h +++ b/include/sf64object.h @@ -42,7 +42,7 @@ typedef struct { typedef enum { /* 0 */ COL1_0, // OBJ_ACTOR_180 - /* 1 */ COL1_1, // OBJ_SCENERY_39 + /* 1 */ COL1_1, // OBJ_SCENERY_ME_TUNNEL /* 2 */ COL1_2, /* 3 */ COL1_3, // ACTOR_EVENT_ID /* 4 */ COL1_4, // OBJ_BOSS_308 @@ -88,29 +88,29 @@ typedef struct { /* 0x00 */ u8 status; /* 0x02 */ u16 type; /* 0x04 */ Vec3f pos; - /* 0x10 */ f32 unk_10; + /* 0x10 */ f32 yRot; /* 0x14 */ char pad14[0x14]; } RadarMark; // size = 0x28 typedef struct { /* 0x00 */ u8 mode; /* 0x02 */ u16 timer; - /* 0x04 */ Vec3f unk_04; - /* 0x10 */ Vec3f unk_10; - /* 0x1C */ f32 unk_1C; - /* 0x20 */ f32 unk_20; - /* 0x24 */ f32 unk_24; - /* 0x28 */ f32 unk_28; - /* 0x2C */ u8 unk_2C; // possibly a color struct - /* 0x2D */ u8 unk_2D; - /* 0x2E */ u8 unk_2E; - /* 0x2F */ u8 unk_2F; + /* 0x04 */ Vec3f posAA; + /* 0x10 */ Vec3f posBB; + /* 0x1C */ f32 xRot; + /* 0x20 */ f32 yRot; + /* 0x24 */ f32 zScale; + /* 0x28 */ f32 xyScale; + /* 0x2C */ u8 red; // possibly a color struct + /* 0x2D */ u8 green; + /* 0x2E */ u8 blue; + /* 0x2F */ u8 alpha; } TexturedLine; // size = 0x30 typedef struct { /* 0x00 */ u8 hits; /* 0x04 */ Vec3f pos; - /* 0x10 */ f32 unk_10; + /* 0x10 */ f32 rise; /* 0x14 */ char pad14[0x4]; /* 0x18 */ u16 timer; } BonusText; // size = 0x1C @@ -143,13 +143,13 @@ typedef struct { /* 0x00 */ u8 drawType; /* 0x08 */ ObjectFunc action; // argument must have object type. /* 0x0C */ f32* hitbox; - /* 0x10 */ f32 unk_10; // z coordinate of something - /* 0x14 */ s16 unk_14; // can be -1, 0, 1 - /* 0x16 */ s16 unk_16; // can be 0, 1, 2 + /* 0x10 */ f32 cullDistance; // z coordinate of something + /* 0x14 */ s16 unk_14; // can be -1, 0, 1. governs camera-related behavior in effects (billboarding?) + /* 0x16 */ s16 unk_16; // can be 0, 1, 2. affects death behavior? /* 0x18 */ u8 damage; - /* 0x19 */ u8 unk_19; // can be 0, 1, 2 - /* 0x1C */ f32 unk_1C; // target lock y offset. 0.0f can't be targeted - /* 0x20 */ u8 bonus; // bonus hits when killed. 0 means no + /* 0x19 */ u8 unk_19; // can be 0, 1, 2. Also camera-related? + /* 0x1C */ f32 targetOffset; // target lock y offset. 0.0f can't be targeted + /* 0x20 */ u8 bonus; // hits when killed. numbers above 1 indicate the hit+ bonus } ObjectInfo; // size = 0x24 typedef struct { @@ -202,7 +202,7 @@ typedef struct { /* 0x54 */ f32 unk_54; /* 0x58 */ f32 unk_58; /* 0x5C */ f32 sfxSource[3]; - /* 0x68 */ f32 scale; + /* 0x68 */ f32 width; } Item; // size 0x6C typedef struct { @@ -264,7 +264,7 @@ typedef struct { #define DMG_BEAM 1 #define DMG_NONE 0 #define DMG_BOMB -1 -#define DMG_UNK_100 100 +#define DMG_zRot_0FC 100 typedef struct { /* 0x000 */ Object obj; @@ -291,9 +291,9 @@ typedef struct { /* 0x0C9 */ u8 unk_0C9; /* 0x0CA */ u8 lockOnTimers[4]; /* 0x0CE */ s16 health; - /* 0x0D0 */ s8 unk_0D0; - /* 0x0D2 */ s16 unk_0D2; - /* 0x0D4 */ s16 unk_0D4; + /* 0x0D0 */ s8 dmgType; + /* 0x0D2 */ s16 dmgPart; + /* 0x0D4 */ s16 dmgSource; /* 0x0D6 */ u16 damage; /* 0x0D8 */ Vec3f hitPos; /* 0x0E4 */ s16 aiType; @@ -338,17 +338,17 @@ typedef enum ObjectId { /* 26 */ OBJ_SCENERY_26, /* 27 */ OBJ_SCENERY_27, /* 28 */ OBJ_SCENERY_28, - /* 29 */ OBJ_SCENERY_29, - /* 30 */ OBJ_SCENERY_30, - /* 31 */ OBJ_SCENERY_31, - /* 32 */ OBJ_SCENERY_32, - /* 33 */ OBJ_SCENERY_33, - /* 34 */ OBJ_SCENERY_34, - /* 35 */ OBJ_SCENERY_35, - /* 36 */ OBJ_SCENERY_36, - /* 37 */ OBJ_SCENERY_37, - /* 38 */ OBJ_SCENERY_38, - /* 39 */ OBJ_SCENERY_39, + /* 29 */ OBJ_SCENERY_TI_SKULL, + /* 30 */ OBJ_SCENERY_TI_RIB_0, + /* 31 */ OBJ_SCENERY_TI_RIB_1, + /* 32 */ OBJ_SCENERY_TI_RIB_2, + /* 33 */ OBJ_SCENERY_TI_RIB_3, + /* 34 */ OBJ_SCENERY_TI_RIB_4, + /* 35 */ OBJ_SCENERY_TI_RIB_5, + /* 36 */ OBJ_SCENERY_TI_RIB_6, + /* 37 */ OBJ_SCENERY_TI_RIB_7, + /* 38 */ OBJ_SCENERY_TI_RIB_8, + /* 39 */ OBJ_SCENERY_ME_TUNNEL, /* 40 */ OBJ_SCENERY_40, /* 41 */ OBJ_SCENERY_41, /* 42 */ OBJ_SCENERY_42, @@ -504,7 +504,7 @@ typedef enum ObjectId { /* 192 */ OBJ_ACTOR_192, /* 193 */ OBJ_ACTOR_193, /* 194 */ OBJ_ACTOR_194, - /* 195 */ OBJ_ACTOR_195, + /* 195 */ OBJ_ACTOR_CUTSCENE, /* 196 */ OBJ_ACTOR_196, /* 197 */ OBJ_ACTOR_ALLRANGE, /* 198 */ OBJ_ACTOR_TEAM_BOSS, @@ -1119,7 +1119,7 @@ typedef Actor Actor191; typedef Actor Actor192; typedef Actor Actor193; typedef Actor Actor194; -typedef Actor Actor195; +typedef Actor ActorCutscene; typedef Actor Actor196; typedef Actor ActorAllRange; typedef Actor ActorTeamBoss; |
