Missile can be launched only from ship

Contribute, display and discuss rulesets and modpacks for use in Freeciv here.
Wahazar
Hardened
Posts: 198
Joined: Mon Jul 02, 2018 1:49 pm

Missile can be launched only from ship

Postby Wahazar » Mon Oct 01, 2018 10:41 pm

I added Missile class as a cargo for advanced bomber, but such missile cannot be launched or unloaded during flight - it can be used only if enemy is at nearby tile (which is suicidal in case of nuclear weapon), but can't fly on its own.
Is it a bug or feature?

User avatar
Caedo
Elite
Posts: 465
Joined: Sun Feb 10, 2013 10:21 pm
Location: Stuttgart, Germany

Re: Missile can be launched only from ship

Postby Caedo » Tue Oct 02, 2018 8:07 am

I'm assuming your Advanced Bomber is an Unreachable unit? In that case, you'll want to take a look at the "embarks" and "disembarks" fields for unit types. Should be documented in units.ruleset.
~S.C. L.

Wahazar
Hardened
Posts: 198
Joined: Mon Jul 02, 2018 1:49 pm

Re: Missile can be launched only from ship

Postby Wahazar » Tue Oct 02, 2018 9:52 pm

Caedo wrote:I'm assuming your Advanced Bomber is an Unreachable unit? In that case, you'll want to take a look at the "embarks" and "disembarks" fields for unit types. Should be documented in units.ruleset.

Och, so it is a purpose of these flags, thanks, works perfectly now - bomber can carry and launch medium range cruise missile or short range atom bomb, but can't launch long-range nuclear missile (can be used for transporting these to a base, though).