mirror of
https://gitlab.com/ryandwyer/perfect-dark
synced 2026-09-12 20:16:02 -04:00
Decompile bodyCalculateHeadOffset
This commit is contained in:
@@ -1043,6 +1043,13 @@
|
||||
#define HATTYPE_METAL 3
|
||||
#define HATTYPE_CLOTH 5
|
||||
|
||||
#define HEADBODYTYPE_DEFAULT 0
|
||||
#define HEADBODYTYPE_FEMALE 1
|
||||
#define HEADBODYTYPE_FEMALEGUARD 2
|
||||
#define HEADBODYTYPE_MAIAN 3
|
||||
#define HEADBODYTYPE_CASS 4
|
||||
#define HEADBODYTYPE_MRBLONDE 5
|
||||
|
||||
#define HEALTHSHOWMODE_HIDDEN 0 // health bar not visible
|
||||
#define HEALTHSHOWMODE_OPENING 1 // height expanding
|
||||
#define HEALTHSHOWMODE_PREVIOUS 2 // full height, showing previous health amount
|
||||
|
||||
@@ -13,6 +13,6 @@ s32 func0f02d3f8(void);
|
||||
s32 bodyChooseHead(s32 bodynum);
|
||||
void chrUnpack(s32 stagenum, struct packedchr *packed, s32 cmdindex);
|
||||
struct prop *propAllocateEyespy(struct pad *pad, s16 room);
|
||||
void func0f02ddbc(struct modelfiledata *headfiledata, s32 headnum, s32 bodynum);
|
||||
void bodyCalculateHeadOffset(struct modelfiledata *headfiledata, s32 headnum, s32 bodynum);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -78,7 +78,7 @@ s32 func0f068760(struct defaultobj *obj);
|
||||
s32 func0f0687b8(struct defaultobj *obj);
|
||||
struct modelnode *func0f0687e4(struct model *model);
|
||||
u32 func0f0688f4(void);
|
||||
f32 *func0f06896c(void *modelfiledata);
|
||||
struct modelrodata_bbox *func0f06896c(struct modelfiledata *filedata);
|
||||
u32 func0f068998(void);
|
||||
struct model08thing *func0f068aa8(struct model *model);
|
||||
u32 func0f068ad4(void);
|
||||
|
||||
@@ -99,7 +99,7 @@ void modelInitRwData(struct model *model, struct modelnode *node);
|
||||
void modelInit(struct model *model, struct modelfiledata *filedata, union modelrwdata **rwdatas, bool resetanim);
|
||||
void animInit(struct anim *anim);
|
||||
u32 func00023108(void);
|
||||
void func0002319c(struct modelfiledata *filedata, struct modelfiledata *filedataptr, Gfx **gdlptr);
|
||||
void modelIterateDisplayLists(struct modelfiledata *filedata, struct modelnode **nodeptr, Gfx **gdlptr);
|
||||
void modelNodeReplaceGdl(u32 arg0, struct modelnode *node, Gfx *find, Gfx *replacement);
|
||||
|
||||
#endif
|
||||
|
||||
+12
-3
@@ -642,11 +642,20 @@ struct modelrodata_headspot { // type 0x17
|
||||
u16 rwdataindex;
|
||||
};
|
||||
|
||||
struct ptableentry {
|
||||
s16 unk00;
|
||||
s16 unk02;
|
||||
s16 unk04;
|
||||
s16 unk06;
|
||||
s16 unk08;
|
||||
s16 unk0a;
|
||||
};
|
||||
|
||||
struct modelrodata_dl { // type 0x18
|
||||
/*0x00*/ Gfx *primary;
|
||||
/*0x04*/ Gfx *secondary;
|
||||
/*0x08*/ u32 *colourtable;
|
||||
/*0x0c*/ struct coord *ptable;
|
||||
/*0x0c*/ struct ptableentry *ptable;
|
||||
/*0x10*/ s16 pcount;
|
||||
/*0x12*/ s16 mcount;
|
||||
/*0x14*/ u16 rwdataindex;
|
||||
@@ -760,7 +769,7 @@ struct modelrwdata_headspot { // type 0x17
|
||||
};
|
||||
|
||||
struct modelrwdata_dl { // type 0x18
|
||||
struct coord *ptable;
|
||||
struct ptableentry *ptable;
|
||||
Gfx *gdl;
|
||||
u32 *unk08;
|
||||
};
|
||||
@@ -3249,7 +3258,7 @@ struct headorbody {
|
||||
/*0x00*/ u16 ismale : 1;
|
||||
/*0x00*/ u16 unk00_01 : 1;
|
||||
/*0x00*/ u16 canvaryheight : 1;
|
||||
/*0x00*/ u16 unk00_03 : 3;
|
||||
/*0x00*/ u16 type : 3;
|
||||
/*0x00*/ u16 height : 8;
|
||||
/*0x02*/ u16 filenum;
|
||||
/*0x04*/ f32 scale;
|
||||
|
||||
Reference in New Issue
Block a user