aliens

Author Topic: [DONE] Support for fake underwater globe textures  (Read 555 times)

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8626
    • View Profile
[DONE] Support for fake underwater globe textures
« on: September 09, 2019, 03:33:41 pm »
I don't know if Meridian or the coders are going to include that kind of coding in the future build of OXCE this is the only critical missing link in making my mod work.

Added support for fake underwater globe textures.

You can now mark some of the textures as underwater, like this:

Code: [Select]
globe:
  textures:
    - id: 4                                        # sahara
      fakeUnderwater: true
    - id: 7                                        # jungle around sahara
      fakeUnderwater: true

When a UFO lands on such a globe texture, it will use a different alien deployment (with _UNDERWATER suffix).
For example if a medium scout lands there, it will use STR_MEDIUM_SCOUT_UNDERWATER deployment, instead of STR_MEDIUM_SCOUT deployment.

And if you use depth > 0 in the underwater deployment (or terrain), the alien races will also be automatically replaced (using _UNDERWATER suffix), same as in TFTD.

When targeting the UFO, STR_MEDIUM_SCOUT starting condition would be checked (since we don't know where will they land yet); when confirming xcom craft landing either STR_MEDIUM_SCOUT or STR_MEDIUM_SCOUT_UNDERWATER starting condition will be checked (depending on where the UFO actually landed/crashed).

Attached a test mod (zip) and a test save.

Requires OXCE 5.6.3 or higher.
Build for testing: https://lxnt.wtf/oxem/builds//Extended/Extended-5.6.2-5bb5197f4-2019-09-09-win64.7z
« Last Edit: September 09, 2019, 03:52:12 pm by Meridian »