feat: implemented partial revolver reload
This commit is contained in:
parent
7e3afd6c64
commit
34db607145
2 changed files with 29 additions and 9 deletions
|
|
@ -11,6 +11,7 @@ class Revolver : public WeaponBase {
|
|||
void start_running();
|
||||
void stop_running();
|
||||
void start_reloading();
|
||||
void stop_reloading();
|
||||
void interrupt_reloading();
|
||||
void interrupt_running();
|
||||
void play_equip_anim();
|
||||
|
|
@ -19,6 +20,7 @@ class Revolver : public WeaponBase {
|
|||
void on_primary_fire(bool pressed);
|
||||
void on_alt_mode(bool pressed);
|
||||
void on_reload();
|
||||
void on_animation_changed(String old_anim, String new_anim);
|
||||
void on_animation_finished(String old_anim);
|
||||
void ready();
|
||||
void process(double delta);
|
||||
|
|
@ -47,7 +49,7 @@ private:
|
|||
double recoil_time{ 0.1 };
|
||||
double recoil_timer{ 0.0 };
|
||||
|
||||
double run_animation_delay{ 0.8 };
|
||||
double run_animation_delay{ 0.4 };
|
||||
double run_animation_timer{ 0.0 };
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue