From b3bf954836efabd77921a92b153b7098c4481aa4 Mon Sep 17 00:00:00 2001 From: nathansmithsmith Date: Fri, 13 Oct 2023 21:53:02 -0600 Subject: Untested target locking code (: --- src/entities/antifaShip.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/entities/antifaShip.h') 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); -- cgit v1.2.3