2022-10-09 05:13:17 +00:00
|
|
|
#ifndef _CPLAYER
|
|
|
|
#define _CPLAYER
|
2022-09-19 04:19:46 +00:00
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
|
|
|
|
#include "MetroidPrime/CAnimRes.hpp"
|
|
|
|
#include "MetroidPrime/CPhysicsActor.hpp"
|
|
|
|
#include "MetroidPrime/Player/CPlayerEnergyDrain.hpp"
|
|
|
|
#include "MetroidPrime/Player/CPlayerState.hpp"
|
|
|
|
|
|
|
|
#include "Kyoto/TReservedAverage.hpp"
|
|
|
|
|
|
|
|
#include "rstl/auto_ptr.hpp"
|
|
|
|
#include "rstl/vector.hpp"
|
|
|
|
|
|
|
|
class CPlayerGun;
|
|
|
|
class CFailsafeTest;
|
|
|
|
class CMorphBall;
|
|
|
|
class CPlayerCameraBob;
|
|
|
|
|
|
|
|
namespace NPlayer {
|
|
|
|
enum EPlayerMovementState {
|
|
|
|
kMS_OnGround,
|
|
|
|
kMS_Jump,
|
|
|
|
kMS_ApplyJump,
|
|
|
|
kMS_Falling,
|
|
|
|
kMS_FallingMorphed,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
class CPlayer : public CPhysicsActor {
|
|
|
|
public:
|
|
|
|
enum EPlayerOrbitState {
|
|
|
|
kOS_NoOrbit,
|
|
|
|
kOS_OrbitObject,
|
|
|
|
kOS_OrbitPoint,
|
|
|
|
kOS_OrbitCarcass,
|
|
|
|
kOS_ForcedOrbitObject, // For CMetroidBeta attack
|
|
|
|
kOS_Grapple,
|
|
|
|
};
|
|
|
|
enum ESurfaceRestraints {
|
|
|
|
kSR_Normal,
|
|
|
|
kSR_Air,
|
|
|
|
kSR_Ice,
|
|
|
|
kSR_Organic,
|
|
|
|
kSR_Water,
|
|
|
|
kSR_Lava,
|
|
|
|
kSR_Phazon,
|
|
|
|
kSR_Shrubbery,
|
|
|
|
};
|
|
|
|
enum EPlayerCameraState {
|
|
|
|
kCS_FirstPerson,
|
|
|
|
kCS_Ball,
|
|
|
|
kCS_Two,
|
|
|
|
kCS_Transitioning,
|
|
|
|
kCS_Spawned,
|
|
|
|
};
|
|
|
|
enum EPlayerMorphBallState {
|
|
|
|
kMS_Unmorphed,
|
|
|
|
kMS_Morphed,
|
|
|
|
kMS_Morphing,
|
|
|
|
kMS_Unmorphing,
|
|
|
|
};
|
|
|
|
enum EPlayerOrbitType {
|
|
|
|
kOT_Close,
|
|
|
|
kOT_Far,
|
|
|
|
kOT_Default,
|
|
|
|
};
|
|
|
|
enum EPlayerOrbitRequest {
|
|
|
|
kOR_StopOrbit,
|
|
|
|
kOR_Respawn,
|
|
|
|
kOR_EnterMorphBall,
|
|
|
|
kOR_Default,
|
|
|
|
kOR_Four,
|
|
|
|
kOR_Five,
|
|
|
|
kOR_InvalidateTarget,
|
|
|
|
kOR_BadVerticalAngle,
|
|
|
|
kOR_ActivateOrbitSource,
|
|
|
|
kOR_ProjectileCollide,
|
|
|
|
kOR_Freeze,
|
|
|
|
kOR_DamageOnGrapple,
|
|
|
|
kOR_LostGrappleLineOfSight,
|
|
|
|
};
|
|
|
|
enum EPlayerZoneInfo {
|
|
|
|
kZI_Targeting,
|
|
|
|
kZI_Scan,
|
|
|
|
};
|
|
|
|
enum EPlayerZoneType {
|
|
|
|
kZT_Always = -1,
|
|
|
|
kZT_Box,
|
|
|
|
kZT_Ellipse,
|
|
|
|
};
|
|
|
|
enum EPlayerScanState {
|
|
|
|
kSS_NotScanning,
|
|
|
|
kSS_Scanning,
|
|
|
|
kSS_ScanComplete,
|
|
|
|
};
|
|
|
|
enum EGrappleState {
|
|
|
|
kGS_None,
|
|
|
|
kGS_Firing,
|
|
|
|
kGS_Pull,
|
|
|
|
kGS_Swinging,
|
|
|
|
kGS_JumpOff,
|
|
|
|
};
|
|
|
|
enum EFootstepSfx {
|
|
|
|
kFS_None,
|
|
|
|
kFS_Left,
|
|
|
|
kFS_Right,
|
|
|
|
};
|
|
|
|
enum EGunHolsterState {
|
|
|
|
kGH_Holstered,
|
|
|
|
kGH_Drawing,
|
|
|
|
kGH_Drawn,
|
|
|
|
kGH_Holstering,
|
|
|
|
};
|
|
|
|
|
|
|
|
// CEntity
|
|
|
|
~CPlayer() override;
|
|
|
|
void Accept(IVisitor& visitor) override;
|
2022-10-09 05:37:23 +00:00
|
|
|
void PreThink(float dt, CStateManager& mgr) override;
|
|
|
|
void Think(float dt, CStateManager& mgr) override;
|
2022-09-19 04:19:46 +00:00
|
|
|
void AcceptScriptMsg(EScriptObjectMessage msg, TUniqueId uid, CStateManager& mgr) override;
|
|
|
|
|
|
|
|
// CActor
|
|
|
|
void PreRender(CStateManager&, const CFrustumPlanes&) override;
|
|
|
|
void AddToRenderer(const CFrustumPlanes&, const CStateManager&) const override;
|
|
|
|
void Render(const CStateManager&) const override;
|
|
|
|
bool CanRenderUnsorted(const CStateManager&) const override;
|
|
|
|
void CalculateRenderBounds() override;
|
|
|
|
CHealthInfo* HealthInfo(CStateManager&) override;
|
|
|
|
const CDamageVulnerability* GetDamageVulnerability() const override;
|
|
|
|
const CDamageVulnerability* GetDamageVulnerability(const CVector3f&, const CVector3f&,
|
|
|
|
const CDamageInfo&) const override;
|
|
|
|
rstl::optional_object< CAABox > GetTouchBounds() const override;
|
|
|
|
void Touch(CActor&, CStateManager&) override;
|
|
|
|
CVector3f GetAimPosition(const CStateManager&, float) const override;
|
|
|
|
CVector3f GetHomingPosition(const CStateManager&, float) const override;
|
|
|
|
void FluidFXThink(EFluidState, CScriptWater&, CStateManager&) override;
|
|
|
|
|
|
|
|
// CPhysicsActor
|
|
|
|
const CCollisionPrimitive* GetCollisionPrimitive() const override;
|
|
|
|
CTransform4f GetPrimitiveTransform() const override;
|
2022-10-08 05:12:48 +00:00
|
|
|
void CollidedWith(const TUniqueId& id, const CCollisionInfoList& list,
|
|
|
|
CStateManager& mgr) override;
|
2022-10-09 05:37:23 +00:00
|
|
|
float GetStepDownHeight() const override;
|
|
|
|
float GetStepUpHeight() const override;
|
|
|
|
float GetWeight() const override;
|
2022-09-19 04:19:46 +00:00
|
|
|
|
|
|
|
// CPlayer
|
|
|
|
virtual bool IsTransparent();
|
|
|
|
|
2022-09-21 05:18:07 +00:00
|
|
|
CVector3f GetBallPosition() const;
|
2022-09-29 05:30:20 +00:00
|
|
|
CTransform4f CreateTransformFromMovementDirection() const;
|
2022-09-19 04:19:46 +00:00
|
|
|
EPlayerOrbitState GetOrbitState() const { return x304_orbitState; }
|
2022-09-29 05:30:20 +00:00
|
|
|
const CVector3f& GetMovementDirection() const { return x50c_moveDir; }
|
2022-10-03 11:55:03 +00:00
|
|
|
EPlayerMorphBallState GetMorphballTransitionState() const { return x2f8_morphBallState; }
|
2022-10-04 00:00:46 +00:00
|
|
|
|
|
|
|
static float skDefaultHudFadeOutSpeed;
|
|
|
|
static float skDefaultHudFadeInSpeed;
|
|
|
|
void SetHudDisable(float staticTimer, float outSpeed = skDefaultHudFadeOutSpeed,
|
|
|
|
float inSpeed = skDefaultHudFadeInSpeed);
|
|
|
|
|
2022-10-02 10:13:35 +00:00
|
|
|
void IncrementPhazon();
|
|
|
|
void DecrementPhazon();
|
2022-09-29 05:30:20 +00:00
|
|
|
// GetMovementDirection2D__7CPlayerCFv ??
|
2022-10-04 00:00:46 +00:00
|
|
|
void AddOrbitDisableSource(CStateManager& mgr, TUniqueId addId);
|
|
|
|
void RemoveOrbitDisableSource(TUniqueId uid);
|
2022-09-19 04:19:46 +00:00
|
|
|
|
2022-10-05 18:05:56 +00:00
|
|
|
CPlayerGun* PlayerGun() { return x490_gun.get(); }
|
|
|
|
const CPlayerGun* GetPlayerGun() const { return x490_gun.get(); }
|
2022-10-06 20:34:27 +00:00
|
|
|
|
|
|
|
ESurfaceRestraints GetCurrentSurfaceRestraint() const { return x2ac_surfaceRestraint; }
|
|
|
|
ESurfaceRestraints GetSurfaceRestraint() const {
|
|
|
|
return x2b0_outOfWaterTicks == 2 ? GetCurrentSurfaceRestraint() : kSR_Water;
|
|
|
|
}
|
2022-10-08 05:12:48 +00:00
|
|
|
|
2022-10-06 16:57:29 +00:00
|
|
|
TUniqueId GetOrbitTargetId() const { return x310_orbitTargetId; }
|
|
|
|
TUniqueId GetOrbitNextTargetId() const { return x33c_orbitNextTargetId; }
|
|
|
|
TUniqueId GetScanningObjectId() const { return x3b4_scanningObject; }
|
2022-10-06 19:38:21 +00:00
|
|
|
EGrappleState GetGrappleState() const { return x3b8_grappleState; }
|
2022-10-06 20:34:27 +00:00
|
|
|
bool IsInFreeLook() const { return x3dc_inFreeLook; }
|
|
|
|
bool GetFreeLookStickState() const { return x3de_lookAnalogHeld; }
|
|
|
|
EPlayerCameraState GetCameraState() const { return x2f4_cameraState; }
|
2022-10-06 19:38:21 +00:00
|
|
|
EGunHolsterState GetGunHolsterState() const { return x498_gunHolsterState; }
|
2022-10-06 20:34:27 +00:00
|
|
|
NPlayer::EPlayerMovementState GetPlayerMovementState() const { return x258_movementState; }
|
2022-10-05 18:05:56 +00:00
|
|
|
|
2022-09-19 04:19:46 +00:00
|
|
|
private:
|
|
|
|
struct CVisorSteam {
|
2022-10-09 05:37:23 +00:00
|
|
|
float x0_curTargetAlpha;
|
|
|
|
float x4_curAlphaInDur;
|
|
|
|
float x8_curAlphaOutDur;
|
2022-09-19 04:19:46 +00:00
|
|
|
CAssetId xc_tex;
|
2022-10-09 05:37:23 +00:00
|
|
|
float x10_nextTargetAlpha;
|
|
|
|
float x14_nextAlphaInDur;
|
|
|
|
float x18_nextAlphaOutDur;
|
2022-09-19 04:19:46 +00:00
|
|
|
CAssetId x1c_txtr;
|
2022-10-09 05:37:23 +00:00
|
|
|
float x20_alpha;
|
|
|
|
float x24_delayTimer;
|
2022-09-19 04:19:46 +00:00
|
|
|
bool x28_affectsThermal;
|
|
|
|
|
|
|
|
public:
|
2022-10-09 05:37:23 +00:00
|
|
|
CVisorSteam(float targetAlpha, float alphaInDur, float alphaOutDur, CAssetId tex)
|
2022-09-19 04:19:46 +00:00
|
|
|
: x0_curTargetAlpha(targetAlpha)
|
|
|
|
, x4_curAlphaInDur(alphaInDur)
|
|
|
|
, x8_curAlphaOutDur(alphaOutDur)
|
|
|
|
, xc_tex(tex) {}
|
|
|
|
CAssetId GetTextureId() const;
|
2022-10-09 05:37:23 +00:00
|
|
|
void SetSteam(float targetAlpha, float alphaInDur, float alphaOutDur, CAssetId txtr,
|
2022-09-19 04:19:46 +00:00
|
|
|
bool affectsThermal);
|
2022-10-09 05:37:23 +00:00
|
|
|
void Update(float dt);
|
|
|
|
float GetAlpha() const { return x20_alpha; }
|
2022-09-19 04:19:46 +00:00
|
|
|
bool AffectsThermal() const { return x28_affectsThermal; }
|
|
|
|
};
|
|
|
|
|
|
|
|
NPlayer::EPlayerMovementState x258_movementState;
|
|
|
|
rstl::vector< CToken > x25c_ballTransitionsRes;
|
|
|
|
TUniqueId x26c_attachedActor;
|
2022-10-09 05:37:23 +00:00
|
|
|
float x270_attachedActorTime;
|
2022-09-19 04:19:46 +00:00
|
|
|
CPlayerEnergyDrain x274_energyDrain;
|
2022-10-09 05:37:23 +00:00
|
|
|
float x288_startingJumpTimeout;
|
|
|
|
float x28c_sjTimer;
|
|
|
|
float x290_minJumpTimeout;
|
|
|
|
float x294_jumpCameraTimer;
|
2022-09-19 04:19:46 +00:00
|
|
|
uint x298_jumpPresses;
|
2022-10-09 05:37:23 +00:00
|
|
|
float x29c_fallCameraTimer;
|
|
|
|
float x2a0_;
|
2022-09-19 04:19:46 +00:00
|
|
|
bool x2a4_cancelCameraPitch;
|
2022-10-09 05:37:23 +00:00
|
|
|
float x2a8_timeSinceJump;
|
2022-09-19 04:19:46 +00:00
|
|
|
ESurfaceRestraints x2ac_surfaceRestraint;
|
|
|
|
uint x2b0_outOfWaterTicks;
|
2022-10-09 05:37:23 +00:00
|
|
|
rstl::reserved_vector< float, 6 > x2b4_accelerationTable;
|
2022-09-19 04:19:46 +00:00
|
|
|
uint x2d0_curAcceleration;
|
2022-10-09 05:37:23 +00:00
|
|
|
float x2d4_accelerationChangeTimer;
|
2022-09-19 04:19:46 +00:00
|
|
|
CAABox x2d8_fpBounds;
|
2022-10-09 05:37:23 +00:00
|
|
|
float x2f0_ballTransHeight;
|
2022-09-19 04:19:46 +00:00
|
|
|
EPlayerCameraState x2f4_cameraState;
|
|
|
|
EPlayerMorphBallState x2f8_morphBallState;
|
|
|
|
EPlayerMorphBallState x2fc_spawnedMorphBallState;
|
2022-10-09 05:37:23 +00:00
|
|
|
float x300_fallingTime;
|
2022-09-19 04:19:46 +00:00
|
|
|
EPlayerOrbitState x304_orbitState;
|
|
|
|
EPlayerOrbitType x308_orbitType;
|
|
|
|
EPlayerOrbitRequest x30c_orbitRequest;
|
|
|
|
TUniqueId x310_orbitTargetId;
|
|
|
|
CVector3f x314_orbitPoint;
|
|
|
|
CVector3f x320_orbitVector;
|
2022-10-09 05:37:23 +00:00
|
|
|
float x32c_orbitModeTimer;
|
2022-09-19 04:19:46 +00:00
|
|
|
EPlayerZoneInfo x330_orbitZoneMode;
|
|
|
|
EPlayerZoneType x334_orbitType;
|
|
|
|
uint x338_;
|
|
|
|
TUniqueId x33c_orbitNextTargetId;
|
|
|
|
bool m_deferredOrbitObject;
|
2022-10-09 05:37:23 +00:00
|
|
|
float x340_;
|
2022-09-19 04:19:46 +00:00
|
|
|
rstl::vector< TUniqueId > x344_nearbyOrbitObjects;
|
|
|
|
rstl::vector< TUniqueId > x354_onScreenOrbitObjects;
|
|
|
|
rstl::vector< TUniqueId > x364_offScreenOrbitObjects;
|
|
|
|
bool x374_orbitLockEstablished;
|
2022-10-09 05:37:23 +00:00
|
|
|
float x378_orbitPreventionTimer;
|
2022-09-19 04:19:46 +00:00
|
|
|
bool x37c_sidewaysDashing;
|
2022-10-09 05:37:23 +00:00
|
|
|
float x380_strafeInputAtDash;
|
|
|
|
float x384_dashTimer;
|
|
|
|
float x388_dashButtonHoldTime;
|
2022-09-19 04:19:46 +00:00
|
|
|
bool x38c_doneSidewaysDashing;
|
|
|
|
uint x390_orbitSource;
|
|
|
|
bool x394_orbitingEnemy;
|
2022-10-09 05:37:23 +00:00
|
|
|
float x398_dashSpeedMultiplier;
|
2022-09-19 04:19:46 +00:00
|
|
|
bool x39c_noStrafeDashBlend;
|
2022-10-09 05:37:23 +00:00
|
|
|
float x3a0_dashDuration;
|
|
|
|
float x3a4_strafeDashBlendDuration;
|
2022-09-19 04:19:46 +00:00
|
|
|
EPlayerScanState x3a8_scanState;
|
2022-10-09 05:37:23 +00:00
|
|
|
float x3ac_scanningTime;
|
|
|
|
float x3b0_curScanTime;
|
2022-09-19 04:19:46 +00:00
|
|
|
TUniqueId x3b4_scanningObject;
|
|
|
|
EGrappleState x3b8_grappleState;
|
2022-10-09 05:37:23 +00:00
|
|
|
float x3bc_grappleSwingTimer;
|
2022-09-19 04:19:46 +00:00
|
|
|
CVector3f x3c0_grappleSwingAxis;
|
2022-10-09 05:37:23 +00:00
|
|
|
float x3cc_;
|
|
|
|
float x3d0_;
|
|
|
|
float x3d4_;
|
|
|
|
float x3d8_grappleJumpTimeout;
|
2022-09-19 04:19:46 +00:00
|
|
|
bool x3dc_inFreeLook;
|
|
|
|
bool x3dd_lookButtonHeld;
|
|
|
|
bool x3de_lookAnalogHeld;
|
2022-10-09 05:37:23 +00:00
|
|
|
float x3e0_curFreeLookCenteredTime;
|
|
|
|
float x3e4_freeLookYawAngle;
|
|
|
|
float x3e8_horizFreeLookAngleVel;
|
|
|
|
float x3ec_freeLookPitchAngle;
|
|
|
|
float x3f0_vertFreeLookAngleVel;
|
2022-09-19 04:19:46 +00:00
|
|
|
TUniqueId x3f4_aimTarget;
|
|
|
|
CVector3f x3f8_targetAimPosition;
|
|
|
|
TReservedAverage< CVector3f, 10 > x404_aimTargetAverage;
|
|
|
|
CVector3f x480_assistedTargetAim;
|
2022-10-09 05:37:23 +00:00
|
|
|
float x48c_aimTargetTimer;
|
2022-09-19 04:19:46 +00:00
|
|
|
rstl::single_ptr< CPlayerGun > x490_gun;
|
2022-10-09 05:37:23 +00:00
|
|
|
float x494_gunAlpha;
|
2022-09-19 04:19:46 +00:00
|
|
|
EGunHolsterState x498_gunHolsterState;
|
2022-10-09 05:37:23 +00:00
|
|
|
float x49c_gunHolsterRemTime;
|
2022-09-19 04:19:46 +00:00
|
|
|
rstl::single_ptr< CFailsafeTest > x4a0_failsafeTest;
|
2022-10-09 05:37:23 +00:00
|
|
|
TReservedAverage< float, 20 > x4a4_moveSpeedAvg;
|
|
|
|
float x4f8_moveSpeed;
|
|
|
|
float x4fc_flatMoveSpeed;
|
2022-09-19 04:19:46 +00:00
|
|
|
CVector3f x500_lookDir;
|
|
|
|
CVector3f x50c_moveDir;
|
|
|
|
CVector3f x518_leaveMorphDir;
|
|
|
|
CVector3f x524_lastPosForDirCalc;
|
|
|
|
CVector3f x530_gunDir;
|
2022-10-09 05:37:23 +00:00
|
|
|
float x53c_timeMoving;
|
2022-09-19 04:19:46 +00:00
|
|
|
CVector3f x540_controlDir;
|
|
|
|
CVector3f x54c_controlDirFlat;
|
|
|
|
bool x558_wasDamaged;
|
2022-10-09 05:37:23 +00:00
|
|
|
float x55c_damageAmt;
|
|
|
|
float x560_prevDamageAmt;
|
2022-09-19 04:19:46 +00:00
|
|
|
CVector3f x564_damageLocation;
|
2022-10-09 05:37:23 +00:00
|
|
|
float x570_immuneTimer;
|
|
|
|
float x574_morphTime;
|
|
|
|
float x578_morphDuration;
|
2022-09-19 04:19:46 +00:00
|
|
|
uint x57c_;
|
|
|
|
uint x580_;
|
|
|
|
int x584_ballTransitionAnim;
|
2022-10-09 05:37:23 +00:00
|
|
|
float x588_alpha;
|
|
|
|
float x58c_transitionVel;
|
2022-09-19 04:19:46 +00:00
|
|
|
bool x590_leaveMorphballAllowed;
|
|
|
|
TReservedAverage< CTransform4f, 4 > x594_transisionBeamXfs;
|
|
|
|
TReservedAverage< CTransform4f, 4 > x658_transitionModelXfs;
|
2022-10-09 05:37:23 +00:00
|
|
|
TReservedAverage< float, 4 > x71c_transitionModelAlphas;
|
2022-09-19 04:19:46 +00:00
|
|
|
rstl::vector< rstl::auto_ptr< CModelData > > x730_transitionModels;
|
2022-10-09 05:37:23 +00:00
|
|
|
float x740_staticTimer;
|
|
|
|
float x744_staticOutSpeed;
|
|
|
|
float x748_staticInSpeed;
|
|
|
|
float x74c_visorStaticAlpha;
|
|
|
|
float x750_frozenTimeout;
|
|
|
|
int x754_iceBreakJumps;
|
|
|
|
float x758_frozenTimeoutBias;
|
|
|
|
int x75c_additionalIceBreakJumps;
|
2022-09-19 04:19:46 +00:00
|
|
|
bool x760_controlsFrozen;
|
2022-10-09 05:37:23 +00:00
|
|
|
float x764_controlsFrozenTimeout;
|
2022-09-19 04:19:46 +00:00
|
|
|
rstl::single_ptr< CMorphBall > x768_morphball;
|
|
|
|
rstl::single_ptr< CPlayerCameraBob > x76c_cameraBob;
|
|
|
|
CSfxHandle x770_damageLoopSfx;
|
2022-10-09 05:37:23 +00:00
|
|
|
float x774_samusVoiceTimeout;
|
2022-09-19 04:19:46 +00:00
|
|
|
CSfxHandle x778_dashSfx;
|
|
|
|
CSfxHandle x77c_samusVoiceSfx;
|
|
|
|
int x780_samusVoicePriority;
|
2022-10-09 05:37:23 +00:00
|
|
|
float x784_damageSfxTimer;
|
|
|
|
ushort x788_damageLoopSfxId;
|
|
|
|
float x78c_footstepSfxTimer;
|
2022-09-19 04:19:46 +00:00
|
|
|
EFootstepSfx x790_footstepSfxSel;
|
|
|
|
CVector3f x794_lastVelocity;
|
|
|
|
CVisorSteam x7a0_visorSteam;
|
|
|
|
CPlayerState::EPlayerSuit x7cc_transitionSuit;
|
|
|
|
rstl::auto_ptr< CAnimRes > x7d0_animRes;
|
|
|
|
CVector3f x7d8_beamScale;
|
|
|
|
bool x7e4_;
|
|
|
|
uint x7e8_;
|
|
|
|
CPlayerState::EBeamId x7ec_beam;
|
|
|
|
rstl::single_ptr< CModelData > x7f0_ballTransitionBeamModel;
|
|
|
|
CTransform4f x7f4_gunWorldXf;
|
2022-10-09 05:37:23 +00:00
|
|
|
float x824_transitionFilterTimer;
|
|
|
|
float x828_distanceUnderWater;
|
2022-09-19 04:19:46 +00:00
|
|
|
bool x82c_inLava;
|
|
|
|
TUniqueId x82e_ridingPlatform;
|
|
|
|
TUniqueId x830_playerHint;
|
|
|
|
uint x834_playerHintPriority;
|
|
|
|
rstl::reserved_vector< rstl::pair< uint, TUniqueId >, 32 > x838_playerHints;
|
|
|
|
rstl::reserved_vector< TUniqueId, 32 > x93c_playerHintsToRemove;
|
|
|
|
rstl::reserved_vector< TUniqueId, 32 > x980_playerHintsToAdd;
|
|
|
|
bool x9c4_24_visorChangeRequested : 1;
|
|
|
|
bool x9c4_25_showCrosshairs : 1;
|
|
|
|
bool x9c4_26_ : 1;
|
|
|
|
bool x9c4_27_canEnterMorphBall : 1;
|
|
|
|
bool x9c4_28_canLeaveMorphBall : 1;
|
|
|
|
bool x9c4_29_spiderBallControlXY : 1;
|
|
|
|
bool x9c4_30_controlDirOverride : 1;
|
|
|
|
bool x9c4_31_inWaterMovement : 1;
|
|
|
|
bool x9c5_24_ : 1;
|
|
|
|
bool x9c5_25_splashUpdated : 1;
|
|
|
|
bool x9c5_26_ : 1;
|
|
|
|
bool x9c5_27_camSubmerged : 1;
|
|
|
|
bool x9c5_28_slidingOnWall : 1;
|
|
|
|
bool x9c5_29_hitWall : 1;
|
|
|
|
bool x9c5_30_selectFluidBallSound : 1;
|
|
|
|
bool x9c5_31_stepCameraZBiasDirty : 1;
|
|
|
|
bool x9c6_24_extendTargetDistance : 1;
|
|
|
|
bool x9c6_25_interpolatingControlDir : 1;
|
|
|
|
bool x9c6_26_outOfBallLookAtHint : 1;
|
|
|
|
bool x9c6_27_aimingAtProjectile : 1;
|
|
|
|
bool x9c6_28_aligningGrappleSwingTurn : 1;
|
|
|
|
bool x9c6_29_disableInput : 1;
|
|
|
|
bool x9c6_30_newScanScanning : 1;
|
|
|
|
bool x9c6_31_overrideRadarRadius : 1;
|
|
|
|
bool x9c7_24_noDamageLoopSfx : 1;
|
|
|
|
bool x9c7_25_outOfBallLookAtHintActor : 1;
|
2022-10-09 05:37:23 +00:00
|
|
|
float x9c8_eyeZBias;
|
|
|
|
float x9cc_stepCameraZBias;
|
2022-09-19 04:19:46 +00:00
|
|
|
uint x9d0_bombJumpCount;
|
2022-10-09 05:37:23 +00:00
|
|
|
int x9d4_bombJumpCheckDelayFrames;
|
2022-09-19 04:19:46 +00:00
|
|
|
CVector3f x9d8_controlDirOverrideDir;
|
|
|
|
rstl::reserved_vector< TUniqueId, 5 > x9e4_orbitDisableList;
|
2022-10-09 05:37:23 +00:00
|
|
|
float x9f4_deathTime;
|
|
|
|
float x9f8_controlDirInterpTime;
|
|
|
|
float x9fc_controlDirInterpDur;
|
2022-09-19 04:19:46 +00:00
|
|
|
TUniqueId xa00_deathPowerBomb;
|
2022-10-09 05:37:23 +00:00
|
|
|
float xa04_preThinkDt;
|
2022-09-19 04:19:46 +00:00
|
|
|
CAssetId xa08_steamTextureId;
|
|
|
|
CAssetId xa0c_iceTextureId;
|
|
|
|
uint xa10_envDmgCounter;
|
2022-10-09 05:37:23 +00:00
|
|
|
float xa14_envDmgCameraShakeTimer;
|
|
|
|
float xa18_phazonDamageLag;
|
|
|
|
float xa1c_threatOverride;
|
|
|
|
float xa20_radarXYRadiusOverride;
|
|
|
|
float xa24_radarZRadiusOverride;
|
|
|
|
float xa28_attachedActorStruggle;
|
2022-09-19 04:19:46 +00:00
|
|
|
int xa2c_damageLoopSfxDelayTicks;
|
2022-10-09 05:37:23 +00:00
|
|
|
float xa30_samusExhaustedVoiceTimer;
|
2022-09-19 04:19:46 +00:00
|
|
|
};
|
|
|
|
CHECK_SIZEOF(CPlayer, 0xa38)
|
|
|
|
|
2022-10-09 05:13:17 +00:00
|
|
|
#endif // _CPLAYER
|