diff options
author | nathansmithsmith <nathansmith7@mailfence.com> | 2023-08-18 00:18:53 -0600 |
---|---|---|
committer | nathansmithsmith <nathansmith7@mailfence.com> | 2023-08-18 00:18:53 -0600 |
commit | f98e6d4ea4ee52b298a7d9a9731da4c020bb4dfe (patch) | |
tree | fdb76e94e4d00cbe2ab652a9f65d6afaad779552 /src/entities/caporale.h | |
parent | 87b86d92c27a6fb83d0d09365a36d8a98ba0b24b (diff) |
Some aim thingy
Diffstat (limited to 'src/entities/caporale.h')
-rw-r--r-- | src/entities/caporale.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/entities/caporale.h b/src/entities/caporale.h index e855b30..3999436 100644 --- a/src/entities/caporale.h +++ b/src/entities/caporale.h @@ -1,11 +1,29 @@ #include "gameCommon.h" #include "entity.h" +#include "PID.h" +#include <raylib.h> #ifndef CAPORALE_H #define CAPORALE_H +#define CAPORALE_COOLDOWN 0.5 +#define CAPORALE_BULLET_DAMAGE 0.01 +#define CAPORALE_TARGET_POINTER_DIS 10.0 + typedef struct Caporale { EntityFlyToPointInfo flyToPlayer; + double timeSinceLastShot; + + bool initTarget; + Vector3 targetSetpoint; + Vector3 target; + Vector3 targetVelocity; + + PID aimXPID; + PID aimYPID; + PID aimZPID; + + Ray ray; } Caporale; void initCaporale(Entity * entity, Game * game); |