Intermidiate C++ programmer. I am trying to piece together a more simplex version of an aimbot. One that uses color and enemy shape to distinguish it. I know what I intend this coding to do, but I am not sure how to execute it. (PS3 system for call of duty: blackops)
*detect polygons/colors on enemy
*detect angle and distance to enemy
*adjust gun to aim directly at enemy
*(autoshoot execution)
*stop execution when enemy disappears
*restart execution when "hotkey" is pressed

Any help would be appreciated on this.