New "StopActionLoop" input for scripted_sequence

This commit is contained in:
ALLEN-PC\acj30 2024-08-10 13:49:19 -05:00
parent 06596695a3
commit 102c7c3015
2 changed files with 12 additions and 0 deletions

View File

@ -113,6 +113,9 @@ BEGIN_DATADESC( CAI_ScriptedSequence )
DEFINE_INPUTFUNC( FIELD_VOID, "MoveToPosition", InputMoveToPosition ),
DEFINE_INPUTFUNC( FIELD_VOID, "BeginSequence", InputBeginSequence ),
DEFINE_INPUTFUNC( FIELD_VOID, "CancelSequence", InputCancelSequence ),
#ifdef MAPBASE
DEFINE_INPUTFUNC( FIELD_VOID, "StopActionLoop", InputStopActionLoop ),
#endif
DEFINE_KEYFIELD( m_iPlayerDeathBehavior, FIELD_INTEGER, "onplayerdeath" ),
DEFINE_INPUTFUNC( FIELD_VOID, "ScriptPlayerDeath", InputScriptPlayerDeath ),
@ -382,6 +385,14 @@ void CAI_ScriptedSequence::InputSetTarget( inputdata_t &inputdata )
m_iszEntity = AllocPooledString(inputdata.value.String());
m_hTargetEnt = NULL;
}
//-----------------------------------------------------------------------------
// Purpose:
//-----------------------------------------------------------------------------
void CAI_ScriptedSequence::InputStopActionLoop( inputdata_t &inputdata )
{
StopActionLoop( false );
}
#endif

View File

@ -112,6 +112,7 @@ public:
void InputCancelSequence( inputdata_t &inputdata );
void InputMoveToPosition( inputdata_t &inputdata );
#ifdef MAPBASE
void InputStopActionLoop( inputdata_t &inputdata );
void InputSetTarget( inputdata_t &inputdata );
#endif