Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

Commit

Permalink
Fix bigmomma node wait
Browse files Browse the repository at this point in the history
  • Loading branch information
FreeSlave authored and nekonomicon committed Jul 24, 2020
1 parent a091e8c commit 54181ad
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dlls/bigmomma.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,7 @@ void CBigMomma::StartTask( Task_t *pTask )
TaskComplete();
break;
case TASK_WAIT_NODE:
m_flWait = gpGlobals->time + GetNodeDelay();
m_flWaitFinished = gpGlobals->time + GetNodeDelay();
if( m_hTargetEnt->pev->spawnflags & SF_INFOBM_WAIT )
ALERT( at_aiconsole, "BM: Wait at node %s forever\n", STRING( pev->netname ) );
else
Expand Down Expand Up @@ -1007,8 +1007,10 @@ void CBigMomma::RunTask( Task_t *pTask )
return;

if( gpGlobals->time > m_flWaitFinished )
{
TaskComplete();
ALERT( at_aiconsole, "BM: The WAIT is over!\n" );
ALERT( at_aiconsole, "BM: The WAIT is over!\n" );
}
break;
case TASK_PLAY_NODE_PRESEQUENCE:
case TASK_PLAY_NODE_SEQUENCE:
Expand Down

0 comments on commit 54181ad

Please sign in to comment.