Decompile hatCreateForChr

This commit is contained in:
Ryan Dwyer
2021-05-29 18:54:55 +10:00
parent 6dca17dc2d
commit e92be90bc2
4 changed files with 88 additions and 163 deletions
+4 -7
View File
@@ -1877,16 +1877,13 @@
label,
/**
* Makes the chr equip the given hat.
* Makes the chr equip the given model as a hat.
*
* Perfect Dark has no hats, but you can assign a weapon ID if you want the chr
* to wear a weapon like a hat.
*
* Will cause crashes if the weapon's model file lacks positional information.
* Will cause crashes if the model file lacks positional information.
*/
#define try_equip_hat(u1, flags, label) \
#define try_equip_hat(model, flags, label) \
mkshort(0x00c9), \
mkshort(u1), \
mkshort(model), \
mkword(flags), \
label,
+4 -4
View File
@@ -97,7 +97,7 @@ void func0f069c70(struct defaultobj *obj, bool arg1, bool arg2);
u32 func0f069cd8(void);
u32 func0f069d38(void);
u32 func0f06a170(void);
struct prop *func0f06a1ec(struct defaultobj *obj, struct modelfiledata *filedata, struct prop *prop, u32 arg3);
struct prop *func0f06a1ec(struct defaultobj *obj, struct modelfiledata *filedata, struct prop *prop, struct model *model);
struct prop *func0f06a52c(struct defaultobj *obj, struct modelfiledata *modelfiledata);
struct prop *func0f06a550(struct defaultobj *obj);
void func0f06a580(struct defaultobj *obj, struct coord *pos, Mtxf *matrix, s16 *rooms);
@@ -263,12 +263,12 @@ u32 func0f088840(struct prop *prop, bool showhudmsg);
u32 func0f089014(void);
bool func0f0899dc(struct prop *prop, struct coord *arg1, f32 *arg2, f32 *arg3);
void func0f089a94(bool arg0, struct model *model);
struct prop *hatApplyToChr(struct hatobj *hat, struct chrdata *chr, struct modelfiledata *filedata, struct prop *prop, u32 arg4);
struct prop *hatApplyToChr(struct hatobj *hat, struct chrdata *chr, struct modelfiledata *filedata, struct prop *prop, struct model *model);
void hatLoadAndApplyToChr(struct hatobj *hat, struct chrdata *chr);
void hatAssignToChr(struct hatobj *hat, struct chrdata *chr);
u32 chrTryEquipHat(struct chrdata *chr, u32 model, u32 flags);
struct prop *hatCreateForChr(struct chrdata *chr, s32 modelnum, u32 flags);
struct weaponobj *func0f089f8c(bool arg0, bool arg1, struct modelfiledata *filedata);
u32 func0f08a38c(void);
struct hatobj *func0f08a38c(bool arg0, bool arg1, struct modelfiledata *filedata);
struct ammocrateobj *func0f08a724(void);
u32 func0f08a88c(void);
void playerActivateRemoteMineDetonator(s32 playernum);