Page 1 of 1

Can Bombard attack NOT end movement?

Posted: Mon Apr 29, 2019 9:15 pm
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?

Re: Can Bombard attack NOT end movement?

Posted: Tue Apr 30, 2019 9:57 am
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.

Re: Can Bombard attack NOT end movement?

Posted: Tue Apr 30, 2019 3:56 pm
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.

Re: Can Bombard attack NOT end movement?

Posted: Thu May 16, 2019 7:07 pm
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.

Re: Can Bombard attack NOT end movement?

Posted: Fri May 17, 2019 9:41 am
by Corbeau
Ignatus wrote:bombardment radius

Is this a ruleset/server feature or coding only?

Re: Can Bombard attack NOT end movement?

Posted: Fri May 17, 2019 3:17 pm
by Ignatus
It's a ruleset parameter. E.g. in webperimental/game.ruleset (2.6)

Code: Select all

bombard_max_range = 3

Re: Can Bombard attack NOT end movement?

Posted: Sat May 18, 2019 7:56 am
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.

Re: Can Bombard attack NOT end movement?

Posted: Tue May 21, 2019 9:24 pm
by Ignatus
Requested a callback that could give some mp back: HRM#817749.

Re: Can Bombard attack NOT end movement?

Posted: Wed May 22, 2019 9:44 am
by Corbeau
Cool. Thanks.