InsOp | Sep 12, 2015 9:46 am |
---|---|
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? |
Eiko | Sep 13, 2015 3:05 pm |
---|---|
Subject: Re: Formula for relation between speed and shots left Hi InsOp, the formula in maxr is: remainingShots = remainingMovePoints * maxShots / maxMovePoints |
nonsinn | Sep 13, 2015 5:07 pm |
---|---|
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). |
InsOp | Sep 13, 2015 5:52 pm |
---|---|
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? |
Eiko | Sep 13, 2015 6:37 pm |
---|---|
Subject: Re: Formula for relation between speed and shots left nearly correct ![]() 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. |