mirror of
https://github.com/celisej567/source-sdk-2013.git
synced 2026-09-23 20:09:45 +03:00
Added OnEntrySequence and OnActionSequence for scripted_sequence
This commit is contained in:
@@ -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 );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user