Advertisement
captmicro

Untitled

Dec 23rd, 2012
398
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. inline void UTIL_TraceLine( const Vector& vecAbsStart, const Vector& vecAbsEnd, unsigned int mask,
  2. ITraceFilter *pFilter, trace_t *ptr )
  3. {
  4. Ray_t ray;
  5. ray.Init( vecAbsStart, vecAbsEnd );
  6.  
  7. enginetrace->TraceRay( ray, mask, pFilter, 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