Missile bombard combination

What would you like to see in Freeciv? Do you have a good idea what should be improved or how?
soundnfury
Posts: 16
Joined: Sat Apr 11, 2020 12:09 pm

Missile bombard combination

Postby soundnfury » Tue Oct 06, 2020 9:50 pm

In 3.0 it appears that units with "Bombarder" flag and "Missile" unitclass flag are not destroyed after completing a bombard attack. (In 3.1, AFAICT from the announcements, there's a "Suicide Attack" action but not a "Suicide Bombard".)

I would like to have a V2 unit in my ruleset, which is a bombardment missile: not accurate enough to kill or even deeply damage an individual unit, but just a long-range way to indiscriminately damage all a city's garrison. Unfortunately, when I tested this, the unit survived its attack, despite being a Missile.

louis94
Hardened
Posts: 240
Joined: Thu Apr 25, 2013 10:17 pm
Location: Belgium

Re: Missile bombard combination

Postby louis94 » Wed Oct 07, 2020 9:48 pm

Combine OneAttack with fuel to make sure it dies anyway?

soundnfury
Posts: 16
Joined: Sat Apr 11, 2020 12:09 pm

Re: Missile bombard combination

Postby soundnfury » Wed Oct 07, 2020 9:59 pm

louis94 wrote:Combine OneAttack with fuel to make sure it dies anyway?


I thought of that, but what if it's on a base or carrier? Or in a city and targeting an invading stack just outside?

louis94
Hardened
Posts: 240
Joined: Thu Apr 25, 2013 10:17 pm
Location: Belgium

Re: Missile bombard combination

Postby louis94 » Thu Oct 08, 2020 11:59 am

soundnfury wrote:
louis94 wrote:Combine OneAttack with fuel to make sure it dies anyway?


I thought of that, but what if it's on a base or carrier? Or in a city and targeting an invading stack just outside?


Good points.

Ignatus
Elite
Posts: 365
Joined: Mon Nov 06, 2017 12:05 pm
Location: St.Petersburg, Russia
Contact:

Re: Missile bombard combination

Postby Ignatus » Sun Oct 18, 2020 3:45 pm

I have already requested a Lua callback to handle bombardment result, but it's not done yet... Well, if we decide to make it by Lua, we can try this: make a normal attack missile unit (not necessary missile but AI will use it better), on "action_started_unit_unit" callback of its attack we remove the unit, create another one bombarding, :move() it towards the target provoking bombardment and then kill the new unit. I hope it works.