About In Flight Heli Repair
xInFlightHeliRepair
xInFlightHeliRepair is a Rust plugin that allows players to repair an attack helicopter while mounted or in the air as a passenger, using a hammer and consuming a configurable resource (e.g., metal fragments). It includes plenty of customization options.
This overrides the new behavior introduced in the “Pivot or Die” update that prevents players from repairing the attack helicopter while in flight.
Features
In-Flight Helicopter Repair
- Players/Passengers can repair an attackhelicopter by hitting it with a hammer while in flight.
Resource-Based Repair
- Each repair “hit”:
- Costs a configurable item (Default: 30 metal fragments).
- Restores a configurable amount of health (Default: 50 HP).
- Automatically removes the required items from player inventory.
Recent Damage Cooldown
- If the helicopter was recently damaged by explosive sources, repair is blocked for a set duration (Default cooldown: 10 seconds)
- Message informs the player how long they must wait.
Player Feedback
- Configurable message system:
- Supports UI toast notifications or chat messages.
Visual Repair Effect
- Plays a configurable FX prefab on successful repair (Default metal upgrade effect).
Permission
xinflighthelirepair.use
Config
{ "RequirePermission": false, "Permission": "xinflighthelirepair.use", "EnableRecentlyExplosiveDamageRepairCooldown": true, "RecentlyExplosiveDamageRepairCooldown": 10.0, "ItemUsedForRepair": "metal.fragments", "ItemCostPerRepair": 30, "HealPerHit": 50.0, "PlayEffectOnRepair": true, "Effect": "assets/bundled/prefabs/fx/build/promote_metal.prefab", "MessagesType": "ui", // Use 'ui' for toast notifications and anything else (e.g., 'chat') for chat messages "ShowMessages": true, "NotReadyMessage": "<color=#ff5555>Heli was damaged recently. Wait {0} seconds before repairing.</color>", "FullyRepairedMessage": "<color=#ffcc00>This helicopter is already fully repaired.</color>", "NotEnoughMetalMessage": "<color=#ff5555>You need {0} {2} to repair ({1} available).</color>", "RepairedMessage": "<color=#55ff55>Repaired heli by {0} HP for {1} {2}.</color>" }
