Skip to content

Commit

Permalink
start decompiling zNPCGoalRobo, Fodder code
Browse files Browse the repository at this point in the history
  • Loading branch information
mattbruv committed Jul 3, 2024
1 parent d6c11ca commit 188cae5
Show file tree
Hide file tree
Showing 10 changed files with 760 additions and 18 deletions.
6 changes: 3 additions & 3 deletions src/SB/Core/x/xBehaviour.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,10 @@ struct xPsyche : RyzMemData

struct xGoal : xListItem<xGoal>, xFactoryInst
{
xPsyche* psyche;
xPsyche* psyche; // 0x18
int32 goalID;
en_GOALSTATE stat;
int32 flg_able;
int32 flg_able; // 0x24
xGoalProcessCallback fun_process;
xGoalPreCalcCallback fun_precalc;
xGoalChkRuleCallback fun_chkRule;
Expand Down Expand Up @@ -197,4 +197,4 @@ struct xGoal : xListItem<xGoal>, xFactoryInst
~xGoal(); // prevents implicit destructors from being generated in subclasses of xGoal
};

#endif
#endif
10 changes: 5 additions & 5 deletions src/SB/Core/x/xModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ struct xModelInstance

// Offset: 0x40
void* Object;
uint16 Flags;
uint8 BoneCount;
uint8 BoneIndex;
uint8* BoneRemap;
RwMatrix* Mat;
uint16 Flags; // 0x44
uint8 BoneCount; // 0x46
uint8 BoneIndex; // 0x47
uint8* BoneRemap; // 0x48
RwMatrix* Mat; // 0x4C

// Offset: 0x50
xVec3 Scale;
Expand Down
4 changes: 2 additions & 2 deletions src/SB/Game/zGlobals.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ struct zPlayerGlobals

// 0x16AC in globals
uint32 Visible;
uint32 Health;
uint32 Health; // 0x16b0
int32 Speed;
float32 SpeedMult;
int32 Sneak;
Expand All @@ -172,7 +172,7 @@ struct zPlayerGlobals
float32 ScareTimer;
xBase* ScareSource;
float32 CowerTimer;
float32 DamageTimer;
float32 DamageTimer; // 0x1708
float32 SundaeTimer;
float32 ControlOffTimer;
float32 HelmetTimer;
Expand Down
6 changes: 3 additions & 3 deletions src/SB/Game/zNPCGoalCommon.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@

struct zNPCGoalCommon : xGoal
{
int32 flg_npcgauto;
int32 flg_npcgauto; // 0x3c
int32 flg_npcgable;
uint32 anid_played;
int32 flg_info : 16;
int32 flg_user : 16;
int32 flg_info : 16; // 0x48
int32 flg_user : 16; // 0x4a

zNPCGoalCommon(int32 goalID);

Expand Down
Loading

0 comments on commit 188cae5

Please sign in to comment.