OpenGothic icon indicating copy to clipboard operation
OpenGothic copied to clipboard

Implement ai_quicklook

Open mmind opened this issue 10 months ago • 1 comments

The quicklook function is meant to have the Npc just move its head to the player for two seconds.

Testcase in vanilla Gothic 1 was at the exchange place, while Diego walks back to the old camp. Stand next to where he is walking and pick up one of the berries, arrows, etc. Diego will continue walking but turn his head over for those 2 seconds.

So the implementation does the same, not changing the currentLookAtNpc but storing the temporary one in a separate variable for the duration of the action. That way this cinematic should not influence any other parts or save/load mechanisms.

mmind avatar Feb 15 '25 19:02 mmind

not changing the currentLookAtNpc but storing the temporary ... not influence any other parts or save/load mechanisms.

Unfortunately, you still need to store those in save file, as it's a part of npc state. Here opengothic is somewhat different to vanilla, by keeping as much state of the game as possible in the save.

ha, you're right ... just checked by causing a quicklook and saving while it is ongoing. After loading, Diego keeps the turned head forever - he must get quite the neck-pain from that :-)

mmind avatar Feb 21 '25 22:02 mmind