From d51d44eb73bb9dcccff971ffa688bb722c1893da Mon Sep 17 00:00:00 2001 From: "ALLEN-PC\\acj30" Date: Thu, 2 Jan 2025 11:00:30 -0600 Subject: [PATCH] Fix forced interaction partners being made to face each other even when interaction doesn't require it --- sp/src/game/server/ai_basenpc_schedule.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sp/src/game/server/ai_basenpc_schedule.cpp b/sp/src/game/server/ai_basenpc_schedule.cpp index 5f57b51d..56e20e03 100644 --- a/sp/src/game/server/ai_basenpc_schedule.cpp +++ b/sp/src/game/server/ai_basenpc_schedule.cpp @@ -3506,6 +3506,12 @@ void CAI_BaseNPC::RunTask( const Task_t *pTask ) // as this should only run with the NPC "receiving" the interaction ScriptedNPCInteraction_t *pInteraction = m_hForcedInteractionPartner->GetRunningDynamicInteraction(); + if ( !(pInteraction->iFlags & SCNPC_FLAG_TEST_OTHER_ANGLES) ) + { + TaskComplete(); + return; + } + // Get our target's origin Vector vecTarget = m_hForcedInteractionPartner->GetAbsOrigin();