add source-sdk-2013

This commit is contained in:
nillerusr
2022-03-01 23:00:42 +03:00
parent 88b8830e8b
commit edc8d6c584
3288 changed files with 3731 additions and 1062455 deletions
+8 -20
View File
@@ -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
}
}