Scripts / Free Mouse Aiming

Author
Message
2knuckels
13
Years of Service
User Offline
Joined: 30th Nov 2010
Location:
Posted: 8th Aug 2016 07:40
Is there any solution to aim free on the whole screen with the mouse?
In the forums I did not find a topic on that.

Any answer would help. Thanks
PM
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 8th Aug 2016 13:53
You can free the mouse with ActivateMouse() and DeactivateMouse()
you will need to code your own system for targeting or whatever you wish to do with it though and you will also need to put your own cross-hair using PasteSpritePosition("name",g_MouseX,g_MouseY)
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
2knuckels
13
Years of Service
User Offline
Joined: 30th Nov 2010
Location:
Posted: 8th Aug 2016 21:02
Thanks for the quick reply, but that is exactly the problem the aiming.
Because you have get the position of the Bullet in the 3D world.
In gamemaker I solved this with a color trick, but that is very slow and I think unique to gamemaker drawing routines.
(what I did:
- Draw the screen to a canvas, and give every possible target a color
- Get the color from my mouse position, and check against a target color.
- redraw all target with its screen color to the canvas
- draw canvas on screen.

(The color space is not really limited through this method [approx. 10 RGB vals / target), but its slow)

Has anyone a fast more elegant solultion for off center 3d aiming

PM

Login to post a reply

Server time is: 2024-05-03 23:09:43
Your offset time is: 2024-05-03 23:09:43