Watch the dude move around on his own. You will notice he pretty much never does the same thing twice. He may get stuck, so I need to work on this. Some other ideas that may be implemented: - remove turning back because character ends up in the same general direction - in gunfights, he should strafe to avoid gunfire - maybe a suspicion level indicator in the player GUI for a hiding and sneaking level. The more suspicion, the more the enemy looks around.
I got lazy on the map and decided to use one from my tank game. Use scripts inside with permission and credit, but @tim556688 you are free to use anything here without credit. The map works with a hitbox and a skin. You see the skin and there are also elements like the trees that go above the player's head. The hitbox is ghosted.