Decompile anim00024c14

This commit is contained in:
Ryan Dwyer
2021-11-07 17:34:50 +10:00
parent 20a18f31c3
commit be043ad289
5 changed files with 83 additions and 179 deletions
+8
View File
@@ -216,6 +216,14 @@
#define ANIMFLAG_04 0x04
#define ANIMFLAG_08 0x08
#define ANIMHEADERFLAG_01 0x01 // len 9
#define ANIMHEADERFLAG_02 0x02 // len 9
#define ANIMHEADERFLAG_08 0x08 // len 12
#define ANIMHEADERFLAG_10 0x10 // len 0
#define ANIMHEADERFLAG_20 0x20 // len 15
#define ANIMHEADERFLAG_40 0x40 // len 5
#define ANIMHEADERFLAG_80 0x80 // len 0
#define ATTACKFLAG_AIMATBOND 0x0001 // aim/shoot at Jo
#define ATTACKFLAG_AIMFORWARD 0x0002 // aim/shoot in front of self
#define ATTACKFLAG_AIMATCHR 0x0004 // aim/shoot at chr (ID should be given in entityid)
+1 -1
View File
@@ -61,7 +61,7 @@ extern u32 var8005efec;
extern u32 var8005eff8;
extern u32 var8005f000;
extern s16 g_NumAnimations;
extern struct animheader *g_Anims;
extern struct animsummary *g_Anims;
extern u8 *var8005f010;
extern s16 *var8005f014;
extern s32 var8005f018;
+2 -2
View File
@@ -17,11 +17,11 @@ bool anim000239e0(s16 animnum, s32 frame);
u8 anim00023ab0(s16 animnum, s32 framenum);
void anim00023d0c(void);
void anim00023d38(s16 animnum);
u32 anim00023f50(void);
s32 anim00023f50(u8 *arg0, u8 arg1, s32 arg2);
u32 anim00023fe0(void);
void anim00024050(s32 arg0, s32 arg1, struct modeltype *arg2, s32 animnum, u32 arg4, struct coord *arg5, struct coord *arg6, struct coord *arg7);
u32 anim0002485c(s32 arg0, s32 arg1, struct modeltype *arg2, s16 animnum, s32 loopframe, s16 *arg5, s32 arg6);
f32 anim00024b64(u32 arg0, u32 arg1, struct modeltype *arg2, s16 animnum, u32 arg4, struct coord *coord, u32 arg6);
f32 anim00024c14(u32 arg0, s32 animnum, u8 arg2);
f32 anim00024c14(s32 arg0, s16 animnum, u8 arg2);
#endif
+3 -3
View File
@@ -6013,11 +6013,11 @@ struct modelthing {
/*0x16*/ u16 unk16;
};
struct animheader {
struct animsummary {
/*0x00*/ u16 numframes;
/*0x02*/ u16 framelen; // in bytes
/*0x02*/ u16 bytesperframe; // in bytes
/*0x04*/ u32 data;
/*0x08*/ u16 initialposbytes;
/*0x08*/ u16 headerlen;
/*0x0a*/ u8 initialposbitsperentry;
/*0x0b*/ u8 flags;
};