Fixed autovacate thing once again.
Temporary disabled engine PVS & PAS checks for testing.
This commit is contained in:
parent
76248cac6a
commit
10b89ca011
5 changed files with 24 additions and 16 deletions
|
|
@ -5868,12 +5868,14 @@ void Bot::ReactOnSound (void)
|
|||
{
|
||||
int hearEnemyIndex = -1;
|
||||
|
||||
#if 0
|
||||
Vector pasOrg = EyePosition ();
|
||||
|
||||
if (pev->flags & FL_DUCKING)
|
||||
pasOrg = pasOrg + (VEC_HULL_MIN - VEC_DUCK_HULL_MIN);
|
||||
|
||||
uint8 *pas = ENGINE_SET_PAS (reinterpret_cast <float *> (&pasOrg));
|
||||
#endif
|
||||
|
||||
float minDistance = 99999.0f;
|
||||
|
||||
|
|
@ -5889,10 +5891,10 @@ void Bot::ReactOnSound (void)
|
|||
|
||||
if (distance > client.hearingDistance)
|
||||
continue;
|
||||
|
||||
#if 0
|
||||
if (!ENGINE_CHECK_VISIBILITY (client.ent, pas))
|
||||
continue;
|
||||
|
||||
#endif
|
||||
if (distance < minDistance)
|
||||
{
|
||||
hearEnemyIndex = i;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue