aliens

Author Topic: [Suggestion]Possibility to specify tile for weapon pile  (Read 276 times)

Offline Cooper

  • Colonel
  • ****
  • Posts: 189
  • Chryssalids are awesome
    • View Profile
[Suggestion]Possibility to specify tile for weapon pile
« on: April 14, 2025, 01:03:53 am »
Sometimes with terrains that does not spawn the craft, it would be really nice to be able to control where the weapon pile would be located.

For example, a map in Alien Takeover has two different mapblocks were you spawn, but only one of them is an exit. So if the weapon pile spawn in the wrong mapblock, you would lose all the equipment from the weapon pile if you have to abort the mission.

Possible solution 1: make the weapon pile be where the first soldier spawns (who is usually in the front of the Skyranger) when there is no craft.
Code: [Select]
alienDeployments:
  - type: STR_SOME_MISSION_WITHOUT_CRAFT
    weaponPileOnFirstSoldier: true

Possible solution 2 (my favorite I think): An option on the terrain mapblock to specify the exact tile. If multiple map blocks of that type spawn it could spawn in the first one, or just a random one. And maybe in cases where the Skyranger would spawn in this terrain anyways, the weapon pile would still be in the Skyranger even if a mapblock has a specified weapon pile tile.
Code: [Select]
terrains:
  - name: STR_SOME_TERRAIN
    mapBlocks:
      - name: NAME01
        with: 10
        length: 10
        weaponPile: [1, 5, 0] # default empty

Offline CrazedHarpooner

  • Colonel
  • ****
  • Posts: 192
    • View Profile
Re: [Suggestion]Possibility to specify tile for weapon pile
« Reply #1 on: April 14, 2025, 10:23:46 am »
As far as I can tell, option one is already in the engine as the pile will be placed where the 1st soldier spawns, the issue is that if an x-com spawn point is defined outside an entry/exit tile, then the pile could potentially be placed on that same tile if the 1st soldier is placed there. My recommendation to mapblock modders is to ensure that all x-com spawn nodes are placed on those entry or exit nodes in a mapblock.

Option 2 would be handy to override the behaviour, could even have it randomized via a list of positions instead of a fixed one.