From f98e6d4ea4ee52b298a7d9a9731da4c020bb4dfe Mon Sep 17 00:00:00 2001 From: nathansmithsmith Date: Fri, 18 Aug 2023 00:18:53 -0600 Subject: Some aim thingy --- src/entities/caporale.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/entities/caporale.h') 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 #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); -- cgit v1.2.3