Server guide

Aircraft at traders

RotorCraft helicopters work with any trader mod. A trader helicopter needs configuring: list its start parts as attachments so it arrives complete. This page lists the classnames and parts, the ready-made Expansion Market files, and where trader helicopters appear.

Configuring a complete helicopter

For a complete helicopter, attach these items in your trader entry. Classnames are not case sensitive.

RotorCraft_Mosquito

CarBattery, SparkPlug, SparkPlug (two), RotorCraft_DriveBelt

RotorCraft_MH6, RotorCraft_AH6

TruckBattery, GlowPlug

RotorCraft_Gazelle, RotorCraft_GazelleCannon

TruckBattery, GlowPlug

RotorCraft_BlackHawk, RotorCraft_BlackHawkArmed

TruckBattery, GlowPlug

RotorCraft_AB212, RotorCraft_AB212Armed

TruckBattery, GlowPlug

RotorCraft_Chinook

TruckBattery, GlowPlug

Rotor blades come fitted, so don't add them. The blade sets in the parts list are spares for repairing a destroyed rotor: RotorCraft_RotorBlades_Mosquito, _MH6 (MH-6 and AH-6), _Gazelle (both Gazelles), _BlackHawk (both Black Hawks), _AB212 (both AB 212s) and _Chinook.

Starting equipment and fuel

Attached parts replace the mod's random starting equipment. A helicopter listed by classname alone gets the same starting equipment as a loot spawn:

Battery30% chance (freshBatteryChance)
Glow plug, or both Mosquito spark plugs30% chance (freshPlugsChance)
Fuel0 to 15% (freshFuelMin, freshFuelMax)

Fuel comes from your trader mod (some fill the tank) or from these settings: offer fuel at the trader, or raise freshFuelMin and freshFuelMax in Aircraft settings.

If your trader can't attach items, set freshBatteryChance and freshPlugsChance to 1 in RotorCraft_Aircraft.json. This also applies to helicopters placed by the mod's own spawns.

Expansion Market: ready-made files

The mod's release/trader-files/ folder has files that already fit the parts above:

  1. Stop the server.
  2. Copy the two Market files into <server profile>/ExpansionMod/Market/.
  3. Either add "RotorCraft_Helicopters" and "RotorCraft_Parts" to the "Categories" list of an existing trader (for example ExpansionMod/Traders/Aircraft.json), or copy Traders/RotorCraft_Aircraft.json into <server profile>/ExpansionMod/Traders/ and point a trader NPC at "RotorCraft_Aircraft" in your map's trader file.
  4. Start the server.

Prices and stock are a starting point. The currency is Expansion's default, expansionbanknotehryvnia; change "Currencies" in the trader file if you use another.

Dr.Jones Trader

Dr.Jones fits a helicopter's parts from TraderVehicleParts.txt in your Trader profile folder. Add one entry per helicopter above the <OpenFile> line near the end of that file; Dr.Jones stops reading at that line, so entries below it are ignored. For example:

<VehicleParts> RotorCraft_MH6
	TruckBattery
	GlowPlug

<VehicleParts> RotorCraft_Mosquito
	CarBattery
	SparkPlug
	SparkPlug
	RotorCraft_DriveBelt

Use the part lists above for the other classnames. List the helicopters in TraderConfig.txt with quantity VNK (or V for a trader key), as for cars. Helicopters arrive with the mod's starting fuel (see "Starting equipment and fuel" above), so offer fuel at the trader or raise freshFuelMin and freshFuelMax.

Other trader mods

Add the parts from the list above as attachments in the helicopter's vehicle entry, the same way you'd give a car its battery and spark plug. Where a mod has no attachment option, use the freshBatteryChance / freshPlugsChance tip above.

Where trader helicopters spawn (Expansion)

RotorCraft helicopters are built on DayZ's car class, so Expansion treats them as land vehicles. It spawns them at the LandSpawnPositions in expansion/settings/MarketSettings.json, not the AirSpawnPositions.

Other trader mods have their own vehicle spawn settings; use the ones for cars.

Something missing or wrong? Ask in the Discord.