Difference between revisions of "Averaged Bearing Offset Targeting"
Jump to navigation
Jump to search
m (adding category "Angular Targeting") |
m (remove Angular Targeting category) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{outdated|Visit Count Stats}} | ||
An early form of [[statistical targeting]] that fires at the average of each recorded [[bearing offset]] that would have successfully hit the enemy. This is one of the simplest forms of statistical targeting. | An early form of [[statistical targeting]] that fires at the average of each recorded [[bearing offset]] that would have successfully hit the enemy. This is one of the simplest forms of statistical targeting. | ||
Line 12: | Line 13: | ||
* [[Waves]] | * [[Waves]] | ||
− | |||
− | |||
[[Category:Advanced Targeting Strategies]] | [[Category:Advanced Targeting Strategies]] | ||
− | |||
[[Category:Statistical Targeting]] | [[Category:Statistical Targeting]] | ||
− |
Latest revision as of 23:00, 6 September 2011
The ideas presented on this page may be considered outdated. For a more modern system that builds on these same concepts, see: Visit Count Stats |
An early form of statistical targeting that fires at the average of each recorded bearing offset that would have successfully hit the enemy. This is one of the simplest forms of statistical targeting.
Pseudocode
- Each tick or each time you fire a bullet, fire a Wave to gather a bearing offset that would have hit the enemy.
- A wave consists of: firing bot's position, bearing to enemy at fire time, the wave's velocity (based on velocity of current bullet power), and the wave's distance traveled.
- Each tick, advance all active waves by their velocity. A wave "hits" when the distance traveled exceeds the distance from the wave source to the enemy's current location.
- The bearing offset gathered is the bearing from the wave source to the new enemy location minus the original bearing to the enemy.
- Keep an average of all bearing offsets gathered and use this average as your firing angle.