Hi Guys, I am trying to do a project for automating the combat actions in sniper elite 5 and testing out some scenes , so I am doing the following things:
a)Calculating the target position's(x,y) co-ordinate
b)subtracting the mid point (say for 4k resolution it is (1920,1080))
--> (x-1920,y-1080) this is for getting how much relative to centre (crosshair) i need to move
c)passing the result to my python script(code)
This should make the crosshair land on target and ready to shoot,
for example:
this is the scene, I want the crosshair to face the highlighted target which is at(2110,1084), so I will be sending the values(2110-1920,1084-1080) into my python script
but the problem is while I am sending the values[190,4] (which translates to move 190 right and 4 up ) it is moving more than what is needed and I am landing at this scene which is far more away than mytarget, now this clearly says that i need to pass the value less than 190, after going through this forum I came to know that this has something to do with many things which i clearly ignored (I think something to do with distance maybe 190 is not correct measure i should pass into my code or may be some other things), can you please help me in solving this issue.
(Iam playing the game with all default settings)
(p.s for sniper elite 5 where can i get default multiplier values or set these values in game cause i think this problem can be solved with scaling the inputs according to multiplier values and their higher thresholds)