Realistic Auto Pilots
Adds a scirpt-based autopilot to all aircraft in a mission for clients running the mod!
Have you ever wanted to be able to actually scan the ground for a target while your plane makes sure you don’t die? Well now you can with this simple-to-use autopilot mod!
This mod will add 4 autopilots to every plane and helicopter.
Planes and VTOLs get:
- Altitude Hold (Good for circling)
- Turns off when pitch is ± 7.5° OR bank is ± 60°
- Altitude and Heading Hold (Good for waypoints)
- Turns off when pitch is ± 7.5° OR bank is ± 10° OR heading is ± 5° from target heading
- Path Hold (Good for climbing)
- Turns off when pitch is ± 10° from target OR bank is ± 10°
- Automatic Throttle Control (Holds speed)
- Turns off when pilot changes throttle
VTOLs get:
- Position Hold (Like Auto-Hover, but realistic and now for VTOLs)
- Turns off when pitch is ± 15° OR bank is ± 15° OR you are going too fast OR you turn on auto-vectoring
- Enters STBY when reciving input from pilot on any directional controls (Cyclic, Collective, Yaw Pedals)
Choppers get:
- Altitude Hold (Constant altitude ABOVE SEA LEVEL)
- Does not automatically turn off
- Attitude Hold (Hold vector and direction)
- Turns off when pitch is ± 60° OR bank is ± 70° OR velocity is below 15
- Position Hold (Like Auto-Hover, but realistic)
- Turns off when pitch is ± 15° OR bank is ± 15° OR you are going too fast
- Enters STBY when reciving input from pilot on any directional controls (Cyclic, Collective, Yaw Pedals)
- Heading Hold (Keeps you aimed one way)
- Turns off when bank is ± 10° OR heading is ± 5° from target heading OR too close to ground (5m)
- Enters STBY when cyclic is held left/right, when yaw is held, or when notable collective input is given.
Autopilot notes
- The autopilot will turn itself off if certain criteria are met (Depending on which mode you are using)
- Helicopter autopilot will (Depending) go to standby mode if you maneuver, at which point it will hold the new values once the maneuver is complete. (For instance, breaking the position hold and then entering another hover smoothly will not stop the autopilot but will rather set it to standby while you fly between positions)
- A main thing to note is you have to get the aircraft moving steadily before attempting to turn on the autopilot. The autopilot is not a magical pilot who can fly for you, it just lets you focus on targets or instruments rather than focusing on the flying of the aircraft itself.
If you are making a mission and wish to prevent a particular aircraft from having autopilot added, put this into the vehicles init:
this setVariable["hal_autopilot",false];
This mod is client-sided, meaning the server does not need to run any additional mods to support it, but it must allow the client to use the mod.
Only requires CBA to run!