Home » MODDING HQ 1.13 » Flugente's Magika Workshop » New Feature: Collapsing roofs
Re: New Feature: Collapsing roofs[message #337258] Tue, 28 October 2014 01:27 Go to previous messageGo to previous message
Flugente

 
Messages:3507
Registered:April 2009
Location: Germany
A few more clarifications:
  • Non-flat rooftops can also be destroyed. They are multi-tile entities, however. Due to their nature, they will be destroyed if their 'root'-tile is destroyed. There are sometimes other roof tiles beneath them. This will have a somewhat odd effect - the flat tiles will be destroyed, but the slanted tiles will remain. Engine limitation.
  • @smeag: Well, with Fortifications revisited you can. However it seems the pathing on player-built roofs doesn't work correctly, but this is outside the scope of this feature.
  • @Ocular: Oddly enough, this effect only appears on some roofs, and then only on certain tiles. It also seems that saving and reloading removes this glitch. It seems to me some internal pathing structure isn't correctly updated upon destruction, but I could not find it yet.
  • @Sevenfm: hmm. the sounds are good, but don't seem that much better to me.
    As the same roof type is used for different houses, we can't rely upon it's material. We could use the type of the walls though, as I do for armour, but that's a detail I currently don't have time for. But you know how to code, so feel free to add this Smile
  • @Slax: Frags are bullets. Bullets don't destroy structures unless you use anti-materiel ammo.
  • yarco
    And what about anti material rifles? can we shoot through the roofs?Smile
    Hitting a roof itself is ugly to code due to the engine. But as anti-materiel rifles can destroy walls, this can also damage roofs along the way (since r7618 that is Wink )
I added two things in r7618:
  • Fixed the issue smeagol reported - at the source of the explosions the roof was always destroyed. The situation in the video from above is still the same, there is however the chance that a mortar shell doesn't do enough damage and does not destroy the roof.
  • Anti-material rifles damage walls. If a wall gets destroyed, the roof on top of it can also be destroyed. However, note that the damage done by these rifles to structures is relatively small (compared to, say, C1 or a LAW). It is currently unlikely you will destroy a lot of roof tiles with these rifles alone.
A problem of roofs is that their structures have no hitpoints. That is, there are two variables for that, but one is overwritten by another required variable, and the other one is always 0. Roofs were simply not meant by Sirtech to be destroyed. For this reason, I can currently only destroy a roof or not.
I could try to alter that by filling the second variable with data, but knowing the game, this will likely screw up something somewhere. I want to research that first Wink. I already coded this, it jsut has to be commented in Wink

Report message to a moderator

Captain

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Proof of concept: JA2 in 3D
Next Topic: Not a feature: classic air raids
Goto Forum:
  


Current Time: Mon Dec 02 14:34:10 GMT+2 2024

Total time taken to generate the page: 0.01740 seconds