mirror of https://github.com/FWGS/hlsdk-xash3d
Fix bigmomma node wait
This commit is contained in:
parent
a091e8ce55
commit
54181adc8e
|
@ -931,7 +931,7 @@ void CBigMomma::StartTask( Task_t *pTask )
|
||||||
TaskComplete();
|
TaskComplete();
|
||||||
break;
|
break;
|
||||||
case TASK_WAIT_NODE:
|
case TASK_WAIT_NODE:
|
||||||
m_flWait = gpGlobals->time + GetNodeDelay();
|
m_flWaitFinished = gpGlobals->time + GetNodeDelay();
|
||||||
if( m_hTargetEnt->pev->spawnflags & SF_INFOBM_WAIT )
|
if( m_hTargetEnt->pev->spawnflags & SF_INFOBM_WAIT )
|
||||||
ALERT( at_aiconsole, "BM: Wait at node %s forever\n", STRING( pev->netname ) );
|
ALERT( at_aiconsole, "BM: Wait at node %s forever\n", STRING( pev->netname ) );
|
||||||
else
|
else
|
||||||
|
@ -1007,8 +1007,10 @@ void CBigMomma::RunTask( Task_t *pTask )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if( gpGlobals->time > m_flWaitFinished )
|
if( gpGlobals->time > m_flWaitFinished )
|
||||||
|
{
|
||||||
TaskComplete();
|
TaskComplete();
|
||||||
ALERT( at_aiconsole, "BM: The WAIT is over!\n" );
|
ALERT( at_aiconsole, "BM: The WAIT is over!\n" );
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case TASK_PLAY_NODE_PRESEQUENCE:
|
case TASK_PLAY_NODE_PRESEQUENCE:
|
||||||
case TASK_PLAY_NODE_SEQUENCE:
|
case TASK_PLAY_NODE_SEQUENCE:
|
||||||
|
|
Loading…
Reference in New Issue