Attempt to stop rendering impacts in the sky

► Stop rendering bullet impacts in the sky and on nodraw surfaces.
This commit is contained in:
speedvoltage 2025-03-12 09:48:06 +01:00
parent a62efecf62
commit 7c8e53675e

View file

@ -166,6 +166,9 @@ void CWeaponAR2::DoImpactEffect( trace_t &tr, int nDamageType )
data.m_vOrigin = tr.endpos + ( tr.plane.normal * 1.0f );
data.m_vNormal = tr.plane.normal;
if ( tr.fraction != 1.0 && ( ( tr.surface.flags & SURF_SKY ) || ( tr.surface.flags & SURF_NODRAW ) ) )
return;
DispatchEffect( "AR2Impact", data );
BaseClass::DoImpactEffect( tr, nDamageType );