cxong / cdogs-sdl

Classic overhead run-and-gun game
https://cxong.github.io/cdogs-sdl/
GNU General Public License v2.0
895 stars 115 forks source link

Dangers awareness for AI #798

Closed PavanLuca closed 1 year ago

PavanLuca commented 1 year ago

Enemies, allies and neutral or harmless beings always suicide or get hurt by running in the middle of shootouts, fire, poison or explosions. Add a danger detection system to make them react accordingly, for example when hearing shots or see a gunned, dangerous or scary being they run away and when seeing fire they stop running to avoid stepping on it and simply run on the opposite direction, that's anyway a wise behavior good for almost any situation.

cxong commented 1 year ago

Dup of #24