mirror of
https://gitlab.com/ryandwyer/perfect-dark
synced 2026-06-05 03:07:25 -04:00
Decompile chrStartAnim
This commit is contained in:
@@ -121,6 +121,8 @@
|
||||
* (ie. same as 0) or -2 for the last frame.
|
||||
*
|
||||
* endframe may be 0 or higher for that frame number, or -1 for the last frame.
|
||||
*
|
||||
* flags is expected to be a CHRANIMFLAG constant.
|
||||
*/
|
||||
#define chr_do_animation(animation, startframe, endframe, flags, transition, chr, animspeed) \
|
||||
mkshort(0x000b), \
|
||||
|
||||
@@ -421,6 +421,14 @@
|
||||
#define CHR_PRESET 0xfc
|
||||
#define CHR_SELF 0xfd
|
||||
|
||||
#define CHRANIMFLAG_FLIP 0x01
|
||||
#define CHRANIMFLAG_02 0x02
|
||||
#define CHRANIMFLAG_HOLDLASTFRAME 0x04
|
||||
#define CHRANIMFLAG_08 0x08
|
||||
#define CHRANIMFLAG_10 0x10
|
||||
#define CHRANIMFLAG_40 0x40
|
||||
#define CHRANIMFLAG_80 0x80
|
||||
|
||||
// chr->flags
|
||||
#define CHRFLAG0_CANT_ALERT_GROUP 0x00000001 // Don't set group alertness when becoming aware
|
||||
#define CHRFLAG0_00000002 0x00000002 // Not used in scripts
|
||||
|
||||
@@ -45,7 +45,7 @@ void chrAttackWalkChooseAnimation(struct chrdata *chr);
|
||||
void chrAttackWalk(struct chrdata *chr, u32 speed);
|
||||
void chrAttackRollChooseAnimation(struct chrdata *chr);
|
||||
void chrAttackRoll(struct chrdata *chr, bool direction);
|
||||
void func0f030ff8(struct chrdata *chr, u32 anim_id, f32 fstartframe, f32 fendframe, u8 flags, u32 transition, f32 result);
|
||||
void chrStartAnim(struct chrdata *chr, s32 animnum, f32 startframe, f32 endframe, u8 flags, s32 arg5, f32 speed);
|
||||
void func0f031254(struct chrdata *chr);
|
||||
void func0f031384(struct chrdata *chr, struct var80065750 **arg1, bool arg2, s32 *firing, u32 entitytype, u32 entityid, u32 arg6);
|
||||
void chrAttackAmount(struct chrdata *chr, u32 entitytype, u32 entityid, u32 arg3);
|
||||
@@ -264,7 +264,7 @@ bool chrTrySurprisedOneHand(struct chrdata *chr);
|
||||
bool chrTrySurprisedSurrender(struct chrdata *chr);
|
||||
bool chrTrySurprisedLookAround(struct chrdata *chr);
|
||||
bool chrTryKneel(struct chrdata *chr);
|
||||
bool func0f03af44(struct chrdata *chr, u32 anim_id, f32 fstartframe, f32 fendframe, u8 flags, u32 transition, f32 result);
|
||||
bool chrTryStartAnim(struct chrdata *chr, s32 animfnum, f32 startframe, f32 endframe, u8 flags, s32 arg5, f32 speed);
|
||||
bool chrTryStartAlarm(struct chrdata *chr, s32 pad_id);
|
||||
s32 chrConsiderGrenadeThrow(struct chrdata *chr, u32 entitytype, u32 entityid);
|
||||
void chrTickKneel(struct chrdata *chr);
|
||||
|
||||
+2
-2
@@ -1017,7 +1017,7 @@ struct act_stand {
|
||||
|
||||
struct act_anim {
|
||||
/*0x2c*/ u32 unk02c;
|
||||
/*0x30*/ u32 unk030;
|
||||
/*0x30*/ bool holdlastframe;
|
||||
/*0x34*/ u32 unk034;
|
||||
/*0x38*/ u32 unk038;
|
||||
/*0x3c*/ u32 unk03c;
|
||||
@@ -1030,7 +1030,7 @@ struct act_anim {
|
||||
/*0x4a*/ u8 flip;
|
||||
/*0x4c*/ f32 startframe;
|
||||
/*0x50*/ f32 endframe;
|
||||
/*0x54*/ f32 unk054;
|
||||
/*0x54*/ f32 speed;
|
||||
/*0x58*/ f32 unk058;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user