Zero-K icon indicating copy to clipboard operation
Zero-K copied to clipboard

Exploit: Leviathan on land

Open gmueckl opened this issue 11 years ago • 7 comments

It is possible to put the Leviathan sub on land. One procedure for this would be: build it in water, raise the bottom under it to lift it out of the water and have it picked up by a transport and placed on land. This is not bad, but seemingly not anticipated by the game logic. The Leviathan stays immune to damage from land based units while on land. Players already exploit this to fire tactical nukes at enemy bases.

gmueckl avatar Apr 17 '15 00:04 gmueckl

for the record: ground weapon deal very little damage to sub because it fixed sub getting AOE damage from ground weapon due to it floating too close to surface.

xponen avatar Apr 17 '15 20:04 xponen

Making Leviathans untransportable seems a bit harsh to me. I'd rather like to see some logic to switch taking damage from ground units on and off depending on whether the sub is above water.

I'd try to write that myself, but I don't yet know enough about the game logic code to figure out how to get it in. Any pointers?

gmueckl avatar Apr 17 '15 20:04 gmueckl

Reef and Warlord are already untransportable though.

sprunk avatar Apr 18 '15 22:04 sprunk

Sprunk is trying to hack around it without actually fixing the underlying issue. Reef and warlord are non issues because land weapons can hurt them. You can still terraform the leviathan rendering it invulnerable to everything except ravens. Tac nukes wont even work, I've tried.

saucyjack42 avatar Apr 23 '15 19:04 saucyjack42

I looked into what it takes to make a real fix. This seems to require more work than one would naively expect. As far as I understand the engine it is currently not possible to toggle damage from a weapon category on a per-unit bases. The relevant category flags exist only once per UnitDef/WeaponDef, which are shared between unit. In order to fix the damage model for above-ground submarines these flags would need to be copied to the individual units instead. I don't know how involved such a change would be.

gmueckl avatar Apr 23 '15 21:04 gmueckl

It is possible to replace armordef completely with a UnitPreDamaged gadget that decreases damage for weapons that lack certain categories, and (very likely) change the "armoredness" parameter via unitscript SetSfxOccupy event.

Anarchid avatar Apr 24 '15 08:04 Anarchid

This is now fixed by making subs attackable on land.

Anarchid avatar Apr 28 '15 16:04 Anarchid