Author Topic: [DONE][Suggestion] Aliens should build a base where the (final) UFO lands  (Read 5589 times)

Offline Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11728
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
[SUGGESTION] objectiveOnTheLandingSite on objective: 2
--------------

I would like to request for objectiveOnTheLandingSite to work with alien bases the same way as with mission sites.
In other words: an alien base is built in exactly the same place where the supply ship (or equivalent) landed.

While it's not a deal breaker, it is a bit off-putting when you follow a construction ship to learn where it builds the base and then the base is nowhere to be seen, because it actually spawned on the other side of the continent. Not a problem with vanilla, which is abstract enough (plus there's the air of mystery), but in more hands-on approach mods, like Piratez, it is simply annoying.
« Last Edit: April 22, 2023, 08:46:51 pm by Meridian »

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9094
    • View Profile
Re: [SUGGESTION] objectiveOnTheLandingSite on objective: 2
« Reply #1 on: November 05, 2022, 05:27:52 pm »
todolisted

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9094
    • View Profile
Normally, the alien base is built when the final UFO of the mission is spawned (not landed!).
Position is chosen using region and spawnZone.

Code: [Select]
alienMissions:
  - type: STR_ALIEN_BASE
    points: 50
    objective: 2
    siteType: STR_ALIEN_BASE_ASSAULT
    spawnZone: 4 #Mission zone for alien bases
    raceWeights:
      0:
        STR_SECTOID: 30
        STR_SNAKEMAN: 20
        STR_FLOATER: 50
    waves:
      - ufo: STR_MEDIUM_SCOUT
        count: 1
        trajectory: P5
        timer: 15000
      - ufo: STR_LARGE_SCOUT
        count: 1
        trajectory: P5
        timer: 60
      - ufo: STR_SUPPLY_SHIP
        count: 2
        trajectory: P5
        timer: 60
      - ufo: STR_BATTLESHIP
        count: 1
        trajectory: P6
        timer: 60
        objectiveOnTheLandingSite: true

If you specify `objectiveOnTheLandingSite: true` on the last wave, the following happens:
1. the base will not be spawned when the final UFO spawns anymore
2. if the final UFO lands AND the landing waypoint is in the spawnZone... an alien base will be spawned on the landing site

Please note that the UFO is not removed.

Every landing of the UFO can create a new base.
So you can create a trajectory with 3 landings and create 3 bases.
Or you can create a trajectory with 5 landings, but only the 2nd and the 4th landing will create a base (to confuse the player a little bit).
Or you can prevent base creation completely if all landing sites will be outside of the spawnZone (don't know why you would, but you can... maybe if you wanted to spawn bases on a different UFO than the final UFO).

PS: all this applies to alien base mission types (objective: 2); it doesn't apply to retaliation mission types (objective: 4)
« Last Edit: April 22, 2023, 09:00:39 pm by Meridian »