mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-02-23 20:21:08 +03:00
Fix forced interaction partners being made to face each other even when interaction doesn't require it
This commit is contained in:
parent
0ec851394f
commit
d51d44eb73
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user