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

◆ LeakFluid()

void Car::LeakFluid ( CarFluid fluid)
inlineprotected

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

2099 {
2100 float amount = 0;
2101
2102 switch (fluid)
2103 {
2104 case CarFluid.COOLANT:
2105 amount = (1 - m_RadiatorHealth) * RandomFloat(0.02, 0.05);//CARS_LEAK_TICK_MIN; CARS_LEAK_TICK_MAX
2106 Leak(fluid, amount);
2107 break;
2108
2109 case CarFluid.OIL:
2110 amount = (1 - m_EngineHealth) * RandomFloat(0.02, 1.0);//CARS_LEAK_OIL_MIN; CARS_LEAK_OIL_MAX
2111 Leak(fluid, amount);
2112 break;
2113
2114 case CarFluid.FUEL:
2115 amount = (1 - m_FuelTankHealth) * RandomFloat(0.02, 0.05);//CARS_LEAK_TICK_MIN; CARS_LEAK_TICK_MAX
2116 Leak(fluid, amount);
2117 break;
2118 }
2119 }
CarFluid
Type of vehicle's fluid. (native, do not change or extend)
Определения Car.c:18
proto native void Leak(MotorbikeFluid fluid, float amount)
Removes from the specified fluid the specified amount.
float m_EngineHealth
Определения CarScript.c:122
float m_RadiatorHealth
Определения CarScript.c:123
float m_FuelTankHealth
Определения CarScript.c:124

Перекрестные ссылки Leak(), m_EngineHealth, m_FuelTankHealth и m_RadiatorHealth.

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