Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(2 edits) (+1)

Hunter AI is complete now

The basic search, investigate and shoot functions work.

I'll make it better over time, adding newer search methods, checking if the player switches props etc

Right now, the AI has 3 phases

Checking all the Props

The AI will go to the nearest prop (this includes the player) and shoot it a couple of times before moving on to the next.

If the AI can't reach the prop but has a line of sight, it will shoot from that position.

If all the props have been investigated, the AI will now chase after the player (wherever they are).


Investigating Noise

A timer has been set to reveal the player's location every 50 seconds. This will report a noise event to the AI. The AI will abandon the check for props and immediately go to the location where the noise was reported from.


AI Caught the player moving

Some modification needed here as it's only checking for speed and not intentional input.

If the player happens to move in the peripheral vision of the AI, it will abandon everything and chase after the player.