OpenHV / OpenHV

An Open Source Pixelart Science-Fiction Real-Time-Strategy game

Home Page:https://www.openhv.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missiles mid-air after exploding cause damage to structures

WilliamWeberBerrutti opened this issue · comments

It seems to happen with any projectile too (missiles, electricity, etc).

Yes, I noticed that with AA turret buildings: after an aircraft gets shot down, structures below him get some minor damage.

Keep in mind that warhead spread is defined in 3D within OpenRA and aircraft flies at 2 cells high in OpenHV.

A lot of game engines "cheat" when it comes to spread-in-air either via having a separate z-spread (either via looking up affected targets only within a cylinder instead of using a sphere) or just ignoring z-data in selected cases altogether (for example, TS/RA2 only calculates spread on the Z axis if the weapon exploded at least half a cell above ground and it also halves the spread), but none of such cheats exist in this engine. This also means that without custom code reimplementing the damaging warheads, it's also not possible to trigger different damagewarhead definitions based on explosion altitude.

Maybe the OpenHV aircraft z coordinates could be upped a bit to fix that?