mirror of
https://gitlab.com/ryandwyer/perfect-dark
synced 2026-09-09 11:34:16 -04:00
Decompile sightTick
This commit is contained in:
@@ -2864,6 +2864,13 @@
|
||||
#define SIGHT_MAIAN 6
|
||||
#define SIGHT_NONE 7
|
||||
|
||||
#define SIGHTTARGET_0 0
|
||||
#define SIGHTTARGET_1 1
|
||||
#define SIGHTTARGET_2 2
|
||||
#define SIGHTTARGET_3 3
|
||||
#define SIGHTTARGET_4 4
|
||||
#define SIGHTTARGET_5 5
|
||||
|
||||
#define SIMDIFF_MEAT 0
|
||||
#define SIMDIFF_EASY 1
|
||||
#define SIMDIFF_NORMAL 2
|
||||
|
||||
@@ -4,24 +4,24 @@
|
||||
#include "types.h"
|
||||
|
||||
bool sightIsPropFriendly(struct prop *prop);
|
||||
bool func0f0d716c(struct prop *prop, s32 arg1);
|
||||
bool func0f0d7240(struct prop *prop);
|
||||
s32 func0f0d7328(s32 arg0);
|
||||
bool sightCanTargetProp(struct prop *prop, s32 max);
|
||||
bool sightIsReactiveToProp(struct prop *prop);
|
||||
s32 sightFindFreeTargetIndex(s32 max);
|
||||
void func0f0d7364(void);
|
||||
void func0f0d7390(s32 arg0);
|
||||
void sightTick(bool sighton);
|
||||
s32 func0f0d789c(s32 arg0, s32 arg1, s32 arg2, s32 arg3);
|
||||
u32 func0f0d78f4(void);
|
||||
u32 func0f0d7f54(void);
|
||||
u32 func0f0d87a8(void);
|
||||
Gfx *sightRenderDefault(Gfx *gdl, bool aiming);
|
||||
Gfx *sightRenderClassic(Gfx *gdl, bool aiming);
|
||||
Gfx *sightRenderType2(Gfx *gdl, bool aiming);
|
||||
Gfx *sightRenderDefault(Gfx *gdl, bool sighton);
|
||||
Gfx *sightRenderClassic(Gfx *gdl, bool sighton);
|
||||
Gfx *sightRenderType2(Gfx *gdl, bool sighton);
|
||||
u32 func0f0d9948(void);
|
||||
Gfx *sightRenderSkedar(Gfx *gdl, bool aiming);
|
||||
Gfx *sightRenderZoom(Gfx *gdl, bool aiming);
|
||||
Gfx *sightRenderMaian(Gfx *gdl, bool aiming);
|
||||
Gfx *sightRenderSkedar(Gfx *gdl, bool sighton);
|
||||
Gfx *sightRenderZoom(Gfx *gdl, bool sighton);
|
||||
Gfx *sightRenderMaian(Gfx *gdl, bool sighton);
|
||||
Gfx *sightRenderTarget(Gfx *gdl);
|
||||
bool sightHasTargetWhileAiming(s32 sight);
|
||||
Gfx *sightRender(Gfx *gdl, bool aiming, s32 sight);
|
||||
Gfx *sightRender(Gfx *gdl, bool sighton, s32 sight);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -32,7 +32,7 @@ void func0000fe88(void);
|
||||
u32 func00010360(void);
|
||||
u32 func0001036c(void);
|
||||
void audioAdjust(struct audiohandle **handle, u32 arg1, u32 arg2, s32 speakerweight, s16 arg4, f32 arg5, s32 arg6, s32 arg7, s32 arg8);
|
||||
void func00010718(struct audiohandle **handle, s32 arg1, s32 arg2, s32 arg3, s32 arg4, f32 arg5, s32 arg6, s32 arg7, s32 arg8);
|
||||
struct audiohandle *func00010718(struct audiohandle **handle, s32 arg1, s32 arg2, s32 arg3, s32 arg4, f32 arg5, s32 arg6, s32 arg7, s32 arg8);
|
||||
s32 audioStart(s32 arg0, s16 sound, struct audiohandle **handle, s32 arg3, s32 arg4, f32 arg5, s32 arg6, s32 arg7);
|
||||
u32 func00010ae4(void);
|
||||
void envPlayNosedive(s32 room_id);
|
||||
|
||||
+4
-4
@@ -2677,7 +2677,7 @@ struct player {
|
||||
/*0x199c*/ u32 unk199c;
|
||||
/*0x19a0*/ f32 armourscale;
|
||||
/*0x19a4*/ f32 speedgo;
|
||||
/*0x19a8*/ u32 unk19a8;
|
||||
/*0x19a8*/ s32 sighttimer240;
|
||||
/*0x19ac*/ s32 crouchoffsetreal;
|
||||
/*0x19b0*/ s16 floorroom;
|
||||
/*0x19b2*/ u8 unk19b2;
|
||||
@@ -2740,9 +2740,9 @@ struct player {
|
||||
/*0x1b80*/ f32 bondwatchtime60;
|
||||
/*0x1b84*/ bool tickdiefinished;
|
||||
/*0x1b88*/ s32 introanimnum;
|
||||
/*0x1b8c*/ u32 unk1b8c;
|
||||
/*0x1b90*/ u16 unk1b90[4]; // related to cmpfollowprops
|
||||
/*0x1b98*/ u32 unk1b98;
|
||||
/*0x1b8c*/ s32 lastsighton;
|
||||
/*0x1b90*/ u16 targetset[4]; // related to cmpfollowprops
|
||||
/*0x1b98*/ u8 target;
|
||||
/*0x1b9c*/ f32 speedthetacontrol;
|
||||
/*0x1ba0*/ s32 cam_room;
|
||||
/*0x1ba4*/ s16 autocontrol_aimpad;
|
||||
|
||||
Reference in New Issue
Block a user