Exploit: Leviathan on land
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.
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.
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?
Reef and Warlord are already untransportable though.
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.
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.
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.
This is now fixed by making subs attackable on land.