mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-02-24 12:41:09 +03:00
Fix antlions using wrong angles for dynamic interactions
This commit is contained in:
parent
f5db760a66
commit
e954f00f79
@ -378,13 +378,14 @@ void CNPC_Antlion::Spawn( void )
|
|||||||
|
|
||||||
sInteraction01.vecRelativeOrigin = Vector(224, 0, 0);
|
sInteraction01.vecRelativeOrigin = Vector(224, 0, 0);
|
||||||
sInteraction01.angRelativeAngles = QAngle(0, 180, 0);
|
sInteraction01.angRelativeAngles = QAngle(0, 180, 0);
|
||||||
//sInteraction01.iFlags |= SCNPC_FLAG_TEST_OTHER_ANGLES;
|
sInteraction01.iFlags |= SCNPC_FLAG_TEST_OTHER_ANGLES;
|
||||||
sInteraction01.iFlags |= SCNPC_FLAG_TEST_END_POSITION;
|
sInteraction01.iFlags |= SCNPC_FLAG_TEST_END_POSITION;
|
||||||
sInteraction01.vecRelativeEndPos = Vector(312, -10, 0);
|
sInteraction01.vecRelativeEndPos = Vector(312, -10, 0);
|
||||||
sInteraction01.iTriggerMethod = SNPCINT_AUTOMATIC_IN_COMBAT;
|
sInteraction01.iTriggerMethod = SNPCINT_AUTOMATIC_IN_COMBAT;
|
||||||
sInteraction01.flDelay = 15.0f;
|
sInteraction01.flDelay = 15.0f;
|
||||||
sInteraction01.iFlags |= SCNPC_FLAG_MAPBASE_ADDITION;
|
sInteraction01.iFlags |= SCNPC_FLAG_MAPBASE_ADDITION;
|
||||||
sInteraction01.flDistSqr = (8 * 8);
|
sInteraction01.flDistSqr = (8 * 8);
|
||||||
|
sInteraction01.flMaxAngleDiff = 180.0f; // Initiate from any angle
|
||||||
|
|
||||||
|
|
||||||
ScriptedNPCInteraction_t sInteraction02;
|
ScriptedNPCInteraction_t sInteraction02;
|
||||||
@ -393,11 +394,12 @@ void CNPC_Antlion::Spawn( void )
|
|||||||
|
|
||||||
sInteraction02.vecRelativeOrigin = Vector(64, 0, 0);
|
sInteraction02.vecRelativeOrigin = Vector(64, 0, 0);
|
||||||
sInteraction02.angRelativeAngles = QAngle(0, 180, 0);
|
sInteraction02.angRelativeAngles = QAngle(0, 180, 0);
|
||||||
//sInteraction01.iFlags |= SCNPC_FLAG_TEST_OTHER_ANGLES;
|
sInteraction02.iFlags |= SCNPC_FLAG_TEST_OTHER_ANGLES;
|
||||||
sInteraction02.iTriggerMethod = SNPCINT_AUTOMATIC_IN_COMBAT;
|
sInteraction02.iTriggerMethod = SNPCINT_AUTOMATIC_IN_COMBAT;
|
||||||
sInteraction02.flDelay = 7.5f;
|
sInteraction02.flDelay = 7.5f;
|
||||||
sInteraction02.iFlags |= SCNPC_FLAG_MAPBASE_ADDITION;
|
sInteraction02.iFlags |= SCNPC_FLAG_MAPBASE_ADDITION;
|
||||||
sInteraction02.flDistSqr = (8 * 8);
|
sInteraction02.flDistSqr = (8 * 8);
|
||||||
|
sInteraction02.flMaxAngleDiff = 180.0f; // Initiate from any angle
|
||||||
|
|
||||||
|
|
||||||
AddScriptedNPCInteraction(&sInteraction01);
|
AddScriptedNPCInteraction(&sInteraction01);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user