So far, this has always worked out for me, but now I'm working on a new map and when spawning a bot I get the console message "no AAS area for waypoint at (x, y, z)". This is an EntityPlus specific message.
The code that emits this error message is as follows:
Code: Select all
wpArea = BotPointAreaNum( curWpEnt->s.origin );
if( !wpArea )
{
G_Printf("no AAS area for waypoint at %s \n", vtos(curWpEnt->s.origin) );
return;
}
(full code viewable here).
So basically, the problem here is that BotPointAreaNum returns 0.
The BotPointAreaNum (which is as far as I know an unmodified function from the plain Q3 source code) is as follows:
Code: Select all
int BotPointAreaNum(vec3_t origin) {
int areanum, numareas, areas[10];
vec3_t end;
areanum = trap_AAS_PointAreaNum(origin);
if (areanum) return areanum;
VectorCopy(origin, end);
end[2] += 10;
numareas = trap_AAS_TraceAreas(origin, end, areas, NULL, 10);
if (numareas > 0) return areas[0];
return 0;
}