DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ EOnContact()

override void InventoryItem::EOnContact ( IEntity other,
Contact extra )
inlineprivate

См. определение в файле ItemBase.c строка 1175

1176 {
1178 {
1179 int liquidType = -1;
1180 float impactSpeed = ProcessImpactSoundEx(other, extra, m_ConfigWeight, m_ImpactSoundSurfaceHash, liquidType);
1181 if (impactSpeed > 0.0)
1182 {
1183 m_ImpactSpeed = impactSpeed;
1184 #ifndef SERVER
1185 PlayImpactSound(m_ConfigWeight, m_ImpactSpeed, m_ImpactSoundSurfaceHash);
1186 #else
1187 m_WantPlayImpactSound = true;
1188 SetSynchDirty();
1189 #endif
1190 m_CanPlayImpactSound = (liquidType == -1);// prevents further playing of the sound when the surface is a liquid type
1191 }
1192 }
1193
1194 #ifdef SERVER
1195 if (GetCompEM() && GetCompEM().IsPlugged())
1196 {
1197 if (GetCompEM().GetCordLength() < vector.Distance(GetPosition(), GetCompEM().GetEnergySource().GetPosition()))
1198 GetCompEM().UnplugThis();
1199 }
1200 #endif
1201 }
float m_ImpactSpeed
Определения ItemBase.c:51
int m_ImpactSoundSurfaceHash
Определения ItemBase.c:52
bool m_WantPlayImpactSound
Определения ItemBase.c:49
bool m_CanPlayImpactSound
Определения ItemBase.c:50
class JsonUndergroundAreaTriggerData GetPosition
Определения UndergroundAreaLoader.c:9

Перекрестные ссылки vector::Distance(), GetPosition, m_CanPlayImpactSound, m_ImpactSoundSurfaceHash, m_ImpactSpeed и m_WantPlayImpactSound.