Zero-K
Zero-K copied to clipboard
Claymore cannot shoot across the shoreline
Reported in #zkdev (Helwor): Claymore cannot shoot across the shoreline.
- From land at a target in water: the rolled charge follows the ground 5 elmos up and explodes where the water is about 5 deep. The charge is not a water weapon, so the engine detonates it on entering water (
LuaRules/Gadgets/weapon_projectile_retarget.lua:106-113, RecoilProjectileHandler.cpp:627-644). - From sea at a target on land: nothing is fired. A torpedo fired from above the water can only target things in water (Recoil
TorpedoLauncher.cpp:46), and the land charge is off at sea (scripts/hoverdepthcharge.lua:183).
This has been the case since the Claymore rework in 7807360ea3f, so it may be intended. Options:
- Keep it and mention it in the unit description.
- Let the rolled charge cross water (more reach for Claymore).
- Don't roll a charge at targets it cannot reach, so it doesn't waste its reload (same reach).
- Give a Claymore at sea a way to hit land near the shore (needs a new mechanic).
From reading the code; not tested in game.
Filed with help from Claude Code.