summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorengineer124 <47598039+engineer124@users.noreply.github.com>2024-11-18 11:37:11 +1100
committerGitHub <noreply@github.com>2024-11-17 16:37:11 -0800
commit00bafced8e2bcdec514c80dc4506da56f0bd434f (patch)
treee2bb0288bbdca03a512f6a6b1f664c51b0fef6cb /include
parenta957342583ade3867679b93e126bcd39b80f5e43 (diff)
Player Docs: Zora Boomerang (#1739)
* zora boomerang * missed some * more docs * cleanup docs * more cleanup * Player_IsUsingZoraBoomerang
Diffstat (limited to 'include')
-rw-r--r--include/z64player.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/include/z64player.h b/include/z64player.h
index 9fabf823f..8a3aaa7eb 100644
--- a/include/z64player.h
+++ b/include/z64player.h
@@ -81,7 +81,7 @@ typedef enum PlayerItemAction {
/* 0x05 */ PLAYER_IA_SWORD_GILDED,
/* 0x06 */ PLAYER_IA_SWORD_TWO_HANDED,
/* 0x07 */ PLAYER_IA_DEKU_STICK,
- /* 0x08 */ PLAYER_IA_ZORA_FINS,
+ /* 0x08 */ PLAYER_IA_ZORA_BOOMERANG,
/* 0x09 */ PLAYER_IA_BOW,
/* 0x0A */ PLAYER_IA_BOW_FIRE,
/* 0x0B */ PLAYER_IA_BOW_ICE,
@@ -185,7 +185,7 @@ typedef enum PlayerMeleeWeapon {
/* 3 */ PLAYER_MELEEWEAPON_SWORD_GILDED = GET_MELEE_WEAPON_FROM_IA(PLAYER_IA_SWORD_GILDED),
/* 4 */ PLAYER_MELEEWEAPON_SWORD_TWO_HANDED = GET_MELEE_WEAPON_FROM_IA(PLAYER_IA_SWORD_TWO_HANDED),
/* 5 */ PLAYER_MELEEWEAPON_DEKU_STICK = GET_MELEE_WEAPON_FROM_IA(PLAYER_IA_DEKU_STICK),
- /* 6 */ PLAYER_MELEEWEAPON_ZORA_FINS = GET_MELEE_WEAPON_FROM_IA(PLAYER_IA_ZORA_FINS),
+ /* 6 */ PLAYER_MELEEWEAPON_ZORA_BOOMERANG = GET_MELEE_WEAPON_FROM_IA(PLAYER_IA_ZORA_BOOMERANG),
/* 7 */ PLAYER_MELEEWEAPON_MAX
} PlayerMeleeWeapon;
@@ -444,7 +444,7 @@ typedef enum PlayerModelGroup {
/* 11 */ PLAYER_MODELGROUP_INSTRUMENT,
/* 12 */ PLAYER_MODELGROUP_BOTTLE,
/* 13 */ PLAYER_MODELGROUP_13,
- /* 14 */ PLAYER_MODELGROUP_ZORA_FINS,
+ /* 14 */ PLAYER_MODELGROUP_ZORA_BOOMERANG,
/* 15 */ PLAYER_MODELGROUP_MAX
} PlayerModelGroup;
@@ -917,10 +917,10 @@ typedef enum PlayerCueId {
#define PLAYER_STATE1_400000 (1 << 22)
//
#define PLAYER_STATE1_800000 (1 << 23)
-//
-#define PLAYER_STATE1_1000000 (1 << 24)
-//
-#define PLAYER_STATE1_2000000 (1 << 25)
+// Currently using the zora boomerang. This includes all phases (aiming, throwing, and catching).
+#define PLAYER_STATE1_USING_ZORA_BOOMERANG (1 << 24)
+// Zora boomerang has been thrown and is flying in the air
+#define PLAYER_STATE1_ZORA_BOOMERANG_THROWN (1 << 25)
//
#define PLAYER_STATE1_4000000 (1 << 26)
// Swimming?
@@ -1047,8 +1047,8 @@ typedef enum PlayerCueId {
#define PLAYER_STATE3_200000 (1 << 21)
//
#define PLAYER_STATE3_400000 (1 << 22)
-//
-#define PLAYER_STATE3_800000 (1 << 23)
+// A Zora boomerang has been caught this frame
+#define PLAYER_STATE3_ZORA_BOOMERANG_CAUGHT (1 << 23)
//
#define PLAYER_STATE3_1000000 (1 << 24)
//
@@ -1215,7 +1215,7 @@ typedef struct Player {
/* 0xA70 */ u32 stateFlags2;
/* 0xA74 */ u32 stateFlags3;
/* 0xA78 */ Actor* autoLockOnActor; // Actor that is locked onto automatically without player input; see `Player_SetAutoLockOnActor`
- /* 0xA7C */ Actor* boomerangActor;
+ /* 0xA7C */ Actor* zoraBoomerangActor; // Defaults to the left zora boomerang, but will switch to right if only the left boomerang is caught.
/* 0xA80 */ Actor* tatlActor;
/* 0xA84 */ s16 tatlTextId;
/* 0xA86 */ s8 csId;