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

◆ EEKilled()

override void InventoryItemSuper::EEKilled ( Object killer)
inlineprivate

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

711 {
712 if ( g_Game.IsServer() )
713 {
714 Car car;
715 EntityAI parent = GetHierarchyParent();
716
717 Class.CastTo( car, parent );
718
719
720 if ( car )
721 {
722 float amount = car.GetFluidFraction( CarFluid.COOLANT );
723 float newAmount = Math.RandomFloat( amount * 0.2, amount * 0.75 );
724
725 car.Leak( CarFluid.COOLANT, newAmount );
726 }
727 }
728 }
class LogManager EntityAI
CarFluid
Type of vehicle's fluid. (native, do not change or extend)
Определения Car.c:19
DayZGame g_Game
Определения DayZGame.c:3942

Перекрестные ссылки Class::CastTo(), g_Game и Math::RandomFloat().