Add CPlayerGun::CMotionState::Update

Former-commit-id: ac068fd97d
This commit is contained in:
Henrique Gemignani Passos Lima
2022-10-09 17:31:10 +03:00
parent ac0e3ef534
commit ac84b38d5d
4 changed files with 82 additions and 5 deletions

View File

@@ -248,12 +248,13 @@ private:
, x20_state(kMS_Zero)
, x24_fireState(kFS_NotFiring) {}
static void SetExtendDistance(float d) { kGunExtendDistance = d; }
static void SetExtendDistance(float d) { gGunExtendDistance = d; }
void SetState(EMotionState state) { x20_state = state; }
void Update(bool firing, float dt, CTransform4f& xf, CStateManager& mgr);
private:
static float gGunExtendDistance;
bool x0_24_extendParabola : 1;
float x4_extendParabolaDelayTimer;
float x8_fireTime;
@@ -264,8 +265,6 @@ private:
float x1c_endRotation;
EMotionState x20_state;
EFireState x24_fireState;
static float kGunExtendDistance;
};
CActorLights x0_lights;