05.23Grenade AI
Ok, basically a long time ago I was reading an article on AI and I got inspired. So I threw and AI engine together. That was a long time ago, and now I’ve come back and worked on it some more and I decided to release it.
Lets start with a screen shot: (click to enlarge)

Basically, you will throw grenades and then the AI act accordingly.
First, they may see the grenade or they may not see it. If one does, he will decide if he has a better chance of surviving by running out of the blast radius or by hiding behind a wall. At the same time he will shout (and warn) other AI that are in shouting distance. In the screenshot above, the AI where all the lines originate from was apparently the only one who saw the grenade land. All the green lines point to the people who heard him yell “Grenade!†and will now act accordingly (they will run or hid. They may also warn more AI they didn’t hear the first shout.). The black line indicates where the AI decided to hide and the blue line is the actual wall he’s hiding behind. Some times an AI may think it better to just run from the blast radius, in which case there would not be a line for that. Oh yes, and the circle is the blast radius.
Try throwing just one grenade at a time and then try throwing multiple. It’s interesting what they do. Feel free to modify and make it better. Please share if you do! It’s open source.
You can press ENTER to turn lines off and SPACE to restart/reset.
Download .gm6 (edditable)
Download .exe (If you don’t know which one to download download this one)
It don’t think it will work on any operating system other then Windows. You could try it though.






Leave a Reply