Server guide

Weapon settings

RotorCraft_Weapons.json controls the AH-6 minigun and grenade launcher, the Gazelle 20 mm cannon and the Black Hawk door guns. No other server setting or engine patch is needed for weapons.

The armed aircraft

RotorCraft_AH6M134 minigun and 40 mm HE launcher (pilot). Containers: RotorCraft_GunAmmoCan, RotorCraft_GrenadeCanister.
RotorCraft_GazelleCannon20 mm cannon under the nose (pilot). Container: RotorCraft_CannonAmmoBox.
RotorCraft_BlackHawkArmedTwo M240H door guns (gunner-window seats). Containers: two RotorCraft_DoorGunAmmoCan.

The armed aircraft fly, repair and use settings like the MH-6, Gazelle and Black Hawk they're based on. Spawn and place them like any other aircraft (see Aircraft spawns). A fresh one gets its normal electrical parts but no ammunition containers.

The containers are native magazines. Players fill them with vanilla .308 (minigun drum and door gun cans), vanilla 40 mm HE (grenade canister) or the mod's 20 mm rounds (cannon box), then attach them in the aircraft's ENGINE inventory with the engine stopped. Ammunition in cargo never feeds the guns. For loot counts, see Loot and economy.

The settings file

The server writes RotorCraft_Weapons.json to the profile folder when an AH-6 or an ammo container first loads. The defaults:

"enabled": trueMaster switch for every weapon family.
"rate": 30Combined gun fire rate, 1 to 50 rounds per second.
"damageScale": 1.0Gun damage, 0 to 10. 1 is vanilla .308 damage. Doesn't affect grenades.
"spread": 0.003Gun spread as a half-angle in radians, 0 to 0.05.
"grenadeRate": 2Maximum grenade launch rate, 0.1 to 5 per second.
"gunCapacity": 500Gun container capacity, 1 to 750 rounds.
"grenadeCapacity": 24Grenade canister capacity, 1 to 24.
"gunEffectiveRange": 800Metres; where the gun sight turns from green to orange, 1 to 1200.
"grenadeEffectiveRange": 350Same for grenades, 1 to 600.
"consumeAmmo": truefalse gives unlimited firing.

Two more switches turn off a single weapon family under the master switch: doorGunsEnabled for the Black Hawk door guns and cannonEnabled for the Gazelle cannon.

What the settings do

Rules that aren't settings

Editing

Stop the server, edit, save, restart. A restart is the only way to reload it. Missing fields keep their defaults and invalid values use the defaults. Malformed JSON logs [RCEWPN] and the server uses the defaults without overwriting your file.

Something missing or wrong? Ask in the Discord.