I'm creating a game,and I'm new to these Programming stuff.I would like to create an good(or hard)Ai for my game How do I create an Ai that can do these things:
1.When it sees an enemy it will shoot it.
2.When getting shot it will take cover or run away/retreat.
3.Will NOT shoot allies.(If on Team games)
4.When an Ally is near and getting shot the Ai teammate will help.
5.Can camp and/or hide from the enemy or ambush an enemy.
6.Will protect and stay in the base if there are no one guarding it(On Kill the Base mode)
7.Will capture the enemy flag and bring it to back to base.(On capture the flag mode)
I'm planning on creating many game modes,like:
Deathmatch - No teams just kill anyone you see.
Team Deathmatch - Up to 4 teams.
Defend the Base - Defend the base against waves/hordes of zombies.
Kill the Base - Kill/Destroy the enemy base and not letting your get destroyed.
Capture the Flag - Capture the enemies Flag and bring it back to your base.
Elimination - Each player has there set of lives if it gets to 0 you lose,Team or No teams