| Logic 1.03 | Kev | 1687 | 2006/07/26 | |
| Logic 1.1 | Kev | 1687 | 2006/07/26 | |
The code for HawkOnFire's bullet power selection/shooting isif(getGunTurnRemaining() == 0 && myEnergy > 1) { The gun turn is standard HeadOnTargeting: setTurnGunRightRadians(Utils.normalRelativeAngle(absoluteBearing(target.position, myPosition) - getGunHeadingRadians())); |
The code for HawkOnFire's bullet power selection is.setFire(Math.min(Math.min(myEnergy/6, 1300/distanceToTarget), target.energy/3)); The gun turn is standard HeadOnTargeting (shooting towards the last position you've scanned the enemy at): setTurnGunRightRadians(Utils.normalRelativeAngle(absoluteBearing(target.position, myPosition) - getGunHeadingRadians())); |
I think the radar shouldn't have much effect on the score, and some movements rely on a radar lock to dected EnergyDrop for bullet dodging. For now, I'm leaving the radar non-standardized. I've also removed some of the sample code because it's confusing and doesn't behave the way it should in some cases. The gun doesn't have to be word for word from HawkOnFire as long as it's pure HeadOnTargeting (although the energy management must stay same). -- Kev |