Can Bombard attack NOT end movement?

Contribute, display and discuss rulesets and modpacks for use in Freeciv here.
Post Reply
User avatar
Corbeau
Elite
Posts: 1291
Joined: Mon Jan 13, 2014 11:13 pm

Can Bombard attack NOT end movement?

Post by Corbeau »

Like the title says. Regardless of how many MPs a bombarding unit has left, after it attacks, its movement ends. Is it possible to switch this so that the unit can move on?
--
* Freeciv LongTurn, a community of one-turn-per-day players and developers
* LongTurn Blog - information nexus with stuff and stuff and stuff
* Longturn Discord server; real-time chatting, discussing, quarrelling, trolling, gaslighting...
Ignatus
Elite
Posts: 644
Joined: Mon Nov 06, 2017 12:05 pm
Location: St.Petersburg, Russia
Contact:

Re: Can Bombard attack NOT end movement?

Post by Ignatus »

Currently not, it is hardcoded in server/unithand.c. As far as I can see, you even can not give the mp back by a callback, since action_started_unit_unit is called before the bombardment, and then nobody is killed.

And what's the trouble? A bombarder that bombs and runs (or bombs and bombs and bombs) seems to be an imbalance.
User avatar
Corbeau
Elite
Posts: 1291
Joined: Mon Jan 13, 2014 11:13 pm

Re: Can Bombard attack NOT end movement?

Post by Corbeau »

Ignatus wrote:And what's the trouble? A bombarder that bombs and runs (or bombs and bombs and bombs) seems to be an imbalance.
Only if it's a Bomber (airplane). However, I'm thinking about Partisans. Hit'n'run tactics, not much damage, but some disruption and hard to catch.
--
* Freeciv LongTurn, a community of one-turn-per-day players and developers
* LongTurn Blog - information nexus with stuff and stuff and stuff
* Longturn Discord server; real-time chatting, discussing, quarrelling, trolling, gaslighting...
Ignatus
Elite
Posts: 644
Joined: Mon Nov 06, 2017 12:05 pm
Location: St.Petersburg, Russia
Contact:

Re: Can Bombard attack NOT end movement?

Post by Ignatus »

Only close thing I can imagine - set bombardment radius to more than 1, then the attacked side would not easily see where the attacker is. But this parameter is currently set only for all bombarders in the ruleset.
User avatar
Corbeau
Elite
Posts: 1291
Joined: Mon Jan 13, 2014 11:13 pm

Re: Can Bombard attack NOT end movement?

Post by Corbeau »

Ignatus wrote:bombardment radius
Is this a ruleset/server feature or coding only?
--
* Freeciv LongTurn, a community of one-turn-per-day players and developers
* LongTurn Blog - information nexus with stuff and stuff and stuff
* Longturn Discord server; real-time chatting, discussing, quarrelling, trolling, gaslighting...
Ignatus
Elite
Posts: 644
Joined: Mon Nov 06, 2017 12:05 pm
Location: St.Petersburg, Russia
Contact:

Re: Can Bombard attack NOT end movement?

Post by Ignatus »

It's a ruleset parameter. E.g. in webperimental/game.ruleset (2.6)

Code: Select all

bombard_max_range = 3
Ignatus
Elite
Posts: 644
Joined: Mon Nov 06, 2017 12:05 pm
Location: St.Petersburg, Russia
Contact:

Re: Can Bombard attack NOT end movement?

Post by Ignatus »

Or it would not help. The server sends to the client combat info that always shows combating units within the player's sight, even if both units are invisible otherwise. At least, so it is designed in 2.6.
Ignatus
Elite
Posts: 644
Joined: Mon Nov 06, 2017 12:05 pm
Location: St.Petersburg, Russia
Contact:

Re: Can Bombard attack NOT end movement?

Post by Ignatus »

Requested a callback that could give some mp back: HRM#817749.
User avatar
Corbeau
Elite
Posts: 1291
Joined: Mon Jan 13, 2014 11:13 pm

Re: Can Bombard attack NOT end movement?

Post by Corbeau »

Cool. Thanks.
--
* Freeciv LongTurn, a community of one-turn-per-day players and developers
* LongTurn Blog - information nexus with stuff and stuff and stuff
* Longturn Discord server; real-time chatting, discussing, quarrelling, trolling, gaslighting...
sveinung
Elite
Posts: 548
Joined: Wed Feb 20, 2013 4:50 pm

Re: Can Bombard attack NOT end movement?

Post by sveinung »

Corbeau wrote:Regardless of how many MPs a bombarding unit has left, after it attacks, its movement ends. Is it possible to switch this so that the unit can move on?
In 3.1 you can use the Action_Success_Actor_Move_Cost effect.
Post Reply