The core of the in-game A.I can be broken down into 3 smaller parts:
Path-finding is done by setting multiples waypoints on the level. Depending on the level of difficulty or the role of the character, the character may either move along a fixed waypoint or randomly travel from 1 waypoint to another.
Triggers are like the senses of the AI character. The character will respond to the environment based on the triggers. The AI will have multiple triggers like proximity and visual triggers.
Proximity triggers act like ears for the character, when the player makes a noise when the character is close-by, the character will be alerted and move towards the source of the noise. Visual triggers are like the eyes of the character, when the player moves in the line of sight of the character, alert will be raised and a gun fight may break out.
Combat triggers are combat thoughts of the character. Once in combat, the character will find appropriate places to hide and shoot at the player.
Multiple AI characters will work together in combat to try to corner and pin down the player. These tactical moves are also part of the combat triggers.
Recent Comments