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

◆ PlayWheelExlosionSound()

void CarWheel_Ruined::PlayWheelExlosionSound ( )
inlineprotected

Play wheel exposion sound when destroyed (called from ReplaceWheelLambda::OnSuccess)

См. определение в файле 4_World/DayZ/Entities/Core/Inherited/InventoryItem.c строка 297

298 {
299 if (g_Game.IsServer() || !g_Game.IsMultiplayer())
300 {
301 switch (GetType())
302 {
303 case "HatchbackWheel_Ruined":
304 case "CivSedanWheel_Ruined":
305 case "Hatchback_02_Wheel_Ruined":
306 case "Sedan_02_Wheel_Ruined":
307 case "Motorbike_01_Wheel_1_Ruined":
308 case "Motorbike_01_Wheel_2_Ruined":
309 case "Motorbike_02_Wheel_1_Ruined":
310 case "Motorbike_02_Wheel_2_Ruined":
311 StartItemSoundServer(SoundConstants.ITEM_CARWHEEL_EXPLOSION_SMALL);
312 break;
313 case "Offroad_02_Wheel_Ruined":
314 case "Truck_01_Wheel_Ruined":
315 case "Truck_01_WheelDouble_Ruined":
316 StartItemSoundServer(SoundConstants.ITEM_CARWHEEL_EXPLOSION_BIG);
317 break;
318 }
319 }
320 }
eBleedingSourceType GetType()
DayZGame g_Game
Определения DayZGame.c:4074
void StartItemSoundServer(int id, int slotId)
Определения ItemBase.c:4436

Перекрестные ссылки g_Game, GetType() и StartItemSoundServer().

Используется в EEHealthLevelChanged().