Skip to content

Improvements & additions for reinforcement aircraft spawn logic#2286

Open
Starkku wants to merge 2 commits into
Phobos-developers:developfrom
Starkku:feature/spawned-plane-improvements
Open

Improvements & additions for reinforcement aircraft spawn logic#2286
Starkku wants to merge 2 commits into
Phobos-developers:developfrom
Starkku:feature/spawned-plane-improvements

Conversation

@Starkku

@Starkku Starkku commented Jul 7, 2026

Copy link
Copy Markdown
Contributor
  • Adds support for SpawnDistanceFromTarget & SpawnHeight to paradrop planes (with and without Ares)
  • Introduces SpawnFromEdge & RetreatToEdge to control which edge of the map planes spawn from / retreat to.
  • Planes now spawn facing their target instead of always north.

Note: SpawnDistanceFromTarget/SpawnHeight for spy planes and airstrike aircraft was already implemented prior to this PR, full documentation is included because the wording/formatting was updated.

Reinforcement aircraft spawn settings

  • A number of new settings are available for AircraftTypes spawned from (Elite)AirstrikeTeamType or Type=SpyPlane/Paradrop/AmerParadrop superweapons.
    • SpawnFromEdge and RetreatToEdge can be used to customize the edge of map from where the aircraft spawns and where it retreats to, respectively. Defaults to the owner's edge of the map which is determined based on base location and other factors.
    • SpawnDistanceFromTarget can be used to set fixed spawn distance from target instead of at edge of map. The approach direction is still determined by the edge where it would've otherwise spawned. Negative values will invert the direction.
    • SpawnHeight can be used to override the initial height of the aircraft, which defaults to FlightLevel, or if not set then [General] -> FlightLevel.
    • Additionally, these aircraft now spawn facing the target's direction instead of always facing north.

In rulesmd.ini:

[SOMEAIRCRAFT]            ; AircraftType
SpawnFromEdge=owner       ; Edge type enumeration (owner|closest|random)
RetreatToEdge=owner       ; Edge type enumeration (owner|closest|random)
SpawnDistanceFromTarget=  ; floating point value, distance in cells
SpawnHeight=              ; integer, height in leptons

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

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.

@Starkku Starkku force-pushed the feature/spawned-plane-improvements branch from b46421d to e3373f4 Compare July 7, 2026 20:10
Comment thread docs/Fixed-or-Improved-Logics.md Outdated
@Coronia Coronia added Needs testing ⚙️T1 T1 maintainer review is sufficient labels Jul 8, 2026
@Starkku Starkku force-pushed the feature/spawned-plane-improvements branch from e3373f4 to a10b332 Compare July 8, 2026 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs testing ⚙️T1 T1 maintainer review is sufficient

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants