Decompile objDrop

This commit is contained in:
Ryan Dwyer
2021-12-01 17:39:28 +10:00
parent 12225a8ad6
commit 59aa77e75a
16 changed files with 313 additions and 2054 deletions
+6 -6
View File
@@ -720,12 +720,12 @@
#define DRCAROLLIMAGE_RANDOM25 7
#define DRCAROLLIMAGE_RANDOM 8
#define DROPREASON_1 1
#define DROPREASON_2 2
#define DROPREASON_3 3
#define DROPREASON_4 4
#define DROPREASON_5 5
#define DROPREASON_6 6
#define DROPTYPE_DEFAULT 1
#define DROPTYPE_SURRENDER 2
#define DROPTYPE_THROWGRENADE 3
#define DROPTYPE_HAT 4
#define DROPTYPE_5 5
#define DROPTYPE_OWNERREAP 6
#define EXPLOSIONTYPE_0 0
#define EXPLOSIONTYPE_1 1
+1 -1
View File
@@ -29,7 +29,7 @@ bool chrTickBeams(struct prop *prop);
s32 func0f023098(struct prop *prop);
void chrDropConcealedItems(struct chrdata *chr);
void chrSetHudpieceVisible(struct chrdata *chr, bool visible);
void chrDropWeapons(struct chrdata *chr);
void chrDropItemsForOwnerReap(struct chrdata *chr);
void func0f0246e4(u8 *arg0);
bool func0f024738(struct chrdata *chr);
bool func0f024b18(struct model *model, struct modelnode *node);
+1 -1
View File
@@ -5,7 +5,7 @@
#include "types.h"
void func0f096360(Mtxf *mtx);
void func0f0964b4(f32 *arg0, Mtxf *mtx);
void func0f0964b4(struct coord *arg0, Mtxf *mtx);
void func0f0965e4(f32 *arg0, f32 *arg1, f32 arg2);
void func0f096698(Mtxf *arg0, Mtxf *arg1, s32 count);
+5 -5
View File
@@ -80,7 +80,7 @@ struct modelnode *modelFileDataFindBboxNode(struct modelfiledata *filedata);
struct modelrodata_bbox *modelFileDataFindBboxRodata(struct modelfiledata *filedata);
struct modelnode *modelFindBboxNode(struct model *model);
struct modelrodata_bbox *modelFindBboxRodata(struct model *model);
u32 func0f068ad4(void);
struct modelnode *func0f068ad4(struct defaultobj *obj);
struct modelrodata_bbox *objFindBboxRodata(struct defaultobj *obj);
u32 func0f068b14(void);
u32 func0f068c04(void);
@@ -107,7 +107,7 @@ void objEndFlight(struct defaultobj *obj);
void func0f06ac90(struct prop *prop);
void objFree(struct defaultobj *obj, bool freeprop, bool canregen);
void objFreePermanently(struct defaultobj *obj, bool freeprop);
u32 func0f06b36c(void);
f32 func0f06b36c(struct defaultobj *obj);
bool func0f06b39c(struct coord *arg0, struct coord *arg1, struct coord *arg2, f32 arg3);
u32 func0f06b488(void);
u32 func0f06b610(void);
@@ -131,7 +131,7 @@ bool propExplode(struct prop *prop, s32 explosiontype);
void ammocrateTick(struct prop *ammocrate);
void weaponTick(struct prop *weapon);
void func0f07063c(struct prop *prop, bool arg1);
void propDropRecursive(struct prop *prop, bool arg1);
void objDropRecursively(struct prop *prop, bool arg1);
void func0f0706f8(struct prop *prop, bool arg1);
void func0f07079c(struct prop *prop, bool arg1);
s32 glassCalculateOpacity(struct coord *pos, f32 xludist, f32 opadist, f32 arg3);
@@ -214,12 +214,12 @@ Gfx *objRender(struct prop *prop, Gfx *gdl, bool withalpha);
bool modelIsNodeNotTvscreen(struct modelfiledata *filedata, struct modelnode *node);
void func0f081ccc(struct chopperobj *chopper, s32 arg1);
u32 func0f0826cc(void);
void objSetDropped(struct prop *prop, u32 reason);
void objSetDropped(struct prop *prop, u32 droptype);
void func0f082a1c(struct defaultobj *obj, struct coord *coord, f32 rotate, bool arg3, bool arg4);
void piracyRestore(void);
void func0f082e84(struct defaultobj *obj, struct coord *arg1, struct coord *arg2, struct coord *arg3, bool arg4);
void objDetach(struct prop *prop);
void propDrop(struct prop *prop, bool arg1);
bool objDrop(struct prop *prop, bool lazy);
u32 func0f083db0(void);
u32 func0f0840ac(void);
void func0f0841dc(struct defaultobj *obj, struct coord *pos, s32 playernum);
+2 -2
View File
@@ -1475,7 +1475,7 @@ struct chrdata {
// So I guess it denotes a generic moving object?
struct projectile {
/*0x000*/ u32 flags;
/*0x004*/ struct coord unk004; // distance moved in last tick
/*0x004*/ struct coord speed; // distance moved in last tick
/*0x010*/ f32 unk010;
/*0x014*/ f32 unk014;
/*0x018*/ f32 unk018;
@@ -1516,7 +1516,7 @@ struct projectile {
/*0x0a4*/ s32 unk0a4;
/*0x0a8*/ u32 unk0a8;
/*0x0ac*/ u32 unk0ac;
/*0x0b0*/ s16 dropreason;
/*0x0b0*/ s16 droptype;
/*0x0b2*/ s16 unk0b2;
/*0x0b4*/ s32 unk0b4;
/*0x0b8*/ f32 unk0b8;