mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-23 13:14:51 +00:00
parent
e13192ee20
commit
fd613ebed7
@ -1946,7 +1946,7 @@ void CHFGrunt :: HandleAnimEvent( MonsterEvent_t *pEvent )
|
||||
SENTENCEG_PlayRndSz(ENT(pev), SentenceByNumber(FGRUNT_SENT_ALERT), FGRUNT_SENTENCE_VOLUME, ATTN_NORM, 0, m_voicePitch);
|
||||
JustSpoke();
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
|
@ -390,7 +390,7 @@ void CStrooper::HandleAnimEvent(MonsterEvent_t *pEvent)
|
||||
SENTENCEG_PlayRndSz(ENT(pev), "ST_ALERT", STROOPER_SENTENCE_VOLUME, STROOPER_ATTN, 0, m_voicePitch);
|
||||
JustSpoke();
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
|
@ -1010,16 +1010,19 @@ void CVoltigore::StartTask(Task_t *pTask)
|
||||
}
|
||||
break;
|
||||
case TASK_VOLTIGORE_GET_PATH_TO_ENEMY_CORPSE:
|
||||
UTIL_MakeVectors( pev->angles );
|
||||
if( BuildRoute( m_vecEnemyLKP - gpGlobals->v_forward * 50, bits_MF_TO_LOCATION, NULL ) )
|
||||
{
|
||||
TaskComplete();
|
||||
}
|
||||
else
|
||||
{
|
||||
ALERT( at_aiconsole, "VoltigoreGetPathToEnemyCorpse failed!!\n" );
|
||||
TaskFail();
|
||||
UTIL_MakeVectors( pev->angles );
|
||||
if( BuildRoute( m_vecEnemyLKP - gpGlobals->v_forward * 50, bits_MF_TO_LOCATION, NULL ) )
|
||||
{
|
||||
TaskComplete();
|
||||
}
|
||||
else
|
||||
{
|
||||
ALERT( at_aiconsole, "VoltigoreGetPathToEnemyCorpse failed!!\n" );
|
||||
TaskFail();
|
||||
}
|
||||
}
|
||||
break;
|
||||
default:
|
||||
CBaseMonster::StartTask(pTask);
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user