mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-02-03 02:24:28 +00:00
Pitdrones shouldn't search for food during combat (#146)
This commit is contained in:
parent
241ee25a54
commit
fdbce18498
@ -1003,22 +1003,6 @@ Schedule_t *CPitdrone::GetSchedule(void)
|
||||
return GetScheduleOfType(SCHED_WAKE_ANGRY);
|
||||
}
|
||||
|
||||
if (HasConditions(bits_COND_SMELL_FOOD))
|
||||
{
|
||||
CSound *pSound;
|
||||
|
||||
pSound = PBestScent();
|
||||
|
||||
if (pSound && (!FInViewCone(&pSound->m_vecOrigin) || !FVisible(pSound->m_vecOrigin)))
|
||||
{
|
||||
// scent is behind or occluded
|
||||
return GetScheduleOfType(SCHED_PDRONE_SNIFF_AND_EAT);
|
||||
}
|
||||
|
||||
// food is right out in the open. Just go get it.
|
||||
return GetScheduleOfType(SCHED_PDRONE_EAT);
|
||||
}
|
||||
|
||||
if( HasConditions( bits_COND_NO_AMMO_LOADED ) && (m_iInitialAmmo >= 0) )
|
||||
{
|
||||
return GetScheduleOfType( SCHED_PDRONE_COVER_AND_RELOAD );
|
||||
|
Loading…
x
Reference in New Issue
Block a user