/* ================== BotImport_EntityTrace ================== */ static void BotImport_EntityTrace(bsp_trace_t *bsptrace, vec3_t start, vec3_t mins, vec3_t maxs, vec3_t end, int entnum, int contentmask) { trace_t trace; SV_ClipToEntity(&trace, start, mins, maxs, end, entnum, contentmask, qfalse); //copy the trace information bsptrace->allsolid = trace.allsolid; bsptrace->startsolid = trace.startsolid; bsptrace->fraction = trace.fraction; VectorCopy(trace.endpos, bsptrace->endpos); bsptrace->plane.dist = trace.plane.dist; VectorCopy(trace.plane.normal, bsptrace->plane.normal); bsptrace->plane.signbits = trace.plane.signbits; bsptrace->plane.type = trace.plane.type; bsptrace->surface.value = trace.surfaceFlags; bsptrace->ent = trace.entityNum; bsptrace->exp_dist = 0; bsptrace->sidenum = 0; bsptrace->contents = 0; }
/* * BotImport_EntityTrace */ static void BotImport_EntityTrace(bsp_Trace *bsptrace, Vec3 start, Vec3 mins, Vec3 maxs, Vec3 end, int entnum, int contentmask) { Trace trace; SV_ClipToEntity(&trace, start, mins, maxs, end, entnum, contentmask, qfalse); /* copy the trace information */ bsptrace->allsolid = trace.allsolid; bsptrace->startsolid = trace.startsolid; bsptrace->fraction = trace.fraction; copyv3(trace.endpos, bsptrace->endpos); bsptrace->plane.dist = trace.plane.dist; copyv3(trace.plane.normal, bsptrace->plane.normal); bsptrace->plane.signbits = trace.plane.signbits; bsptrace->plane.type = trace.plane.type; bsptrace->surface.value = trace.surfaceFlags; bsptrace->ent = trace.entityNum; bsptrace->exp_dist = 0; bsptrace->sidenum = 0; bsptrace->contents = 0; }
/* ======================================================================================================================================= BotImport_EntityTrace ======================================================================================================================================= */ static void BotImport_EntityTrace(bsp_trace_t *bsptrace, vec3_t start, vec3_t mins, vec3_t maxs, vec3_t end, int entnum, int contentmask) { SV_ClipToEntity(bsptrace, start, mins, maxs, end, entnum, contentmask, qfalse); }