feat: player body now handles movement fov adjustment

This commit is contained in:
Sara 2025-08-11 17:59:31 +02:00
parent b29966ccf7
commit 6c5a24e374
7 changed files with 62 additions and 43 deletions

View file

@ -27,7 +27,6 @@ public:
void _notification(int what);
virtual PackedStringArray get_configuration_warnings() const override;
virtual bool allows_swapping() const override;
virtual bool allows_running() const override;
bool run_requested() const;
virtual void notify_selected() override;
@ -36,8 +35,6 @@ public:
void set_ads_factor(float value);
float get_ads_factor() const;
void set_run_factor(float value);
float get_run_factor() const;
void set_recoil_force(float value);
float get_recoil_force() const;
void set_recoil_time(float value);
@ -45,7 +42,6 @@ public:
private:
float ads_factor{ 0.5f };
float run_factor{ 1.5f };
bool request_alt_mode{ false };
bool in_alt_mode{ false };
bool running{ false };
@ -53,6 +49,8 @@ private:
float recoil_force{ 3.f };
float recoil_time{ 0.05f };
double fov{ 1.0 };
HitscanMuzzle *muzzle{ nullptr };
};