OpenXcom Forum

Modding => Released Mods => Topic started by: Marrik on October 26, 2019, 07:05:30 am

Title: Building collapse mods?
Post by: Marrik on October 26, 2019, 07:05:30 am
Are there any mods that make it so that a building will collapse if you destroy everything holding the roof up? As it is, even if you completely obliterate the first floor of a building, the 2nd floor just keeps floating there unless you destroy every single piece of it.
Title: Re: Building collapse mods?
Post by: luke83 on October 26, 2019, 10:54:23 am
NOPE, only APOC has this mechanic....It would be nice to have in OXC but it wont be easy to implement.
Title: Re: Building collapse mods?
Post by: Marrik on October 26, 2019, 08:01:29 pm
Damn :( That's the one really big flaw in X-com in my opinion.
Title: Re: Building collapse mods?
Post by: LytaRyta on October 27, 2019, 11:35:56 pm
^^ ..but in contrary the ppls, civilians in X-Com are lucky due this - the roofs and upper etajes of buildings just dont collapse at them then!
Title: Re: Building collapse mods?
Post by: cptelerium on December 06, 2019, 12:29:54 am
Damn :( That's the one really big flaw in X-com in my opinion.


I agree, that would be so nice to have. Ufo 3 (Apocalypse) does it right?

That should be done imo as an engine change (in C++) that might be enabled by mod (or possibly by advanced options too).

Does not seem to be too hard to implement - I would guess.
Title: Re: Building collapse mods?
Post by: cptelerium on December 06, 2019, 01:51:52 am
I guess this code has best example how to check map tiles:

https://github.com/OpenXcom/OpenXcom/blob/master/src/Battlescape/TileEngine.cpp