mirror of
https://github.com/zeldaret/oot.git
synced 2025-08-10 00:40:16 +00:00
WeaponInfo
docs (#1596)
* WeaponInfo docs * format * disasm metadata * merge fixup * Add MELEE_WEAPON_INFO_TIP and _BASE * format * Offset
This commit is contained in:
parent
45bee14f2f
commit
39de1e0204
12 changed files with 128 additions and 107 deletions
|
@ -694,10 +694,13 @@ typedef struct PlayerAgeProperties {
|
|||
/* 0xCC */ LinkAnimationHeader* unk_CC[2];
|
||||
} PlayerAgeProperties; // size = 0xD4
|
||||
|
||||
#define MELEE_WEAPON_INFO_TIP(weaponInfo) (&(weaponInfo)->posA)
|
||||
#define MELEE_WEAPON_INFO_BASE(weaponInfo) (&(weaponInfo)->posB)
|
||||
|
||||
typedef struct WeaponInfo {
|
||||
/* 0x00 */ s32 active;
|
||||
/* 0x04 */ Vec3f tip;
|
||||
/* 0x10 */ Vec3f base;
|
||||
/* 0x04 */ Vec3f posA; // For melee weapons, this is the tip (furthest from the player hand)
|
||||
/* 0x10 */ Vec3f posB; // For melee weapons, this is the base (near the player hand)
|
||||
} WeaponInfo; // size = 0x1C
|
||||
|
||||
#define LEDGE_DIST_MAX 399.96002f
|
||||
|
@ -1033,7 +1036,7 @@ s32 Player_OverrideLimbDrawGameplayFirstPerson(struct PlayState* play, s32 limbI
|
|||
Vec3s* rot, void* thisx);
|
||||
s32 Player_OverrideLimbDrawGameplayCrawling(struct PlayState* play, s32 limbIndex, Gfx** dList, Vec3f* pos, Vec3s* rot,
|
||||
void* thisx);
|
||||
u8 func_80090480(struct PlayState* play, ColliderQuad* collider, WeaponInfo* weaponInfo, Vec3f* newTip, Vec3f* newBase);
|
||||
u8 Player_UpdateWeaponInfo(struct PlayState* play, ColliderQuad* collider, WeaponInfo* weaponInfo, Vec3f* newPosA, Vec3f* newPosB);
|
||||
void Player_DrawGetItem(struct PlayState* play, Player* this);
|
||||
void Player_PostLimbDrawGameplay(struct PlayState* play, s32 limbIndex, Gfx** dList, Vec3s* rot, void* thisx);
|
||||
u32 Player_InitPauseDrawData(struct PlayState* play, u8* segment, SkelAnime* skelAnime);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue