mirror of
https://gitlab.com/ryandwyer/perfect-dark
synced 2026-09-12 04:09:01 -04:00
Replace float with f32
This commit is contained in:
+34
-34
@@ -5,19 +5,19 @@
|
||||
|
||||
struct chrdata *chrFindById(struct chrdata *data, u32 chrnum);
|
||||
struct chrdata *chrFindByLiteralId(s32 chrnum);
|
||||
float chrGetDistanceFromTargetToPad(struct chrdata *chr, s32 pad_id);
|
||||
float chrGetDistanceToChr(struct chrdata *chr1, s32 chr2num);
|
||||
float chrGetDistanceToCoord(struct chrdata *chr, struct coord *coord);
|
||||
float chrGetDistanceToCurrentPlayer(struct chrdata *chr);
|
||||
float chrGetDistanceToPad(struct chrdata *chr, s32 pad_id);
|
||||
float chrGetDistanceToTarget(struct chrdata *chr);
|
||||
float chrGetDistanceToTarget2(struct chrdata *chr);
|
||||
float chrGetLateralDistanceToCoord(struct chrdata *chr, struct coord *coord);
|
||||
float chrGetLateralDistanceToPad(struct chrdata *chr, s32 pad_id);
|
||||
float chrGetSameFloorDistanceToPad(struct chrdata *chr, s32 pad_id);
|
||||
float chrGetSquaredDistanceToCoord(struct chrdata *chr, struct coord *coord);
|
||||
f32 chrGetDistanceFromTargetToPad(struct chrdata *chr, s32 pad_id);
|
||||
f32 chrGetDistanceToChr(struct chrdata *chr1, s32 chr2num);
|
||||
f32 chrGetDistanceToCoord(struct chrdata *chr, struct coord *coord);
|
||||
f32 chrGetDistanceToCurrentPlayer(struct chrdata *chr);
|
||||
f32 chrGetDistanceToPad(struct chrdata *chr, s32 pad_id);
|
||||
f32 chrGetDistanceToTarget(struct chrdata *chr);
|
||||
f32 chrGetDistanceToTarget2(struct chrdata *chr);
|
||||
f32 chrGetLateralDistanceToCoord(struct chrdata *chr, struct coord *coord);
|
||||
f32 chrGetLateralDistanceToPad(struct chrdata *chr, s32 pad_id);
|
||||
f32 chrGetSameFloorDistanceToPad(struct chrdata *chr, s32 pad_id);
|
||||
f32 chrGetSquaredDistanceToCoord(struct chrdata *chr, struct coord *coord);
|
||||
struct position *chrGetTargetPosition(struct chrdata *chr);
|
||||
float chrGetTimer(struct chrdata *chr);
|
||||
f32 chrGetTimer(struct chrdata *chr);
|
||||
bool chrHasFlag(struct chrdata *chr, u32 flag, u8 bank);
|
||||
bool chrHasFlagById(struct chrdata *ref, u32 chrnum, u32 flag, u32 bank);
|
||||
bool chrHasHiddenFlag00000002(struct chrdata *chr);
|
||||
@@ -33,7 +33,7 @@ void chrSetStageFlag(struct chrdata *chr, u32 flag);
|
||||
void chrUnsetFlags(struct chrdata *chr, u32 flags, u8 bank);
|
||||
void chrUnsetFlagsById(struct chrdata *ref, u32 chrnum, u32 flags, u32 bank);
|
||||
void chrUnsetStageFlag(struct chrdata *chr, u32 flag);
|
||||
float coordGetSquaredDistanceToCoord(struct coord *a, struct coord *b);
|
||||
f32 coordGetSquaredDistanceToCoord(struct coord *a, struct coord *b);
|
||||
void decrementByte(u8 *dst, u8 amount);
|
||||
u32 func0f01e050(void);
|
||||
u32 func0f01e250(void);
|
||||
@@ -42,7 +42,7 @@ u32 func0f01e5d8(void);
|
||||
u32 func0f01e6a4(void);
|
||||
u32 func0f01e7bc(void);
|
||||
u32 func0f01e7f4(void);
|
||||
u32 func0f01f264(struct chrdata *chr, struct coord *coord, s16 *room, float arg3, s32 arg4);
|
||||
u32 func0f01f264(struct chrdata *chr, struct coord *coord, s16 *room, f32 arg3, s32 arg4);
|
||||
u32 func0f020538(void);
|
||||
u32 func0f020598(void);
|
||||
u32 func0f0205a4(void);
|
||||
@@ -134,11 +134,11 @@ u32 func0f02e3dc(void);
|
||||
u32 func0f02e4f8(void);
|
||||
u32 func0f02e550(void);
|
||||
u32 func0f02e684(void);
|
||||
void func0f02e6dc(struct chrdata *chr, float arg1);
|
||||
void func0f02e9a0(struct chrdata *chr, float arg1);
|
||||
void func0f02e6dc(struct chrdata *chr, f32 arg1);
|
||||
void func0f02e9a0(struct chrdata *chr, f32 arg1);
|
||||
void func0f02eabc(struct chrdata *chr);
|
||||
u32 func0f02ec94(struct chrdata *chr);
|
||||
void func0f02ed28(struct chrdata *chr, float arg1);
|
||||
void func0f02ed28(struct chrdata *chr, f32 arg1);
|
||||
void chrStop(struct chrdata *chr);
|
||||
void func0f02ed88(struct chrdata *chr);
|
||||
void chrKneel(struct chrdata *chr);
|
||||
@@ -165,7 +165,7 @@ u32 func0f030584(void);
|
||||
u32 chrAttackWalk(void);
|
||||
u32 func0f030a40(void);
|
||||
u32 chrAttackRoll(void);
|
||||
void func0f030ff8(struct chrdata *chr, u32 anim_id, float fstartframe, float fendframe, u8 flags, u32 transition, float result);
|
||||
void func0f030ff8(struct chrdata *chr, u32 anim_id, f32 fstartframe, f32 fendframe, u8 flags, u32 transition, f32 result);
|
||||
void func0f03119c(struct chrdata *chr);
|
||||
u32 func0f031254(void);
|
||||
u32 func0f031384(void);
|
||||
@@ -178,7 +178,7 @@ u32 func0f033654(void);
|
||||
u32 func0f0336a8(void);
|
||||
u32 func0f033728(void);
|
||||
u32 func0f0338e0(void);
|
||||
float chrGetShield(struct chrdata *chr);
|
||||
f32 chrGetShield(struct chrdata *chr);
|
||||
u32 func0f033fa8(void);
|
||||
u32 func0f034080(void);
|
||||
u32 func0f034124(void);
|
||||
@@ -261,7 +261,7 @@ bool func0f03adf4(struct chrdata *chr);
|
||||
bool func0f03ae48(struct chrdata *chr);
|
||||
bool func0f03ae9c(struct chrdata *chr);
|
||||
bool chrTryKneel(struct chrdata *chr);
|
||||
bool func0f03af44(struct chrdata *chr, u32 anim_id, float fstartframe, float fendframe, u8 flags, u32 transition, float result);
|
||||
bool func0f03af44(struct chrdata *chr, u32 anim_id, f32 fstartframe, f32 fendframe, u8 flags, u32 transition, f32 result);
|
||||
u32 func0f03afac(struct chrdata *chr);
|
||||
u32 func0f03b1e0(struct chrdata *chr);
|
||||
bool func0f03b5f0(struct chrdata *chr, s32 pad_id);
|
||||
@@ -290,10 +290,10 @@ void func0f03e094(struct chrdata *chr);
|
||||
u32 func0f03e0e4(void);
|
||||
u32 func0f03e1a8(void);
|
||||
u32 func0f03e29c(void);
|
||||
float func0f03e45c(struct chrdata *chr);
|
||||
void func0f03e538(struct chrdata *chr, float arg1);
|
||||
float func0f03e578(struct chrdata *chr);
|
||||
void func0f03e5b0(struct chrdata *chr, float arg1);
|
||||
f32 func0f03e45c(struct chrdata *chr);
|
||||
void func0f03e538(struct chrdata *chr, f32 arg1);
|
||||
f32 func0f03e578(struct chrdata *chr);
|
||||
void func0f03e5b0(struct chrdata *chr, f32 arg1);
|
||||
u32 func0f03e5f0(void);
|
||||
u32 func0f03e754(void);
|
||||
u32 func0f03e788(void);
|
||||
@@ -316,7 +316,7 @@ u32 func0f041e48(void);
|
||||
u32 func0f04262c(void);
|
||||
u32 func0f04279c(void);
|
||||
void func0f042808(struct chrdata *chr);
|
||||
void func0f0429d8(struct chrdata *chr, float arg1, float arg2);
|
||||
void func0f0429d8(struct chrdata *chr, f32 arg1, f32 arg2);
|
||||
u32 func0f042a40(void);
|
||||
u32 func0f042ffc(void);
|
||||
u32 func0f0433e0(void);
|
||||
@@ -351,8 +351,8 @@ u32 func0f0482cc(void);
|
||||
u32 func0f048398(void);
|
||||
bool chrSawTargetRecently(struct chrdata *chr);
|
||||
bool chrHeardTargetRecently(struct chrdata *chr);
|
||||
float func0f048a84(struct chrdata *chr, struct coord *coord);
|
||||
float chrGetAngleToTarget(struct chrdata *chr);
|
||||
f32 func0f048a84(struct chrdata *chr, struct coord *coord);
|
||||
f32 chrGetAngleToTarget(struct chrdata *chr);
|
||||
u32 func0f048b78(void);
|
||||
u32 func0f048cc0(void);
|
||||
u32 func0f048dcc(void);
|
||||
@@ -374,17 +374,17 @@ u32 func0f04a2d4(void);
|
||||
u32 func0f04a37c(void);
|
||||
u32 func0f04a4ec(struct chrdata *chr, s32 arg1);
|
||||
u32 func0f04a674(struct chrdata *chr, s32 arg1);
|
||||
bool func0f04a76c(struct chrdata *chr, float distance);
|
||||
bool func0f04a79c(u8 chrnum, struct chrdata *chr, float distance);
|
||||
bool func0f04a7dc(u8 arg0, struct chrdata *chr, float distance, s32 arg3);
|
||||
bool func0f04a848(u8 chrnum, struct chrdata *chr, float distance, struct coord *coord, s16 *room);
|
||||
bool func0f04a76c(struct chrdata *chr, f32 distance);
|
||||
bool func0f04a79c(u8 chrnum, struct chrdata *chr, f32 distance);
|
||||
bool func0f04a7dc(u8 arg0, struct chrdata *chr, f32 distance, s32 arg3);
|
||||
bool func0f04a848(u8 chrnum, struct chrdata *chr, f32 distance, struct coord *coord, s16 *room);
|
||||
bool chrCompareTeams(struct chrdata *chr1, struct chrdata *chr2, u8 checktype);
|
||||
void chrSetChrPresetByChrnum(struct chrdata *chr, s32 chrnum, s32 chrpreset);
|
||||
void chrSetPadPresetByChrnum(struct chrdata *chr, s32 chrnum, s32 pad_id);
|
||||
u32 func0f04ad08(struct chrdata *chr);
|
||||
u32 func0f04aeb0(void);
|
||||
u32 func0f04af84(void);
|
||||
bool chrSpawnAtCoord(s32 body, s32 head, struct coord *coord, s16 *room, float arg4, u8 *ailist, u32 flags);
|
||||
bool chrSpawnAtCoord(s32 body, s32 head, struct coord *coord, s16 *room, f32 arg4, u8 *ailist, u32 flags);
|
||||
bool chrSpawnAtPad(struct chrdata *chr, s32 body, s32 head, s32 pad, u8 *ailist, u32 flags);
|
||||
bool chrSpawnAtChr(struct chrdata *basechr, s32 body, s32 head, u32 chrnum, u8 *ailist, u32 flags);
|
||||
u32 func0f04b658(struct chrdata *chr);
|
||||
@@ -415,9 +415,9 @@ u32 func0f04e418(void);
|
||||
u32 getNumChrs(void);
|
||||
void incrementByte(u8 *dst, u8 amount);
|
||||
s32 chrResolvePadId(struct chrdata *chr, s32 pad_id);
|
||||
float positionGetDistanceToPosition(struct position *a, struct position *b);
|
||||
f32 positionGetDistanceToPosition(struct position *a, struct position *b);
|
||||
u32 positionGetIndexByChrId(struct chrdata *chr, s32 chrnum);
|
||||
float positionGetLateralDistanceToPosition(struct position *a, struct position *b);
|
||||
f32 positionGetLateralDistanceToPosition(struct position *a, struct position *b);
|
||||
void func0f01e760(void);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -46,7 +46,7 @@ u32 func0f004604(void);
|
||||
u32 func0f004c6c(void);
|
||||
u32 func0f00505c(void);
|
||||
u32 func0f0053d0(void);
|
||||
void func0f0056f4(s32 room1, struct coord *coord1, s32 room2, struct coord *coord2, s32 arg4, float *arg5, s32 arg6);
|
||||
void func0f0056f4(s32 room1, struct coord *coord1, s32 room2, struct coord *coord2, s32 arg4, f32 *arg5, s32 arg6);
|
||||
u32 func0f005bb0(void);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -7,11 +7,11 @@ void alarmActivate(void);
|
||||
void alarmDeactivate(void);
|
||||
bool alarmIsActive(void);
|
||||
bool audioPlayFromWorldPosition(s8 channel_id, s16 audio_id, s32 volumemaybe, struct position *pos, s32 arg4, s32 arg5);
|
||||
float countdownTimerGetValue(void);
|
||||
f32 countdownTimerGetValue(void);
|
||||
bool countdownTimerIsHidden(void);
|
||||
bool countdownTimerIsRunning(void);
|
||||
void countdownTimerSetRunning(bool running);
|
||||
void countdownTimerSetValue(float frames);
|
||||
void countdownTimerSetValue(f32 frames);
|
||||
void countdownTimerSetVisible(u32 flag, bool show);
|
||||
void countdownTimerTick(void);
|
||||
u32 func0f066310(struct position *pos, u32 arg1);
|
||||
@@ -169,7 +169,7 @@ u32 func0f07b038(struct heliobj *heli);
|
||||
void func0f07b078(struct heliobj *heli);
|
||||
bool heliSetField90(struct defaultobj *obj, u32 value);
|
||||
u32 func0f07b0f4(struct heliobj *heli);
|
||||
float heliGetTimer(struct heliobj *heli);
|
||||
f32 heliGetTimer(struct heliobj *heli);
|
||||
u32 func0f07b158(void);
|
||||
u32 func0f07b164(void);
|
||||
u32 func0f07b290(struct heliobj *heli, u32 arg1);
|
||||
@@ -221,7 +221,7 @@ u32 func0f085050(void);
|
||||
u32 func0f085194(void);
|
||||
u32 func0f0851ec(void);
|
||||
u32 func0f085270(void);
|
||||
void func0f0852ac(struct defaultobj *obj, float damage, struct coord *coord, s32 arg3, s32 arg4);
|
||||
void func0f0852ac(struct defaultobj *obj, f32 damage, struct coord *coord, s32 arg3, s32 arg4);
|
||||
u32 func0f0859a0(void);
|
||||
u32 func0f085e00(void);
|
||||
u32 func0f085eac(void);
|
||||
@@ -352,7 +352,7 @@ u32 func0f092420(void);
|
||||
u32 func0f092484(void);
|
||||
u32 func0f092610(void);
|
||||
u32 func0f0926bc(struct position *pos, u32 arg1, u32 arg2);
|
||||
s32 func0f0927d4(float arg0, float arg1, float arg2, float arg3, s16 arg4);
|
||||
s32 func0f0927d4(f32 arg0, f32 arg1, f32 arg2, f32 arg3, s16 arg4);
|
||||
s32 func0f092914(s32 arg0);
|
||||
u32 func0f09294c(void);
|
||||
u32 func0f092a98(void);
|
||||
@@ -363,7 +363,7 @@ u32 func0f093508(void);
|
||||
u32 func0f093630(void);
|
||||
u32 func0f093790(void);
|
||||
u32 func0f0938ec(void);
|
||||
void func0f0939f8(s32 arg0, struct position *pos, s32 arg2, s32 arg3, s32 arg4, s32 arg5, s32 arg6, s32 arg7, s32 arg8, float arg9, s32 arg10, s32 arg11, float arg12, float arg13, float arg14);
|
||||
void func0f0939f8(s32 arg0, struct position *pos, s32 arg2, s32 arg3, s32 arg4, s32 arg5, s32 arg6, s32 arg7, s32 arg8, f32 arg9, s32 arg10, s32 arg11, f32 arg12, f32 arg13, f32 arg14);
|
||||
void func0f0942d0(s32 channel);
|
||||
u32 func0f0943bc(s32 channel);
|
||||
bool audioPlayFromWorldPosition2(s8 channel_id, s32 audio_id, s32 volumemaybe, struct position *pos, u32 arg4, s32 arg5, s32 arg6, s32 arg7);
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#include <ultra64.h>
|
||||
#include "types.h"
|
||||
|
||||
float func0f096750(float x, float z);
|
||||
f32 func0f096750(f32 x, f32 z);
|
||||
u32 func0f096890(void);
|
||||
u32 func0f096910(void);
|
||||
u32 func0f096964(void);
|
||||
|
||||
@@ -105,12 +105,12 @@ u32 func0f0baf38(void);
|
||||
u32 func0f0baf84(void);
|
||||
u32 func0f0bb04c(void);
|
||||
u32 func0f0bb2e8(void);
|
||||
void func0f0bb320(s32 arg0, s32 arg1, s32 arg2, float arg3);
|
||||
void func0f0bb350(float arg0, s32 arg1, s32 arg2, s32 arg3, float arg4);
|
||||
void func0f0bb3c8(float arg0, float arg1);
|
||||
void func0f0bb320(s32 arg0, s32 arg1, s32 arg2, f32 arg3);
|
||||
void func0f0bb350(f32 arg0, s32 arg1, s32 arg2, s32 arg3, f32 arg4);
|
||||
void func0f0bb3c8(f32 arg0, f32 arg1);
|
||||
bool func0f0bb3fc(void);
|
||||
u32 func0f0bb42c(void);
|
||||
void func0f0bb57c(float arg0, float arg1);
|
||||
void func0f0bb57c(f32 arg0, f32 arg1);
|
||||
u32 func0f0bb5ec(void);
|
||||
u32 func0f0bb69c(void);
|
||||
u32 func0f0bb814(void);
|
||||
|
||||
@@ -12,7 +12,7 @@ u32 func0f16598c(void);
|
||||
u32 func0f165c4c(void);
|
||||
u32 func0f165ee4(void);
|
||||
u32 func0f165eec(void);
|
||||
void func0f1660a4(float arg0);
|
||||
void func0f1660a4(f32 arg0);
|
||||
u32 func0f1664a0(void);
|
||||
u32 func0f1666c8(void);
|
||||
u32 func0f1666f8(void);
|
||||
|
||||
@@ -66,7 +66,7 @@ u32 func0f16cda8(void);
|
||||
u32 func0f16cdc8(void);
|
||||
u32 func0f16cdd4(void);
|
||||
u32 func0f16cde0(void);
|
||||
float func0f16cdec(void);
|
||||
f32 func0f16cdec(void);
|
||||
u32 func0f16cdf8(void);
|
||||
u32 func0f16ce10(void);
|
||||
u32 func0f16ce3c(void);
|
||||
|
||||
@@ -36,7 +36,7 @@ struct g_vars {
|
||||
/*000040*/ u32 unk000040;
|
||||
/*000044*/ u32 unk000044;
|
||||
/*000048*/ u32 unk000048;
|
||||
/*00004c*/ float countdowntimerstep; // probably a generic lastframems field
|
||||
/*00004c*/ f32 countdowntimerstep; // probably a generic lastframems field
|
||||
/*000050*/ u32 unk000050;
|
||||
/*000054*/ u32 unk000054;
|
||||
/*000058*/ u32 unk000058;
|
||||
|
||||
@@ -3,6 +3,6 @@
|
||||
#include <ultra64.h>
|
||||
#include "types.h"
|
||||
|
||||
float scaleTo1(float *x, float *y, float *z);
|
||||
f32 scaleTo1(f32 *x, f32 *y, f32 *z);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -33,7 +33,7 @@ u32 func00010360(void);
|
||||
u32 func0001036c(void);
|
||||
u32 func000104a0(void);
|
||||
u32 func00010718(void);
|
||||
s32 func00010904(s32 arg0, s32 arg1, s32 arg2, s32 arg3, s32 arg4, float arg5, s32 arg6, s32 arg7);
|
||||
s32 func00010904(s32 arg0, s32 arg1, s32 arg2, s32 arg3, s32 arg4, f32 arg5, s32 arg6, s32 arg7);
|
||||
u32 func00010ae4(void);
|
||||
void func00010db0(s32 room_id);
|
||||
void func00010de0(s32 room_id);
|
||||
|
||||
@@ -23,13 +23,13 @@ u32 func0001abc4(void);
|
||||
u32 func0001ad0c(void);
|
||||
u32 func0001ad34(void);
|
||||
u32 func0001ad5c(void);
|
||||
float func0001ae44(struct chr020 *chr020);
|
||||
void func0001ae90(struct chr020 *chr020, float arg1);
|
||||
f32 func0001ae44(struct chr020 *chr020);
|
||||
void func0001ae90(struct chr020 *chr020, f32 arg1);
|
||||
u32 func0001af58(void);
|
||||
u32 func0001af64(void);
|
||||
u32 func0001af80(void);
|
||||
u32 func0001af98(void);
|
||||
float func0001afe8(float arg0, float distance, float arg2);
|
||||
f32 func0001afe8(f32 arg0, f32 distance, f32 arg2);
|
||||
u32 func0001b07c(void);
|
||||
u32 func0001b0e8(void);
|
||||
u32 func0001b3bc(void);
|
||||
@@ -52,8 +52,8 @@ u32 func0001ce64(void);
|
||||
u32 func0001cebc(void);
|
||||
u32 func0001d13c(struct chr020 *chr020);
|
||||
u32 func0001d15c(void);
|
||||
float func0001d17c(struct chr020 *chr020);
|
||||
float func0001d1a0(struct chr020 *chr020);
|
||||
f32 func0001d17c(struct chr020 *chr020);
|
||||
f32 func0001d1a0(struct chr020 *chr020);
|
||||
u32 func0001d218(void);
|
||||
u32 func0001d260(void);
|
||||
u32 func0001d288(void);
|
||||
|
||||
@@ -21,7 +21,7 @@ u32 func00033c30(void);
|
||||
u32 func00033cf0(void);
|
||||
u32 func00033db0(void);
|
||||
u32 func00033dd8(void);
|
||||
void func00033e50(s32 arg0, s32 arg1, float arg2);
|
||||
void func00033e50(s32 arg0, s32 arg1, f32 arg2);
|
||||
u32 func00033ec4(void);
|
||||
u32 func00033f08(void);
|
||||
u32 func00033f24(void);
|
||||
|
||||
@@ -5,6 +5,6 @@
|
||||
|
||||
u32 func0004a360(void);
|
||||
u32 func0004a460(void);
|
||||
float sqrtf(float value);
|
||||
f32 sqrtf(f32 value);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -4,6 +4,6 @@
|
||||
#include "types.h"
|
||||
|
||||
u32 func00050090(void);
|
||||
void func000500e4(u32 *ptr, float arg1, float arg2, float arg3);
|
||||
void func000500e4(u32 *ptr, f32 arg1, f32 arg2, f32 arg3);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -24,7 +24,7 @@ extern u32 var80067b30;
|
||||
extern u32 var80067b78;
|
||||
extern u32 g_CountdownTimerVisible;
|
||||
extern bool g_CountdownTimerRunning;
|
||||
extern float g_CountdownTimerValue;
|
||||
extern f32 g_CountdownTimerValue;
|
||||
extern u32 g_StageFlags;
|
||||
|
||||
extern struct audiodefinition audiodefinitions[];
|
||||
|
||||
@@ -25,7 +25,7 @@ extern struct menu_dialog menudialog_mpquickteam;
|
||||
extern s32 g_Difficulty;
|
||||
|
||||
extern s16 g_FadeNumFrames;
|
||||
extern float fade80084058;
|
||||
extern f32 fade80084058;
|
||||
extern u32 g_FadePrevColor;
|
||||
extern u32 g_FadeColor;
|
||||
extern u16 fade80084064;
|
||||
@@ -54,7 +54,7 @@ extern struct stagethinglist stagethinglist_22f1c;
|
||||
extern struct bodytableentry bodytable[];
|
||||
extern u32 var8007dae4;
|
||||
extern u32 var8007db80;
|
||||
extern float var8007db84;
|
||||
extern f32 var8007db84;
|
||||
extern u32 var8007db88;
|
||||
extern u32 var8007db94;
|
||||
extern u32 var8007dba0;
|
||||
|
||||
+73
-73
@@ -6,9 +6,9 @@
|
||||
#define bool u32
|
||||
|
||||
struct coord {
|
||||
float x;
|
||||
float y;
|
||||
float z;
|
||||
f32 x;
|
||||
f32 y;
|
||||
f32 z;
|
||||
};
|
||||
|
||||
struct weaponobj;
|
||||
@@ -77,12 +77,12 @@ struct pad {
|
||||
/*0x0c*/ struct coord look;
|
||||
/*0x18*/ struct coord up;
|
||||
/*0x24*/ struct coord normal;
|
||||
/*0x30*/ float xmin;
|
||||
/*0x34*/ float xmax;
|
||||
/*0x38*/ float ymin;
|
||||
/*0x3c*/ float ymax;
|
||||
/*0x40*/ float zmin;
|
||||
/*0x44*/ float zmax;
|
||||
/*0x30*/ f32 xmin;
|
||||
/*0x34*/ f32 xmax;
|
||||
/*0x38*/ f32 ymin;
|
||||
/*0x3c*/ f32 ymax;
|
||||
/*0x40*/ f32 zmin;
|
||||
/*0x44*/ f32 zmax;
|
||||
/*0x48*/ s32 room;
|
||||
/*0x4c*/ s16 unk4c;
|
||||
/*0x4e*/ s16 unk4e;
|
||||
@@ -120,7 +120,7 @@ struct chr020_20 {
|
||||
/*0x68*/ u32 unk68;
|
||||
/*0x6c*/ u32 unk6c;
|
||||
/*0x70*/ u32 unk70;
|
||||
/*0x74*/ float unk74;
|
||||
/*0x74*/ f32 unk74;
|
||||
};
|
||||
|
||||
struct chr020 {
|
||||
@@ -191,10 +191,10 @@ struct chr2d4 {
|
||||
/*0x9c*/ u8 unk9c_06 : 1;
|
||||
/*0x9c*/ u8 unk9c_07 : 1;
|
||||
/*0xa0*/ u32 unka0;
|
||||
/*0xa4*/ float unka4;
|
||||
/*0xa4*/ f32 unka4;
|
||||
/*0xa8*/ u32 unka8;
|
||||
/*0xac*/ u32 unkac;
|
||||
/*0xb0*/ float unkb0;
|
||||
/*0xb0*/ f32 unkb0;
|
||||
};
|
||||
|
||||
struct act_stand {
|
||||
@@ -205,15 +205,15 @@ struct act_stand {
|
||||
/*0x3c*/ u32 unk03c;
|
||||
/*0x40*/ u32 unk040;
|
||||
/*0x44*/ u32 unk044;
|
||||
/*0x48*/ float unk048;
|
||||
/*0x48*/ f32 unk048;
|
||||
/*0x4c*/ s8 unk04c;
|
||||
};
|
||||
|
||||
struct act_die {
|
||||
/*0x2c*/ u32 unk02c;
|
||||
/*0x30*/ float unk030;
|
||||
/*0x34*/ float unk034;
|
||||
/*0x38*/ float unk038;
|
||||
/*0x30*/ f32 unk030;
|
||||
/*0x34*/ f32 unk034;
|
||||
/*0x38*/ f32 unk038;
|
||||
};
|
||||
|
||||
struct act_dead {
|
||||
@@ -320,23 +320,23 @@ struct chrdata {
|
||||
/*0x0ac*/ u32 unk0ac;
|
||||
/*0x0b0*/ u32 sumground;
|
||||
/*0x0b4*/ u32 manground;
|
||||
/*0x0b8*/ float ground;
|
||||
/*0x0b8*/ f32 ground;
|
||||
/*0x0bc*/ struct coord fallspeed;
|
||||
/*0x0c8*/ struct coord prevpos;
|
||||
/*0x0d4*/ u32 lastwalk60;
|
||||
/*0x0d8*/ u32 lastmoveok60;
|
||||
/*0x0dc*/ float visionrange;
|
||||
/*0x0dc*/ f32 visionrange;
|
||||
/*0x0e0*/ s32 lastseetarget60;
|
||||
/*0x0e4*/ u32 lastvisibletarg;
|
||||
/*0x0e8*/ void *unk0e8;
|
||||
/*0x0ec*/ u16 lastshooter;
|
||||
/*0x0ee*/ u16 timeshooter;
|
||||
/*0x0f0*/ float hearingscale;
|
||||
/*0x0f0*/ f32 hearingscale;
|
||||
/*0x0f4*/ s32 lastheartarget60;
|
||||
/*0x0f8*/ u32 shadecol;
|
||||
/*0x0fc*/ u32 nextcol;
|
||||
/*0x100*/ float damage;
|
||||
/*0x104*/ float maxdamage;
|
||||
/*0x100*/ f32 damage;
|
||||
/*0x104*/ f32 maxdamage;
|
||||
/*0x108*/ u8 *ailist;
|
||||
/*0x10c*/ u16 aioffset;
|
||||
/*0x10e*/ s16 aireturnlist;
|
||||
@@ -367,15 +367,15 @@ struct chrdata {
|
||||
/*0x154*/ u32 aimuprshoulder;
|
||||
/*0x158*/ u32 aimupback;
|
||||
/*0x15c*/ u32 aimsideback;
|
||||
/*0x160*/ float aimendlshoulder;
|
||||
/*0x164*/ float aimendrshoulder;
|
||||
/*0x168*/ float aimendback;
|
||||
/*0x16c*/ float aimendsideback;
|
||||
/*0x160*/ f32 aimendlshoulder;
|
||||
/*0x164*/ f32 aimendrshoulder;
|
||||
/*0x168*/ f32 aimendback;
|
||||
/*0x16c*/ f32 aimendsideback;
|
||||
/*0x170*/ struct attachment *weapons_held[2];
|
||||
/*0x178*/ u32 unk178;
|
||||
/*0x17c*/ s8 fireslot[2];
|
||||
/*0x17e*/ s16 target; // index into g_Vars.positions
|
||||
/*0x180*/ float cshield;
|
||||
/*0x180*/ f32 cshield;
|
||||
/*0x184*/ u8 cmnum;
|
||||
/*0x185*/ u8 cmnum2;
|
||||
/*0x186*/ u8 cmnum3;
|
||||
@@ -486,7 +486,7 @@ struct defaultobj {
|
||||
/*0x10*/ u32 flags3;
|
||||
/*0x14*/ struct position *pos;
|
||||
/*0x18*/ void *unk18; // probably same struct as chrdata->unk020
|
||||
/*0x1c*/ float realrot[9];
|
||||
/*0x1c*/ f32 realrot[9];
|
||||
/*0x40*/ u32 hidden; // most significant nibble is the playernum who holds the obj
|
||||
/*0x44*/ u32 unk44;
|
||||
/*0x48*/ u32 unk48;
|
||||
@@ -500,7 +500,7 @@ struct defaultobj {
|
||||
|
||||
struct doorobj { // objtype 0x01
|
||||
struct defaultobj base;
|
||||
/*0x5c*/ float unk5c;
|
||||
/*0x5c*/ f32 unk5c;
|
||||
/*0x60*/ u32 unk60;
|
||||
/*0x64*/ u32 unk64;
|
||||
/*0x68*/ u32 unk68;
|
||||
@@ -508,8 +508,8 @@ struct doorobj { // objtype 0x01
|
||||
/*0x70*/ u32 unk70;
|
||||
/*0x74*/ u32 lockbits;
|
||||
/*0x78*/ u32 unk78;
|
||||
/*0x7c*/ float speed;
|
||||
/*0x80*/ float unk80;
|
||||
/*0x7c*/ f32 speed;
|
||||
/*0x80*/ f32 unk80;
|
||||
/*0x84*/ s8 state;
|
||||
/*0x88*/ u32 unk88;
|
||||
/*0x8c*/ u32 unk8c;
|
||||
@@ -555,7 +555,7 @@ struct weaponobj { // objtype 0x08
|
||||
/*0x10*/ u32 flags3;
|
||||
/*0x14*/ struct position *pos;
|
||||
/*0x18*/ u32 unk18;
|
||||
/*0x1c*/ float realrot[9];
|
||||
/*0x1c*/ f32 realrot[9];
|
||||
/*0x40*/ u32 hidden;
|
||||
/*0x44*/ u32 unk44;
|
||||
/*0x48*/ u32 unk48;
|
||||
@@ -580,7 +580,7 @@ struct singlemonitorobj { // objtype 0x0a
|
||||
/*0x10*/ u32 flags3;
|
||||
/*0x14*/ struct position *pos;
|
||||
/*0x18*/ u32 unk18;
|
||||
/*0x1c*/ float realrot[9];
|
||||
/*0x1c*/ f32 realrot[9];
|
||||
/*0x40*/ u32 hidden;
|
||||
/*0x44*/ u32 unk44;
|
||||
/*0x48*/ u32 unk48;
|
||||
@@ -629,7 +629,7 @@ struct liftobj { // objtype 30
|
||||
/*0x68*/ u32 unk68;
|
||||
/*0x6c*/ u32 unk6c;
|
||||
/*0x70*/ u32 unk70;
|
||||
/*0x74*/ float unk74;
|
||||
/*0x74*/ f32 unk74;
|
||||
};
|
||||
|
||||
struct heliobj {
|
||||
@@ -693,8 +693,8 @@ struct player {
|
||||
/*0x0068*/ u32 unk0068;
|
||||
/*0x006c*/ u32 unk006c;
|
||||
/*0x0070*/ u32 unk0070;
|
||||
/*0x0074*/ float unk0074;
|
||||
/*0x0078*/ float unk0078;
|
||||
/*0x0074*/ f32 unk0074;
|
||||
/*0x0078*/ f32 unk0078;
|
||||
/*0x007c*/ u32 unk007c;
|
||||
/*0x0080*/ u32 unk0080;
|
||||
/*0x0084*/ u32 unk0084;
|
||||
@@ -709,7 +709,7 @@ struct player {
|
||||
/*0x00a8*/ u32 unk00a8;
|
||||
/*0x00ac*/ u32 unk00ac;
|
||||
/*0x00b0*/ u32 unk00b0;
|
||||
/*0x00b4*/ float unk00b4;
|
||||
/*0x00b4*/ f32 unk00b4;
|
||||
/*0x00b8*/ u32 unk00b8;
|
||||
/*0x00bc*/ struct position *targetpos;
|
||||
/*0x00c0*/ u32 unk00c0;
|
||||
@@ -762,10 +762,10 @@ struct player {
|
||||
/*0x017c*/ u32 unk017c;
|
||||
/*0x0180*/ u32 unk0180;
|
||||
/*0x0184*/ u32 unk0184;
|
||||
/*0x0188*/ float unk0188;
|
||||
/*0x018c*/ float unk018c;
|
||||
/*0x0190*/ float unk0190;
|
||||
/*0x0194*/ float unk0194;
|
||||
/*0x0188*/ f32 unk0188;
|
||||
/*0x018c*/ f32 unk018c;
|
||||
/*0x0190*/ f32 unk0190;
|
||||
/*0x0194*/ f32 unk0194;
|
||||
/*0x0198*/ u32 unk0198;
|
||||
/*0x019c*/ u32 unk019c;
|
||||
/*0x01a0*/ u32 unk01a0;
|
||||
@@ -849,17 +849,17 @@ struct player {
|
||||
/*0x02d8*/ u32 unk02d8;
|
||||
/*0x02dc*/ u32 unk02dc;
|
||||
/*0x02e0*/ u32 unk02e0;
|
||||
/*0x02e4*/ float unk02e4;
|
||||
/*0x02e8*/ float unk02e8;
|
||||
/*0x02ec*/ float unk02ec;
|
||||
/*0x02e4*/ f32 unk02e4;
|
||||
/*0x02e8*/ f32 unk02e8;
|
||||
/*0x02ec*/ f32 unk02ec;
|
||||
/*0x02f0*/ u32 unk02f0;
|
||||
/*0x02f4*/ u32 unk02f4;
|
||||
/*0x02f8*/ u32 unk02f8;
|
||||
/*0x02fc*/ u32 unk02fc;
|
||||
/*0x0300*/ u32 unk0300;
|
||||
/*0x0304*/ u32 unk0304;
|
||||
/*0x0308*/ float unk0308;
|
||||
/*0x030c*/ float unk030c;
|
||||
/*0x0308*/ f32 unk0308;
|
||||
/*0x030c*/ f32 unk030c;
|
||||
/*0x0310*/ u32 unk0310;
|
||||
/*0x0314*/ u32 unk0314;
|
||||
/*0x0318*/ u32 unk0318;
|
||||
@@ -2419,9 +2419,9 @@ struct player {
|
||||
/*0x1b60*/ u32 unk1b60;
|
||||
/*0x1b64*/ u32 unk1b64;
|
||||
/*0x1b68*/ u32 unk1b68;
|
||||
/*0x1b6c*/ float unk1b6c;
|
||||
/*0x1b70*/ float unk1b70;
|
||||
/*0x1b74*/ float unk1b74;
|
||||
/*0x1b6c*/ f32 unk1b6c;
|
||||
/*0x1b70*/ f32 unk1b70;
|
||||
/*0x1b74*/ f32 unk1b74;
|
||||
/*0x1b78*/ u32 unk1b78;
|
||||
/*0x1b7c*/ u32 unk1b7c;
|
||||
/*0x1b80*/ u32 unk1b80;
|
||||
@@ -2484,11 +2484,11 @@ struct stagesetup {
|
||||
};
|
||||
|
||||
struct inventory_menupos {
|
||||
float x;
|
||||
float y;
|
||||
float z;
|
||||
float rotation;
|
||||
float size;
|
||||
f32 x;
|
||||
f32 y;
|
||||
f32 z;
|
||||
f32 rotation;
|
||||
f32 size;
|
||||
};
|
||||
|
||||
struct inventory_typee {
|
||||
@@ -2551,11 +2551,11 @@ struct weapon {
|
||||
/*0x1c*/ struct inventory_ammo *pri_ammo;
|
||||
/*0x20*/ struct inventory_ammo *sec_ammo;
|
||||
/*0x24*/ struct inventory_typee *eptr;
|
||||
/*0x28*/ float sway;
|
||||
/*0x2c*/ float leftright;
|
||||
/*0x30*/ float updown;
|
||||
/*0x34*/ float frontback;
|
||||
/*0x38*/ float unk38;
|
||||
/*0x28*/ f32 sway;
|
||||
/*0x2c*/ f32 leftright;
|
||||
/*0x30*/ f32 updown;
|
||||
/*0x34*/ f32 frontback;
|
||||
/*0x38*/ f32 unk38;
|
||||
/*0x3c*/ struct inventory_typef *fptr;
|
||||
/*0x40*/ s8 *gptr;
|
||||
/*0x44*/ u16 shortname;
|
||||
@@ -2593,8 +2593,8 @@ struct cheatspec {
|
||||
struct bodytableentry {
|
||||
u16 unk00;
|
||||
u16 bodyfileid;
|
||||
float unk04;
|
||||
float unk08;
|
||||
f32 unk04;
|
||||
f32 unk08;
|
||||
u32 unk0c;
|
||||
u16 handfileid;
|
||||
};
|
||||
@@ -2611,9 +2611,9 @@ struct stagetableentry {
|
||||
u16 padsfileid;
|
||||
u16 setupfileid;
|
||||
u16 mpsetupfileid;
|
||||
float unk14;
|
||||
float unk18;
|
||||
float unk1c;
|
||||
f32 unk14;
|
||||
f32 unk18;
|
||||
f32 unk1c;
|
||||
u16 unk20;
|
||||
u8 unk22;
|
||||
s8 unk23;
|
||||
@@ -2622,7 +2622,7 @@ struct stagetableentry {
|
||||
s16 unk2c;
|
||||
u16 unk2e;
|
||||
u16 unk30;
|
||||
float unk34;
|
||||
f32 unk34;
|
||||
};
|
||||
|
||||
struct mpweaponset {
|
||||
@@ -2696,9 +2696,9 @@ struct sun {
|
||||
u8 red;
|
||||
u8 green;
|
||||
u8 blue;
|
||||
float x;
|
||||
float y;
|
||||
float z;
|
||||
f32 x;
|
||||
f32 y;
|
||||
f32 z;
|
||||
u16 texture_size;
|
||||
u16 orb_size;
|
||||
};
|
||||
@@ -2750,13 +2750,13 @@ struct sky {
|
||||
u8 clouds_r;
|
||||
u8 clouds_g;
|
||||
u8 clouds_b;
|
||||
float clouds_scale;
|
||||
f32 clouds_scale;
|
||||
u16 unk20;
|
||||
u8 water_enabled;
|
||||
u8 water_r;
|
||||
u8 water_g;
|
||||
u8 water_b;
|
||||
float water_scale;
|
||||
f32 water_scale;
|
||||
u16 water_type;
|
||||
u32 unk30;
|
||||
u32 unk34;
|
||||
@@ -2831,10 +2831,10 @@ struct audiodefinition {
|
||||
};
|
||||
|
||||
struct audioconfig {
|
||||
float unk00;
|
||||
float unk04;
|
||||
float unk08;
|
||||
float unk0c;
|
||||
f32 unk00;
|
||||
f32 unk04;
|
||||
f32 unk08;
|
||||
f32 unk0c;
|
||||
u32 unk10;
|
||||
s32 unk14;
|
||||
u32 unk18;
|
||||
|
||||
Reference in New Issue
Block a user