mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-08-14 12:46:58 +00:00
add source-sdk-2013
This commit is contained in:
@@ -93,10 +93,7 @@ void CBaseSimpleCollision::TraceLine( const Vector &start, const Vector &end, tr
|
||||
}
|
||||
|
||||
#if __DEBUG_PARTICLE_COLLISION_OVERLAY
|
||||
if ( debugoverlay )
|
||||
{
|
||||
debugoverlay->AddBoxOverlay( vIntersection, Vector(-1,-1,-1), Vector(1,1,1), QAngle(0,0,0), 0, 255, 0, 16, __DEBUG_PARTICLE_COLLISION_OVERLAY_LIFETIME );
|
||||
}
|
||||
debugoverlay->AddBoxOverlay( vIntersection, Vector(-1,-1,-1), Vector(1,1,1), QAngle(0,0,0), 0, 255, 0, 16, __DEBUG_PARTICLE_COLLISION_OVERLAY_LIFETIME );
|
||||
#endif //__DEBUG_PARTICLE_COLLISION_OVERLAY
|
||||
|
||||
//Done
|
||||
@@ -173,17 +170,14 @@ void CBaseSimpleCollision::TestForPlane( const Vector &start, const Vector &dir,
|
||||
if ( tr.fraction != 1.0f )
|
||||
{
|
||||
#if __DEBUG_PARTICLE_COLLISION_OVERLAY
|
||||
if ( debugoverlay )
|
||||
{
|
||||
debugoverlay->AddLineOverlay( testStart, tr.endpos, 255, 0, 0, true, __DEBUG_PARTICLE_COLLISION_OVERLAY_LIFETIME );
|
||||
debugoverlay->AddLineOverlay( testStart, tr.endpos, 255, 0, 0, true, __DEBUG_PARTICLE_COLLISION_OVERLAY_LIFETIME );
|
||||
|
||||
QAngle angles;
|
||||
QAngle angles;
|
||||
|
||||
VectorAngles( tr.plane.normal,angles );
|
||||
angles[PITCH] += 90;
|
||||
VectorAngles( tr.plane.normal,angles );
|
||||
angles[PITCH] += 90;
|
||||
|
||||
debugoverlay->AddBoxOverlay( tr.endpos, Vector(-64,-64,0), Vector(64,64,0), angles, 255, 0, 0, 16, __DEBUG_PARTICLE_COLLISION_OVERLAY_LIFETIME );
|
||||
}
|
||||
debugoverlay->AddBoxOverlay( tr.endpos, Vector(-64,-64,0), Vector(64,64,0), angles, 255, 0, 0, 16, __DEBUG_PARTICLE_COLLISION_OVERLAY_LIFETIME );
|
||||
#endif //__DEBUG_PARTICLE_COLLISION_OVERLAY
|
||||
|
||||
//Test the plane against a set of criteria
|
||||
@@ -194,10 +188,7 @@ void CBaseSimpleCollision::TestForPlane( const Vector &start, const Vector &dir,
|
||||
|
||||
//We missed
|
||||
#if __DEBUG_PARTICLE_COLLISION_OVERLAY
|
||||
if ( debugoverlay )
|
||||
{
|
||||
debugoverlay->AddLineOverlay( testStart, tr.endpos, 0, 128.0f+(128.0f*((float)i/(float)NUM_DISCREET_STEPS)), 0, true, __DEBUG_PARTICLE_COLLISION_OVERLAY_LIFETIME );
|
||||
}
|
||||
debugoverlay->AddLineOverlay( testStart, tr.endpos, 0, 128.0f+(128.0f*((float)i/(float)NUM_DISCREET_STEPS)), 0, true, __DEBUG_PARTICLE_COLLISION_OVERLAY_LIFETIME );
|
||||
#endif //__DEBUG_PARTICLE_COLLISION_OVERLAY
|
||||
|
||||
//Save that position for the next round
|
||||
@@ -372,10 +363,7 @@ bool CParticleCollision::MoveParticle( Vector &origin, Vector &velocity, float *
|
||||
{
|
||||
#if __DEBUG_PARTICLE_COLLISION_OVERLAY
|
||||
//Display a false hit
|
||||
if ( debugoverlay )
|
||||
{
|
||||
debugoverlay->AddBoxOverlay( pTrace->endpos, Vector(-1,-1,-1), Vector(1,1,1), QAngle(0,0,0), 255, 0, 0, 16, __DEBUG_PARTICLE_COLLISION_OVERLAY_LIFETIME );
|
||||
}
|
||||
debugoverlay->AddBoxOverlay( pTrace->endpos, Vector(-1,-1,-1), Vector(1,1,1), QAngle(0,0,0), 255, 0, 0, 16, __DEBUG_PARTICLE_COLLISION_OVERLAY_LIFETIME );
|
||||
#endif //__DEBUG_PARTICLE_COLLISION_OVERLAY
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user