SHOW:
|
|
- or go back to the newest paste.
1 | inline void UTIL_TraceLine( const Vector& vecAbsStart, const Vector& vecAbsEnd, unsigned int mask, | |
2 | const IHandleEntity *ignore, int collisionGroup, trace_t *ptr ) | |
3 | { | |
4 | Ray_t ray; | |
5 | ray.Init( vecAbsStart, vecAbsEnd ); | |
6 | CTraceFilterSimple traceFilter( ignore, collisionGroup ); | |
7 | enginetrace->TraceRay( ray, mask, &traceFilter, ptr ); | |
8 | } | |
9 | - | if( r_visualizetraces.GetBool() ) |
9 | + | |
10 | - | { |
10 | + | |
11 | - | DebugDrawLine( ptr->startpos, ptr->endpos, 255, 0, 0, true, -1.0f ); |
11 | + | |
12 | - | } |
12 | + | |
13 | Ray_t ray; | |
14 | ray.Init( vecAbsStart, vecAbsEnd ); | |
15 | enginetrace->TraceRay( ray, mask, pFilter, ptr ); | |
16 | } |