Decompile modelNodeGetPosition

This commit is contained in:
Ryan Dwyer
2020-06-30 20:45:17 +10:00
parent 0c3ed7d2f8
commit d90692a047
5 changed files with 55 additions and 69 deletions
+10 -8
View File
@@ -1458,14 +1458,16 @@
#define MODEL_CETANDOORSIDE 0x01b7
#define MODEL_BUDDYBRIDGE 0x01b8
#define MODELNODETYPE_ROOT 0x01
#define MODELNODETYPE_DISPLAYLIST 0x18
#define MODELNODETYPE_NEARFAR 0x08
#define MODELNODETYPE_PARTID 0x12
#define MODELNODETYPE_HAT 0x09
#define MODELNODETYPE_0B 0x0b
#define MODELNODETYPE_GUNFIRE 0x0c
#define MODELNODETYPE_HEADSPOT 0x17
#define MODELNODETYPE_ROOT 0x01
#define MODELNODETYPE_POSITION 0x02
#define MODELNODETYPE_NEARFAR 0x08
#define MODELNODETYPE_HAT 0x09
#define MODELNODETYPE_0B 0x0b
#define MODELNODETYPE_GUNFIRE 0x0c
#define MODELNODETYPE_PARTID 0x12
#define MODELNODETYPE_POSITIONHELD 0x15
#define MODELNODETYPE_HEADSPOT 0x17
#define MODELNODETYPE_DISPLAYLIST 0x18
#define MODELPART_MUZZLEFLASHRIGHT 0x0002
#define MODELPART_MUZZLEFLASHLEFT 0x0003
+1 -1
View File
@@ -18,7 +18,7 @@ struct modelnode *modelGetPart(struct model08 *arg0, s32 partnum);
struct modelthing *func0001a9bc(void *modelfiledata, s32 arg1);
u32 func0001a9e8(void);
void *modelGetNodeData(struct model *model, struct modelnode *node);
void func0001ab0c(struct model *model, struct modelnode *node, struct coord *coord);
void modelNodeGetPosition(struct model *model, struct modelnode *node, struct coord *coord);
void func0001abc4(struct model *model, struct modelnode *node, struct coord *coord);
void func0001ad0c(struct model *model, struct coord *coord);
void func0001ad34(struct model *model, struct coord *coord);
+6 -3
View File
@@ -224,6 +224,10 @@ struct modelnode_partid { // type 0x12
u16 index;
};
struct modelnode_positionheld { // type 0x15
struct coord pos;
};
struct modelnode_headspot { // type 0x17
u16 index;
};
@@ -249,6 +253,7 @@ struct modelnode {
struct modelnode_0b *unk0b;
struct modelnode_gunfire *gunfire;
struct modelnode_partid *partid;
struct modelnode_positionheld *positionheld;
struct modelnode_headspot *headspot;
struct modelnode_displaylist *displaylist;
} data;
@@ -303,9 +308,7 @@ struct model {
struct modeldata_root { // type 0x01
u32 unk00;
f32 ground;
u32 unk08;
u32 unk0c;
u32 unk10;
struct coord pos;
f32 unk14;
};