|
|
@ -262,6 +262,7 @@ void CBaseMonster::Listen( void ) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//iSound = g_pSoundEnt->m_SoundPool[iSound].m_iNext;
|
|
|
|
//iSound = g_pSoundEnt->m_SoundPool[iSound].m_iNext;
|
|
|
|
|
|
|
|
if( pCurrentSound ) |
|
|
|
iSound = pCurrentSound->m_iNext; |
|
|
|
iSound = pCurrentSound->m_iNext; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -431,7 +432,9 @@ CSound *CBaseMonster::PBestSound( void ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
pSound = CSoundEnt::SoundPointerForIndex( iThisSound ); |
|
|
|
pSound = CSoundEnt::SoundPointerForIndex( iThisSound ); |
|
|
|
|
|
|
|
|
|
|
|
if( pSound && pSound->FIsSound() ) |
|
|
|
if( pSound ) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if( pSound->FIsSound() ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
flDist = ( pSound->m_vecOrigin - EarPosition() ).Length(); |
|
|
|
flDist = ( pSound->m_vecOrigin - EarPosition() ).Length(); |
|
|
|
|
|
|
|
|
|
|
@ -444,6 +447,7 @@ CSound *CBaseMonster::PBestSound( void ) |
|
|
|
|
|
|
|
|
|
|
|
iThisSound = pSound->m_iNextAudible; |
|
|
|
iThisSound = pSound->m_iNextAudible; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
if( iBestSound >= 0 ) |
|
|
|
if( iBestSound >= 0 ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
pSound = CSoundEnt::SoundPointerForIndex( iBestSound ); |
|
|
|
pSound = CSoundEnt::SoundPointerForIndex( iBestSound ); |
|
|
@ -2367,7 +2371,7 @@ BOOL CBaseMonster::BuildNearestRoute( Vector vecThreat, Vector vecViewOffset, fl |
|
|
|
// try to actually get there
|
|
|
|
// try to actually get there
|
|
|
|
if( BuildRoute( node.m_vecOrigin, bits_MF_TO_LOCATION, NULL ) ) |
|
|
|
if( BuildRoute( node.m_vecOrigin, bits_MF_TO_LOCATION, NULL ) ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
flMaxDist = flDist; |
|
|
|
// flMaxDist = flDist;
|
|
|
|
m_vecMoveGoal = node.m_vecOrigin; |
|
|
|
m_vecMoveGoal = node.m_vecOrigin; |
|
|
|
return TRUE; // UNDONE: keep looking for something closer!
|
|
|
|
return TRUE; // UNDONE: keep looking for something closer!
|
|
|
|
} |
|
|
|
} |
|
|
@ -3278,7 +3282,7 @@ BOOL CBaseMonster::BBoxFlat( void ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
return FALSE; |
|
|
|
return FALSE; |
|
|
|
} |
|
|
|
} |
|
|
|
flLength = flLength2; |
|
|
|
// flLength = flLength2;
|
|
|
|
|
|
|
|
|
|
|
|
return TRUE; |
|
|
|
return TRUE; |
|
|
|
} |
|
|
|
} |
|
|
|