Fixed autovacate thing once again.

Temporary disabled engine PVS & PAS checks for testing.
This commit is contained in:
jeefo 2016-11-01 23:57:51 +03:00
commit 10b89ca011
5 changed files with 24 additions and 16 deletions

View file

@ -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;