Skip to content

[Minor] Extended ExtendedAircraftMissions #1654

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: develop
Choose a base branch
from

Conversation

CrimRecya
Copy link
Contributor

@CrimRecya CrimRecya commented May 6, 2025

  • Aircraft will now be able to use waypoints.
  • When a guard command ([G] by default) is issued, the aircraft will search for targets around the current location and return immediately when target is not found, target is destroyed or ammos are depleted.
    • If the target is destroyed but ammos are not depleted yet, it will also return because the aircraft's command is one-time.
  • When an attack move command ([Ctrl]+[Shift]) is issued, the aircraft will move towards the destination and search for nearby targets on the route for attack. Once ammo is depleted or the destination is reached, it will return.
    • If the automatically selected target is destroyed but ammo is not depleted yet during the process, the aircraft will continue flying to the destination.
  • In addition, the actions of aircraft are also changed.
    • ExtendedAircraftActions.SmoothMoving controls whether the aircraft will return to the airport when the distance to the destination is less than half of SlowdownDistance or its turning radius.
    • ExtendedAircraftActions.EarlyDescend controls whether the aircraft not have to fly directly above the airport before starting to descend when the distance between the aircraft and the landing point is less than SlowdownDistance (also work for aircraft spawned by aircraft carriers).
    • ExtendedAircraftActions.RearApproach controls whether the aircraft should start landing at the airport from the opposite direction of LandingDir.

In rulesmd.ini:

[General]
ExtendedAircraftMissions=false         ; boolean

[SOMEAIRCRAFT]                         ; AircraftType
ExtendedAircraftActions.SmoothMoving=  ; boolean, default to [General] -> ExtendedAircraftMissions
ExtendedAircraftActions.EarlyDescend=  ; boolean, default to [General] -> ExtendedAircraftMissions
ExtendedAircraftActions.RearApproach=  ; boolean, default to [General] -> ExtendedAircraftMissions

landing

@CrimRecya CrimRecya added ❓New feature Minor Documentation is not required ⚙️T1 T1 maintainer review is sufficient labels May 6, 2025
Copy link

github-actions bot commented May 6, 2025

Nightly build for this pull request:

This comment is automatic and is meant to allow guests to get latest nightly builds for this pull request without registering. It is updated on every successful build.

@mevitar
Copy link

mevitar commented May 7, 2025

* Aircraft can fly at a certain speed as much as possible, when the distance to the destination is less than half of `SlowdownDistance` or 8 cell distances divided by `ROT`, it will return to the airport. And now aircraft not have to fly directly above the airport before starting to descend (also work for aircraft spawned by aircraft carriers). When the distance between the aircraft and the landing point is less than `SlowdownDistance`, it will begin to descend. Aircraft will also start landing at the airport from the opposite direction of `LandingDir`.

I think this behavior should have a separate tag to enable it. Some people might want to have their aircraft keep the old landing pattern while still using ExtendedAircraftMissions=yes. Hopefully enabled per-aircraft, if possible.

Auto-attack behavior can be enabled/disabled by GuardRange=, DefaultToGuardArea=, CanPassiveAquire= and CanRetaliate= on every aircraft, but modders have no control whether how their aircraft land. It's either everything or none.

@Metadorius
Copy link
Member

I think the descent/ascent speed and distance should also be customizable per-techno.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Minor Documentation is not required Needs testing ❓New feature ⚙️T1 T1 maintainer review is sufficient
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants