mirror of
https://github.com/ValveSoftware/source-sdk-2013.git
synced 2025-04-08 11:01:33 +00:00
Attempt to stop rendering impacts in the sky
► Stop rendering bullet impacts in the sky and on nodraw surfaces.
This commit is contained in:
parent
a62efecf62
commit
7c8e53675e
1 changed files with 3 additions and 0 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue