Alright, with a little help i got it to splash on the ground. Yay!

But i have an issue. I can't get this to splash on glass. I can't figure out 
why.

Here's my code:
      if ( m_Splashes.Count() < 99 )
      {
         if ( RandomInt( 0, 100 ) < r_RainSplashPercentage.GetInt() )
         {
            trace_t trace;
            UTIL_TraceLine(vOldPos, pParticle->m_Pos, MASK_ALL, NULL, 
COLLISION_GROUP_NPC, &trace);
            if( trace.fraction < 1 )
            {
               DispatchParticleEffect( "rain_splash2", trace.endpos, 
trace.m_pEnt->GetAbsAngles() , NULL );
            }
         }
      }

I changed MASK_ALL to some other stuff like MASK_OPAQUE with no avail. Any 
ideas? 


_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to