Added OnEntrySequence and OnActionSequence for scripted_sequence

This commit is contained in:
Blixibon
2021-05-27 09:53:31 -05:00
parent 7a87bfdf5e
commit c48428b678
3 changed files with 22 additions and 0 deletions

View File

@@ -3979,10 +3979,16 @@ void CAI_BaseNPC::RunTask( const Task_t *pTask )
// If we have an entry, we have to play it first
if ( m_hCine->m_iszEntry != NULL_STRING )
{
#ifdef MAPBASE
m_hCine->OnEntrySequence( this );
#endif
m_hCine->StartSequence( (CAI_BaseNPC *)this, m_hCine->m_iszEntry, true );
}
else
{
#ifdef MAPBASE
m_hCine->OnActionSequence( this );
#endif
m_hCine->StartSequence( (CAI_BaseNPC *)this, m_hCine->m_iszPlay, true );
}