**You can support me through- https://ko-fi.com/knightmare61825**
Immersive Aircrafts Compat is a compatibility addon that connects Recruits with Immersive Aircraft, allowing recruit NPCs to mount aircraft and fly/fight using server-side pilot AI. It adds command-based control for selecting pilots, marking strike zones, and launching coordinated attack runs.
Features
Recruit Pilot AI
- Recruits can pilot compatible aircraft with autonomous flight behavior.
- AI handles following, holding, moving, approach/fire/break-off combat runs, and idle landing behavior.
- Obstacle avoidance and altitude management are built in for safer flight paths.
Coordinated Air Attack Missions
• Select a single aircraft or an entire recruit group.
• Mark a target area with world coordinates and radius.
• Launch a timed mission where selected pilots engage valid enemies inside the marked zone.
Weapon-Aware Combat Logic
• Supports aircraft weapons through Immersive Aircraft weapon systems.
• Different engagement behavior for bomb bays and rotary weapons.
• Includes line-of-sight checks, firing angle checks, cooldown handling, and safety constraints for bomb drops.
Server Integration
• On server start, supported Immersive Aircraft entities are added to Recruits’ mount whitelist automatically. • Compatible entities include: airship, biplane, cargo_airship, gyrodyne, quadrocopter, warship, bamboo_hopper.
Configurable Behavior
• Extensive common config options for altitude, fire range, cooldown, obstacle detection, combat floor/ceiling, bombing safety, and idle landing timing. • Optional autoPilotMountedRecruits mode (default true) to let any mounted recruit pilot automatically.
How To Use
Quick Start Workflow
- Mount recruit(s) in compatible aircraft.
- Select pilots with /iac select ac (single) or /iac select group (group tied to looked-at pilot).
- Mark a strike area with /iac mark .
- Launch attack with /iac commence attack.
- You can also tell the aircrafts to move by the move command and set them to aggressive to fight.
NOTE: You need to put fuel and ammo along with weapon for them to fly and shoot.
Command Reference
• /iac takeoff: Shows whether recruit airplane takeoff is enabled.
• /iac takeoff on: Enables recruit airplane takeoff.
• /iac takeoff off: Disables recruit airplane takeoff.
• /iac select ac: Selects the recruit pilot you are looking at.
• /iac select group: Selects matching recruit pilots in the same owner/group context.
•/iac mark : Marks the target zone for selected aircraft.
•/iac commence attack: Sends selected loaded pilots to attack enemies in the marked area.
Behavior Notes
• Attack missions are temporary and automatically expire after a set duration.
• Only loaded/mounted selected pilots are dispatched when an attack begins.
• Best results come from clear sky lanes and enough fuel/ammo in aircraft systems.
Troubleshooting
If pilots do not attack
• Confirm a valid selection was made with /iac select.
• Confirm strike area was marked with /iac mark.
• Ensure selected recruits are mounted and currently loaded.
• Verify targets are inside the marked radius and are valid hostile targets for recruits.
If pilots do not take off
• Check /iac takeoff status.
• Confirm aircraft type is supported and whitelisted.
• Verify config values are not overly restrictive for altitude/engagement behavior.
THIS MOD IS STILL IN DEVELOPMENT THE CURRENT VERSION IS THE FIRST ITERATION AND A TEST TO FIND BUGS AND TO GET FEEDBACK THIS IS NOT THE FINAL VERSION AND IS PRONE TO CHANGES AND BUGS
**You can support me through- https://ko-fi.com/knightmare61825**