mirror of
https://github.com/zeldaret/mm.git
synced 2026-08-05 17:43:19 -04:00
Document Overriding Player Input (#1489)
* Override Input * cleanup * cleanup * PR Review * PR Review, fix merge
This commit is contained in:
+3
-3
@@ -295,7 +295,7 @@ f32 Actor_WorldDistXZToActor(Actor* actorA, Actor* actorB);
|
||||
f32 Actor_WorldDistXZToPoint(Actor* actor, Vec3f* refPoint);
|
||||
void Actor_OffsetOfPointInActorCoords(Actor* actor, Vec3f* offset, Vec3f* point);
|
||||
f32 Actor_HeightDiff(Actor* actor1, Actor* actor2);
|
||||
void func_800B6F20(PlayState* play, Input* input, f32 magnitude, s16 baseYaw);
|
||||
void Actor_SetControlStickData(PlayState* play, Input* input, f32 controlStickMagnitude, s16 controlStickAngle);
|
||||
f32 Player_GetHeight(Player* player);
|
||||
f32 Player_GetRunSpeedLimit(Player* player);
|
||||
bool func_800B7118(Player* player);
|
||||
@@ -767,8 +767,8 @@ f32 Path_OrientAndGetDistSq(Actor* actor, Path* path, s16 waypoint, s16* yaw);
|
||||
void Path_CopyLastPoint(Path* path, Vec3f* dest);
|
||||
|
||||
s32 func_801226E0(PlayState* play, s32 arg1);
|
||||
s32 func_80122744(PlayState* play, struct_80122744_arg1* arg1, u32 arg2, Vec3s* arg3);
|
||||
s32 func_80122760(PlayState* play, struct_80122744_arg1* arg1, f32 arg2);
|
||||
s32 Player_InitOverrideInput(PlayState* play, PlayerOverrideInputEntry* inputEntry, u32 numPoints, Vec3s* targetPosList);
|
||||
s32 Player_UpdateOverrideInput(PlayState* play, PlayerOverrideInputEntry* inputEntry, f32 distXZRange);
|
||||
void func_80122868(PlayState* play, Player* player);
|
||||
void func_801229A0(PlayState* play, Player* player);
|
||||
void func_801229EC(Actor* thisx, PlayState* play);
|
||||
|
||||
+2
-2
@@ -433,9 +433,9 @@ typedef struct ActorContext {
|
||||
/* 0x24C */ UNK_TYPE1 unk_24C[0x4];
|
||||
/* 0x250 */ void* absoluteSpace; // Space used to allocate actor overlays of alloc type ALLOCTYPE_ABSOLUTE
|
||||
/* 0x254 */ struct EnTorch2* elegyShells[5]; // PLAYER_FORM_MAX
|
||||
/* 0x268 */ u8 unk268;
|
||||
/* 0x268 */ u8 isOverrideInputOn;
|
||||
/* 0x269 */ UNK_TYPE1 pad269[0x3];
|
||||
/* 0x26C */ Input unk_26C;
|
||||
/* 0x26C */ Input overrideInput;
|
||||
} ActorContext; // size = 0x284
|
||||
|
||||
typedef enum {
|
||||
|
||||
+5
-7
@@ -598,13 +598,11 @@ typedef struct {
|
||||
/* 0x04 */ struct_80122D44_arg1_unk_04 unk_04[4];
|
||||
} struct_80122D44_arg1; // size >= 0x114
|
||||
|
||||
typedef struct struct_80122744_arg1 {
|
||||
/* 0x0 */ s8 unk_00;
|
||||
/* 0x1 */ s8 unk_01;
|
||||
/* 0x2 */ s8 unk_02;
|
||||
/* 0x3 */ s8 unk_03;
|
||||
/* 0x4 */ Vec3s* unk_04;
|
||||
} struct_80122744_arg1; // size = 0x8
|
||||
typedef struct PlayerOverrideInputEntry {
|
||||
/* 0x0 */ s8 numPoints;
|
||||
/* 0x1 */ s8 curPoint;
|
||||
/* 0x4 */ Vec3s* targetPosList;
|
||||
} PlayerOverrideInputEntry; // size = 0x8
|
||||
|
||||
typedef enum PlayerCsAction {
|
||||
/* -1 */ PLAYER_CSACTION_NEG1 = -1, // Specific to Kafei, any negative number works
|
||||
|
||||
Reference in New Issue
Block a user