27 lines
567 B
C++
27 lines
567 B
C++
#ifndef WEAPONS_RIFLE_H
|
|
#define WEAPONS_RIFLE_H
|
|
|
|
#include "wave_survival/player_camera.h"
|
|
#include "wave_survival/weapon_base.h"
|
|
class PlayerBody;
|
|
|
|
class Rifle : public WeaponBase {
|
|
GDCLASS(Rifle, WeaponBase);
|
|
static void _bind_methods();
|
|
void on_primary_fire(bool down);
|
|
void on_alt_mode(bool alt_mode);
|
|
void on_animation_changed(String new_anim);
|
|
void ready();
|
|
void process(double delta);
|
|
|
|
public:
|
|
void _notification(int what);
|
|
|
|
private:
|
|
float ads_factor{ 0.5f };
|
|
bool request_alt_mode{ false };
|
|
bool in_alt_mode{ false };
|
|
};
|
|
|
|
#endif // !WEAPONS_RIFLE_H
|