OpenXcom Forum
Modding => Help => Topic started by: Hyper2Snyper on December 20, 2017, 06:06:33 am
-
is it possible to make it so you could have multiple crafts in one hangar?
-
I am also interested in knowing if this is possible.
If two craft can be housed in one facility are both craft's base sprites rendered overlapping on the hanger's tile or can you choose which one is displayed?
(EDIT)
I did some quick tests with this code:
extraStrings:
- type: en-US
strings:
STR_HANGAR_TEST: "HANGAR TEST"
facilities:
- type: STR_HANGAR_TEST
spriteShape: 9
spriteFacility: 9
size: 2
buildCost: 200000
buildTime: 2
monthlyCost: 25000
crafts: 2
mapName: XBASE_16
(These are the results):
(1) You can have two craft (or theoretically more) stored in one hangar.
(2) The first craft placed in the hangar will have it's base sprite displayed, the other will not.
(3) Even when the first craft is airborne and the second craft is still in the hangar it will not be displayed, the hangar will appear to be empty visually.
-
Could you make a 1x1 Hangar that displays the craft, and just have more hangars?
-
Cool thanks
-
Could you make a 1x1 Hangar that displays the craft, and just have more hangars?
Just tested it and a 1x1 hangar functions without a problem.
I used the workshop tile for this example code:
extraStrings:
- type: en-US
strings:
STR_HANGAR_TEST: "HANGAR TEST"
facilities:
- type: STR_HANGAR_TEST
spriteShape: 1
spriteFacility: 20
buildCost: 800000
buildTime: 2
monthlyCost: 35000
mapName: XBASE_03
crafts: 1
The only catch appears to be a visual one. The base craft sprites or the 1x1 hangar tile will need to be designed to prevent it from overlapping where X-Com facilities traditionally have their walls drawn.
-
Cool
-
What happens when the base is attacked?
-
I haven't yet been able to test if the game will behave normally if the base is attacked, but in theory it should not be effected
All X-Com craft are evacuated when a base is attacked so they are not present as an object in the hangar area maps.
mapName: XBASE_03
The above code should be what is determining which base map segment is added to the battlescape for the custom hangar section.
-
The question is if they are still in place after the battle. If I'm not mistaken, the hangars can be destroyed by battle, thus the game checks what to do with craft after the battle.
I've seen a bug when items went missing after the base was attacked. There's no guarantee the engine will handle unexpected situation like multiple craft the way you want it.