199    {
  201        if ( impactVelocity < 0.3 )
  202            return 0.0;
  203        
  206            return 0.0;
  207        
  209        if ( surfaceName == "" )
  210            return 0.0;
  211 
  212#ifdef DIAG_DEVELOPER
  213        string infoText = "Surface: " + surfaceName + ", Weight: " + weight + ", Speed: " + impactVelocity;
  214        
  215        if ( s_ImpactSoundsInfo.Count() == 10 )
  216            s_ImpactSoundsInfo.Remove(9);
  217        
  218        s_ImpactSoundsInfo.InsertAt(infoText, 0);
  219#endif
  220 
  222 
  223        surfaceHash = surfaceName.
Hash();
 
  224        return impactVelocity;      
  225    }
proto native float GetTickTime()
Returns current time from start of the game.
string GetImpactSurfaceTypeEx(IEntity other, Contact impact, out int liquid)
const float SOUND_CONTACT_SKIP
float m_SoundContactTickTime
proto native float Length()
Returns length of vector (magnitude)
proto native CGame GetGame()
vector RelativeVelocityBefore
proto native int Hash()
Returns hash of string.