Open GoogleCodeExporter opened 8 years ago
This exists in 0.9.18 too, and was deliberate.
The AI used to think crates were solid land, and when collecting a crate that
was on the edge of something, esp if he had to drop down or jump to get it,
would fall in the water and drown.
In 0.9.18, a bit was added to tag current hedgehog. This allowed preventing
grenades from being "thrown" into hedgehogs and allowed removing some prior
workarounds.
This bit was extended to crates too, so that the AI would ignore them as valid
terrain.
This prevents the AI from drowning or injuring himself in crate collection, but
does mean he doesn't realise they block his shots.
A special case could be added in shot tracing so that the magic bit is ignored
in shot tracing when distance from hedgehog's current position is greater than
a certain amount (similar to the "test excluding me" thing).
It hasn't been too high a priority since, well, if he's using a bazooka or
shotgun, he blows up the crate, which is denying it to the player and not too
bad a result. Plus is rare.
Original comment by kyberneticist@gmail.com
on 22 Feb 2013 at 2:14
[deleted comment]
Many thanks for the detailed explanation - very interesting point about the
drowning! :)
Had that AI hedgehog used a shogun or bazooka however (in my screenshot
scenario), the result may have been less fortunate due to wind direction?
I do like your workaround suggestion although will accept this isn't a frequent
event.
Original comment by jimithebear
on 8 Mar 2013 at 12:37
Original issue reported on code.google.com by
jimithebear
on 22 Feb 2013 at 12:47Attachments: