feat: implemented recoil
This commit is contained in:
parent
a7b3f97b3b
commit
58e90780d5
6 changed files with 56 additions and 7 deletions
|
|
@ -30,6 +30,13 @@ public:
|
|||
virtual void notify_selected() override;
|
||||
bool is_animating() const;
|
||||
|
||||
void set_recoil_radians(float value);
|
||||
float get_recoil_radians() const;
|
||||
void set_ads_factor(float value);
|
||||
float get_ads_factor() const;
|
||||
void set_run_factor(float value);
|
||||
float get_run_factor() const;
|
||||
|
||||
private:
|
||||
float ads_factor{ 0.5f };
|
||||
float run_factor{ 1.5f };
|
||||
|
|
@ -37,6 +44,9 @@ private:
|
|||
bool in_alt_mode{ false };
|
||||
bool running{ false };
|
||||
|
||||
float recoil_force{ 3.f };
|
||||
float recoil_time{ 0.05f };
|
||||
|
||||
HitscanMuzzle *muzzle{ nullptr };
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue