Advertisement
captmicro

Untitled

Oct 24th, 2012
352
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.37 KB | None | 0 0
  1.  
  2. inline void UTIL_TraceRay( const Ray_t &ray, unsigned int mask,
  3.                           const IHandleEntity *ignore, int collisionGroup, trace_t *ptr )
  4. {
  5.     CTraceFilterSimple traceFilter( ignore, collisionGroup );
  6.  
  7.     enginetrace->TraceRay( ray, mask, &traceFilter, ptr );
  8.    
  9.     if( r_visualizetraces.GetBool() )
  10.     {
  11.         DebugDrawLine( ptr->startpos, ptr->endpos, 255, 0, 0, true, -1.0f );
  12.     }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement