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

◆ EEKilled()

override void InventoryItemSuper::EEKilled ( Object killer)
inlineprivate

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

847 {
848 if ( g_Game.IsServer() )
849 {
850 Car car;
851 EntityAI parent = GetHierarchyParent();
852
853 Class.CastTo( car, parent );
854
855
856 if ( car )
857 {
858 float amount = car.GetFluidFraction( CarFluid.COOLANT );
859 float newAmount = Math.RandomFloat( amount * 0.2, amount * 0.75 );
860
861 car.Leak( CarFluid.COOLANT, newAmount );
862 }
863 }
864 }
class LogManager EntityAI
CarFluid
Type of vehicle's fluid. (native, do not change or extend)
Определения Car.c:18
DayZGame g_Game
Определения DayZGame.c:4074

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