Another interesting fix, in BotDoWaypointNav():
Code:
// BEGIN UBERL33T CODE OF YO MOMMA: special door handling
UTIL_TraceLine (pEdict->v.origin, pBot->wpt_origin, ignore_monsters, pEdict, &tr);
if (strncmp (STRING (tr.pHit->v.classname), "func_door", 9) == 0)
{
pBot->iAimFlags = AIM_DEST; // look at door and only at it (so it opens in the right direction)
// if bot hits the door, then it opens, so wait a bit to let it open safely
if ((pEdict->v.velocity.Length2D () < 2) && (pBot->f_timeDoorOpen < gpGlobals->time))
{
bottask_t TempTask = {NULL, NULL, TASK_PAUSE, TASKPRI_PAUSE, -1, gpGlobals->time + 0.5, FALSE};
BotPushTask (pBot, &TempTask);
pBot->f_timeDoorOpen = gpGlobals->time + 1.0; // retry in 1 sec until door is open
}
}
// END UBERL33T CODE OF YO MOMMA
Interesting enough for a release perhaps ?
