Skip to main content

Repair System

Requirements

All repairs require:
  • HelicopterRepairKit held in the player’s hands
  • Engine must be off
  • Helicopter must be grounded

What Gets Repaired

The HelicopterRepairKit repairs all 6 damage zones: Body, Engine, Chassis, Fuel, Main Rotor, Tail Rotor.

Progressive Repair

Zone repair is progressive — each hold action repairs one damage level. If a zone has taken heavy damage, multiple hold actions may be required to fully restore it. Each repair also restores a fraction of global HP (CZH_repairGlobalHpPct).

Repair Settings

All repair settings live in mod_config.json and apply globally.
SettingWhat it doesDefault
CZH_repairKitUsesNumber of repairs a kit can perform before going ruined5
CZH_rotorRepairTimeHold time in seconds to repair a rotor45
CZH_zoneRepairTimeHold time in seconds to repair body/engine/chassis/fuel zone30
CZH_repairGlobalHpPctGlobal HP fraction added per repair (0.10 = +10% per action)0.10

Battery System

Requirements

A HelicopterBattery must be in the HelicopterBattery inventory slot with charge greater than 0 before the engine can be started.

Battery Behaviour

EventEffect
Engine startDrains CZH_batteryStartDrain units
Engine stopDrains CZH_batteryStartDrain units
Engine runningRecharges CZH_batteryChargeRate units per second
Lights onDrains CZH_batteryLightDrain units per second
Battery maximum charge is 500 units.

Battery Settings

SettingWhat it doesDefault
CZH_batteryStartDrainBattery drained per engine start/stop. 0 = no drain.10.0
CZH_batteryChargeRateBattery recharged per second while engine is running. 0 = no recharge.5.0
CZH_batteryLightDrainBattery drained per second while lights are on. 0 = no drain.2.0
To disable the battery requirement entirely, set CZH_batteryStartDrain = 0. The helicopter will start without needing a battery in the slot.