From 54102a84f94f9f014e615ca4ae77a9cf5bdeb3ed Mon Sep 17 00:00:00 2001 From: BoroBongo Date: Sun, 22 Nov 2026 18:30:44 +0000 Subject: [PATCH] fix: NPCs wait while a video plays - the line after PlayVideo (G2 Xardas' addon intro) no longer covers the video with its subtitle The cinema pauses the world (timeScale 0) like the engine, where the video blocks the game, but AiHandler kept starting queued actions. DIA_Addon_Xardas_AddonIntro plays Intro_ADDON and then a line: it started during the video, the paused world never ended it, so its subtitle stayed on the screen in front of the video. The AI now waits until the video ends. --- Assets/Gothic-Core/Scripts/Adapters/Npc/AiHandler.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Assets/Gothic-Core/Scripts/Adapters/Npc/AiHandler.cs b/Assets/Gothic-Core/Scripts/Adapters/Npc/AiHandler.cs index 3290640ef..c394afd71 100644 --- a/Assets/Gothic-Core/Scripts/Adapters/Npc/AiHandler.cs +++ b/Assets/Gothic-Core/Scripts/Adapters/Npc/AiHandler.cs @@ -132,6 +132,12 @@ private void StartDead() /// private void Update() { + // A video pauses the world (VRCinema: timeScale 0), like the engine, where it blocks the game. The AI waits + // too: the line after PlayVideo (G2 Xardas, DIA_Addon_Xardas_AddonIntro) started during the video and its + // subtitle covered the screen the whole video, as the paused world never ended the line. + if (Time.timeScale == 0f) + return; + // If NPC/Monster is dead, only play out the already queued animations (e.g. the dying animation // enqueued by FightService), then stop any further process logic. if (Properties.IsDead)