OpenGothic icon indicating copy to clipboard operation
OpenGothic copied to clipboard

Monsters lay on the floor after falling off a cliff

Open Abendlied opened this issue 1 year ago • 1 comments

Game: Gothic II NotR

Short Description/Observation: Monsters lay on the floor after falling off a cliff, taking damage from the fall. They only stand up after being attacked. Laying down prevents monsters from attacking approaching player.

Expectation: Monsters should stand up or stay up after the fall and be aggressive towards approaching player.

Steps to reproduce: Can be observed on cliffs with monsters above, e.g.

  • Khorinis north coast (between Jack's Lighthouse and Vino's wine cave).
  • Jharkendar southwest area near hermit's house

Additional Info: image

Abendlied avatar May 14 '24 10:05 Abendlied

savegame: save_slot_20.sav.tar.gz

video (4 sec, 1.4MiB): https://github.com/Try/OpenGothic/assets/86957596/828c647a-f7d3-4199-9a17-21307deeb61c

Abendlied avatar May 21 '24 15:05 Abendlied

Hi, @Abendlied !

After investigating a testing vanilla a bit, can say it's probably doesn't have "standup" mechanic in place, but instead npc switches to some routine. In case of combat: snapper fall -> resets ai-state -> sees player immediately -> starts attacking. And start of stack is what triggers npc to stanup. In case of 'random' fall: snapper(or other monster) returns back to ZS_MM_Rtn_Rest and returns to spawn point.

Also vanilla carefully assign C_Npc::wp for any npc, except the hero.

So I fix wp assignment and restarting AI-routine. Rest seem to work fine already. However note, that changes will be effective, when npc will fall next time, and won't affect npc's in saved games.

Try avatar Aug 27 '24 22:08 Try