Thread history
Viewing a history listing
Time | User | Activity | Comment |
---|---|---|---|
09:18, 25 August 2017 | Dsekercioglu (talk | contribs) | New thread created | |
16:48, 25 August 2017 | Beaming (talk | contribs) | New reply created | (Reply to Bullet Damage Calculation) |
As I know bullet damage is equal to 4 * BULLET_POWER + 2 * max(0, BULLET_POWER - 1). Why is it 4 * BULLET_POWER here?
4 * BULLET_POWER is quite reasonable. Bullets hits are rare. A bot usually spends more energy firing to the enemy then by hits taken. Thus there is an extra reward/punishment multiplier when a bot get hit. If we remove this term from the equation than bullets with BULLET_POWER <= 1 would do no damage at all. Which would be strange.
The real question why there is 2 * max(0, BULLET_POWER - 1) term. It gives an extra bonus to a high energy bullet. I guess it is the original authors way to reward slow moving (high energy) bullets which have less chance to hit a target. Why the reward is not continuous function of the BULLET_POWER is beyond me.