feat: added sound events for enemy awareness
This commit is contained in:
parent
1373656f90
commit
66aede32bd
15 changed files with 234 additions and 16 deletions
|
|
@ -2,6 +2,7 @@
|
|||
#define HITSCAN_MUZZLE_H
|
||||
|
||||
#include "scene/3d/physics/ray_cast_3d.h"
|
||||
class MuzzleEffect;
|
||||
|
||||
class HitscanMuzzle : public RayCast3D {
|
||||
GDCLASS(HitscanMuzzle, RayCast3D);
|
||||
|
|
@ -21,11 +22,14 @@ public:
|
|||
int get_damage() const;
|
||||
void set_ray_count(int amount);
|
||||
int get_ray_count() const;
|
||||
void set_muzzle_effect(MuzzleEffect *effect);
|
||||
MuzzleEffect *get_muzzle_effect() const;
|
||||
|
||||
private:
|
||||
float spread{ 0.001f };
|
||||
int damage{ 1 };
|
||||
int ray_count{ 1 };
|
||||
MuzzleEffect *muzzle_effect{ nullptr };
|
||||
|
||||
Transform3D home_transform{};
|
||||
Ref<PackedScene> impact_effect{};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue