Fix forced interaction partners being made to face each other even when interaction doesn't require it

This commit is contained in:
ALLEN-PC\acj30 2025-01-02 11:00:30 -06:00 committed by Blixibon
parent 0ec851394f
commit d51d44eb73

View File

@ -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();