ja2-stracciatella icon indicating copy to clipboard operation
ja2-stracciatella copied to clipboard

Enemy in a certain prone position becomes invulnerable

Open wertyzp opened this issue 3 years ago • 5 comments

master branch not sure if this happens in vanilla 2022-09-25t15-23-24z-random.zip

savegame is attached try attacking enemy when he doesn't see you, always misses, but what is interesting, bullet flies to his position with no hit

wertyzp avatar Oct 20 '22 14:10 wertyzp

I didn't associate it with being prone, but I did notice this first-miss thing already when testing for 0.19 — it's definitely not a recent thing.

lynxlynxlynx avatar Oct 20 '22 17:10 lynxlynxlynx

yes 0.19 has same bug this is not the first-miss, any shot on such enemy will miss, until he changes his position

wertyzp avatar Oct 20 '22 21:10 wertyzp

For me it was only about always missing the first shot, regardless of aim intensity. I don't remember if the displayed % was off as well. It occurred rarely enough that I didn't bother making a note.

lynxlynxlynx avatar Oct 20 '22 21:10 lynxlynxlynx

This looks like a duplicate of #98. The guy in question (ID 22) is at gridno 11940, however gpWorldLevelData[11940].pStructureHead is 0, which makes it impossible to hit him. I have no idea how this can happen.

momoko-h avatar Oct 21 '22 16:10 momoko-h

I can only see it potentially happening in DeleteStructureFromTile, AddStructureToTile would crash sooner if it tried. Looks pretty convoluted though.

lynxlynxlynx avatar Oct 21 '22 20:10 lynxlynxlynx