Currently my AI will react to projectiles “exploding” next to them, and also to seeing a player, hearing footsteps etc.
However I still am not accounting for projectiles that fly past them. This leads to some odd gameplay where NPC’s will just ignore a bullet flying past their head.
The MakeNoise() function i assume is not appropriate for this. Calling it every tick from projectiles seems like overkill. Anyone know of a better approach?