Mechanized Assault & eXploration Reloaded



#1 Sep 12, 2015 8:46 am
InsOp Offline
Mitglied
Registered since: Sep 12, 2015
Posts: 3


Subject: Formula for relation between speed and shots left
Hey folks,
I wondered how the relation is between the speed left and shots left.
The AA-Vehicle e.g. cant shoot when it moved one step. But the Bomber can.
Now are there thresholds to any of those values or is it done for each unit individually?
-> is there a formula?
↑  ↓

#2 Sep 13, 2015 2:05 pm
Eiko Eiko Offline
Moderator, Developer
Registered since: Aug 03, 2007
Posts: 604


Subject: Re: Formula for relation between speed and shots left
Hi InsOp,

the formula in maxr is:
remainingShots = remainingMovePoints * maxShots / maxMovePoints
↑  ↓

#3 Sep 13, 2015 4:07 pm
nonsinn nonsinn Offline
G-Mod, Approved Member
Registered since: Apr 02, 2012
Posts: 254


Subject: Re: Formula for relation between speed and shots left
Some units like the bomber have the boolean 'Can_Drive_And_Fire' set to YES. Those units can move without losing shots.

All others fighting units will lose shots according to the formula Eiko mention.

⇒ for your AA-Vehicle: get a 2nd shot and you can move a little bit before attacking (1shot lost from moving and with the 2nd one you can attack).
[15:23:19] nonsinn [..] heißt nun bug-hunter
[19:58:09] Eiko_ [..] heißt nun mother-of-bugs
[20:38:11] <bug-hunter> mother-of-bugs: ..argh..
[20:38:26] <@mother-of-bugs> want some new bugs?
↑  ↓

#4 Sep 13, 2015 4:52 pm
InsOp Offline
Mitglied
Registered since: Sep 12, 2015
Posts: 3


Subject: Re: Formula for relation between speed and shots left
ah I see, thank you for your insight!

edit: so the consequence of a shot is for the remainingMovePoints is like this:

remainingMovePoints = (remainingShots * maxMovePoints) / maxShots

and i guess the result is always rounded, isnt it?
This post has been edited 2 times. Last edit on Sep 13, 2015 5:30 pm by InsOp. ↑  ↓

#5 Sep 13, 2015 5:37 pm
Eiko Eiko Offline
Moderator, Developer
Registered since: Aug 03, 2007
Posts: 604


Subject: Re: Formula for relation between speed and shots left
nearly correct Smiling

Since the unit can have moved before the short, the formula is implemented this way:

MovePointsAfterShot = MovePointsBeforeShot - (maxMovePoints / maxShots)

And yes, result is always rounded.
This post has been edited 1 times. Last edit on Sep 13, 2015 5:38 pm by Eiko. ↑  ↓

Pages (1): 1

Related Topics


All times are GMT +01:00. Current time: 12:56 am.