Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Assets/Gothic-Core/Scripts/Adapters/Npc/AiHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,12 @@ private void StartDead()
/// </summary>
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)
Expand Down