ported to Android CS 1.6

fixed console spam with yb_quota when no waypoints on map
fixed autovacate feature once again
This commit is contained in:
jeefo 2015-12-26 01:31:46 +03:00
commit 579971c5ff
6 changed files with 57 additions and 39 deletions

View file

@ -4933,11 +4933,23 @@ void Bot::BotAI (void)
pev->button |= IN_MOVELEFT;
}
if (!IsEntityNull (g_hostEntity) && yb_debug.GetInt () >= 1)
{
int specIndex = g_hostEntity->v.iuser2;
bool displayDebugOverlay = false;
if (specIndex == IndexOfEntity (GetEntity ()))
if (g_hostEntity->v.iuser2 == IndexOfEntity (GetEntity ()))
displayDebugOverlay = true;
if (!displayDebugOverlay && yb_debug.GetInt () >= 2)
{
Bot *nearest = NULL;
if (FindNearestPlayer (reinterpret_cast <void **> (&nearest), g_hostEntity, 128.0f, true, true, true, true) && nearest == this)
displayDebugOverlay = true;
}
if (displayDebugOverlay)
{
static float timeDebugUpdate = 0.0f;
static int index, goal, taskID;