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

◆ EEKilled()

override void InventoryItemSuper::EEKilled ( Object killer)
inlineprivate

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

700 {
701 if ( GetGame().IsServer() )
702 {
703 Car car;
704 EntityAI parent = GetHierarchyParent();
705
706 Class.CastTo( car, parent );
707
708
709 if ( car )
710 {
711 float amount = car.GetFluidFraction( CarFluid.COOLANT );
712 float newAmount = Math.RandomFloat( amount * 0.2, amount * 0.75 );
713
714 car.Leak( CarFluid.COOLANT, newAmount );
715 }
716 }
717 }
class LogManager EntityAI
CarFluid
Type of vehicle's fluid. (native, do not change or extend)
Определения Car.c:19
proto native CGame GetGame()

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