mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2025-01-13 15:27:56 +03:00
New "StopActionLoop" input for scripted_sequence
This commit is contained in:
parent
06596695a3
commit
102c7c3015
@ -113,6 +113,9 @@ BEGIN_DATADESC( CAI_ScriptedSequence )
|
|||||||
DEFINE_INPUTFUNC( FIELD_VOID, "MoveToPosition", InputMoveToPosition ),
|
DEFINE_INPUTFUNC( FIELD_VOID, "MoveToPosition", InputMoveToPosition ),
|
||||||
DEFINE_INPUTFUNC( FIELD_VOID, "BeginSequence", InputBeginSequence ),
|
DEFINE_INPUTFUNC( FIELD_VOID, "BeginSequence", InputBeginSequence ),
|
||||||
DEFINE_INPUTFUNC( FIELD_VOID, "CancelSequence", InputCancelSequence ),
|
DEFINE_INPUTFUNC( FIELD_VOID, "CancelSequence", InputCancelSequence ),
|
||||||
|
#ifdef MAPBASE
|
||||||
|
DEFINE_INPUTFUNC( FIELD_VOID, "StopActionLoop", InputStopActionLoop ),
|
||||||
|
#endif
|
||||||
|
|
||||||
DEFINE_KEYFIELD( m_iPlayerDeathBehavior, FIELD_INTEGER, "onplayerdeath" ),
|
DEFINE_KEYFIELD( m_iPlayerDeathBehavior, FIELD_INTEGER, "onplayerdeath" ),
|
||||||
DEFINE_INPUTFUNC( FIELD_VOID, "ScriptPlayerDeath", InputScriptPlayerDeath ),
|
DEFINE_INPUTFUNC( FIELD_VOID, "ScriptPlayerDeath", InputScriptPlayerDeath ),
|
||||||
@ -382,6 +385,14 @@ void CAI_ScriptedSequence::InputSetTarget( inputdata_t &inputdata )
|
|||||||
m_iszEntity = AllocPooledString(inputdata.value.String());
|
m_iszEntity = AllocPooledString(inputdata.value.String());
|
||||||
m_hTargetEnt = NULL;
|
m_hTargetEnt = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
// Purpose:
|
||||||
|
//-----------------------------------------------------------------------------
|
||||||
|
void CAI_ScriptedSequence::InputStopActionLoop( inputdata_t &inputdata )
|
||||||
|
{
|
||||||
|
StopActionLoop( false );
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
@ -112,6 +112,7 @@ public:
|
|||||||
void InputCancelSequence( inputdata_t &inputdata );
|
void InputCancelSequence( inputdata_t &inputdata );
|
||||||
void InputMoveToPosition( inputdata_t &inputdata );
|
void InputMoveToPosition( inputdata_t &inputdata );
|
||||||
#ifdef MAPBASE
|
#ifdef MAPBASE
|
||||||
|
void InputStopActionLoop( inputdata_t &inputdata );
|
||||||
void InputSetTarget( inputdata_t &inputdata );
|
void InputSetTarget( inputdata_t &inputdata );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user