aboutsummaryrefslogtreecommitdiff
path: root/src/entities/antifaShip.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/entities/antifaShip.h')
-rw-r--r--src/entities/antifaShip.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/entities/antifaShip.h b/src/entities/antifaShip.h
index c272865..54474ad 100644
--- a/src/entities/antifaShip.h
+++ b/src/entities/antifaShip.h
@@ -9,6 +9,9 @@
#define ANTIFA_BULLET_COOLDOWN 0.5
#define ANTIFA_DRAW_BULLET_FOR 0.05
+// Auto target shit.
+#define ANTIFA_START_AUTO_TARGET_MAX 1.0 // How far off auto target can be entail it drops.
+
typedef struct AntifaShip {
Vector2 lastMouse;
float forwardSpeed;
@@ -18,6 +21,9 @@ typedef struct AntifaShip {
Bullet lastBulletShot;
Vector3 gunTarget;
bool doAutoTarget;
+
+ EntityId targetedEntityId;
+ EntityFingerprint targetedEntityFingerprint;
} AntifaShip;
void initAntifaShip(Entity * entity, Game * game);