The ultimate aiming algorithm ? -
14-01-2004
I wonder if you guys already thought about this.
Currently the only feedback that our bots have to control their aiming is of 2 types:
1°) Whether their crosshair is on the enemy or not yet
2°) Whether there is some recoil to the gun to correct or not
Nevertheless playing with the bots for some time you all noticed that it was not sufficient yet to be perfectly human-like. It does not "feel" good.
In earlier versions of my WIP bot I had tried to simulate the "screen resolution" by snapping the bot's crosshair to the nearest angle corresponding to a pixel on the screen, that is, the bot's field of view being 90° width, snap it to portions of 90/1024 degrees horizontally, and for the vertical 60°, snap it to portions of 60/768 degrees vertically. However although this was a definite improvment it did not feel "perfectly good" either.
I believe the crosshair movement is not faulty, because since Killaruna and Aspirin invented the algorithm that I put in the BotAim plugin, the bot's crosshair movement has never been more human-like, especially when coupled with a system to make movement on the vertical axis influence on the horizontal one and vice-versa. The BotAim plugin algorithm is nearly perfect, I don't want to change it. I believe it's rather a matter of missing something like common sense.
I was thinking about the way we humans lock on and fire at a target. The bots lock on target quite well already using the existing algorithms. But what lacks to them is a correction of their target point according to the actual bullet hit points. If you aim right on the head of your enemy and pull the trigger, and that you notice that your bullets go left, you will move your crosshair RIGHT. And vice versa. It is not a problem of recoil, because recoil always lift the weapon in the same direction ; it's rather a problem of correcting by hand the weapon's inaccuracy.
Would it be possible to hook on the last TraceLine the bot fired to have it determine the bullet hit point, estimate the angle between real and ideal, and then modify the aiming angles in consequence ? What do you think is lacking to our current aiming algorithms ?
Gentlemen, DISCUSSION:
RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
Last edited by Pierre-Marie Baty; 14-01-2004 at 20:16..
|