Home » MODDING HQ 1.13 » Flugente's Magika Workshop » New Feature: Collapsing roofs
Re: New Feature: Collapsing roofs[message #337206] Mon, 27 October 2014 13:04 Go to previous messageGo to previous message
Flugente

 
Messages:3507
Registered:April 2009
Location: Germany
smeagol
Okay... I managed to get it working in AIMNAS. Pretty nice feature. :pitchfork:

Not sure if it is intended that a single handgrenade (even a small M67) can bring down an entire roof (and the building with it). Seems a bit overpowered.

I already powered it down quite a bit compared to stock 1.13 (1.13 values in parenthesis):

Damage 5 (10)
Stun Damage 5 (10)
Volatility 0 (2)
Final Radius 1 (1)
Mag Size 1 (1)
Fragments 5 (70)
Frag Type Ball small (Ball)
Frag Damage 5 (22)
Frag Range 5 (100)
Horz Degree 60 (60)
Vert Degree 2 (2)
Directional yes (no)

Result: Small grenade thrown on a roof on a 8 x 11 building brings down the complete roof.

I'd say this is still too good... A grenade should have a chance to damage the roof (not automatically destroy it 100% of the time), and not bring down the entire thing.

Tests were made on flat roofs and regular slant house roofs.

Any idea what's going wrong or is it intended?
When collapsing a roof, I loop over all connected roof tiles and check whether there is a wall beneath. If there is, I remember its armour value. The maximum of these then counts as the armour of the roof. If damage > armour, or damage > (distance to source of explosion) * armour, collapse the roof.

Perhaps the armour values of these walls are very low? I got it to work with AIMNAS yesterday and had no such issues.

Constructing a wall (AIMNAS) and then destroying it collapses overhead roof tiles. Deconstructing would work similar (it also damages the roof). However, for roof collapsing I check for the structure flag WALLSTUFF, while for deconstructing I check for GENERIC and WIREFENCE. So this would only work for walls that have both flags, not sure if you have any of those.

I will answer the rest of the questions raised in this thread when I'm back from work.

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 15:00:36 GMT+2 2024

Total time taken to generate the page: 0.02184 seconds