Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- inline void UTIL_TraceLine( const Vector& vecAbsStart, const Vector& vecAbsEnd, unsigned int mask,
- ITraceFilter *pFilter, trace_t *ptr )
- {
- Ray_t ray;
- ray.Init( vecAbsStart, vecAbsEnd );
- enginetrace->TraceRay( ray, mask, pFilter, ptr );
- if( r_visualizetraces.GetBool() )
- {
- DebugDrawLine( ptr->startpos, ptr->endpos, 255, 0, 0, true, -1.0f );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement