546 {
547 switch (slot_name)
548 {
549 case "CarBattery":
550 case "TruckBattery":
553 {
555 {
557 }
558 }
559
561 {
562 LightOff();
563
565 }
566 break;
567 case "SparkPlug":
568 case "GlowPlug":
571 {
573 }
574 break;
575 case "CarRadiator":
578 {
580 }
581
583 {
584 if (m_DamageZoneMap.Contains("Radiator"))
585 {
586 SetHealth("Radiator", "Health", 0);
587 }
588 }
589 break;
590 }
591
593 {
595 }
596
599 }
CarFluid
Type of vehicle's fluid. (native, do not change or extend)
class GP5GasMask extends MaskBase ItemBase
proto native void EngineStop()
Stops the engine.
proto native bool EngineIsOn()
Returns true when engine is running, false otherwise.
proto native void LeakAll(MotorbikeFluid fluid)
Removes all the specified fluid from vehicle.
void UpdateHeadlightState()
void UpdateBattery(ItemBase battery)
override void UpdateLights(int new_gear=-1)