aboutsummaryrefslogtreecommitdiff
path: root/src/entities/antifaShip.h
diff options
context:
space:
mode:
authornathansmithsmith <nathansmith7@mailfence.com>2023-10-13 21:53:02 -0600
committernathansmithsmith <nathansmith7@mailfence.com>2023-10-13 21:53:02 -0600
commitb3bf954836efabd77921a92b153b7098c4481aa4 (patch)
tree58b5d152267cb42f17f8703e986888b0d88d61f9 /src/entities/antifaShip.h
parentf80670a77eb2680220aad131b62ed2b9cdfdfa2a (diff)
Untested target locking code (:
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);