1120 {
1122 {
1123 int liquidType = -1;
1125 float impactSpeed = ProcessImpactSoundEx(other, extra, itemBaseType.m_ConfigWeight,
m_ImpactSoundSurfaceHash, liquidType);
1126 if (impactSpeed > 0.0)
1127 {
1129 #ifndef SERVER
1130 #ifndef NO_GUI
1132 #endif
1133 #else
1135 SetSynchDirty();
1136 #endif
1138 }
1139 }
1140
1141 #ifdef SERVER
1142 if (GetCompEM() && GetCompEM().IsPlugged())
1143 {
1145 GetCompEM().UnplugThis();
1146 }
1147 #endif
1148 }
bool m_CanPlayImpactSound
int m_ImpactSoundSurfaceHash
bool m_WantPlayImpactSound
static proto native float Distance(vector v1, vector v2)
Returns the distance between tips of two 3D vectors.
vector GetPosition()
Get the world position of the Effect.