Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Custom Crosshairs

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
abhijeet1001
Advanced Cheater
Reputation: 0

Joined: 10 Apr 2013
Posts: 87

PostPosted: Mon Dec 22, 2014 9:45 am    Post subject: Custom Crosshairs Reply with quote

Hi ,
i saw CE has Set custom crosshair option under the D3D tab,used it n its pretty great for snipers , wanted to know how it can be done in lua, tried reading main lua but didnt got any thing which will help me in that. Any help is appreciated Smile thanks
Back to top
View user's profile Send private message
aikoncwd
Grandmaster Cheater
Reputation: 23

Joined: 21 Dec 2012
Posts: 591
Location: Spain (Barcelona)

PostPosted: Mon Dec 22, 2014 10:31 am    Post subject: Re: Custom Crosshairs Reply with quote

abhijeet1001 wrote:
Hi ,
i saw CE has Set custom crosshair option under the D3D tab,used it n its pretty great for snipers , wanted to know how it can be done in lua, tried reading main lua but didnt got any thing which will help me in that. Any help is appreciated Smile thanks


You can do the same with a piece of paper + tape. Or use a rotring pen to draw a cross in the middle of your monitor.

_________________
Hey Hitler
Test here your skill with CheatEngine, I coded a challenge for you. Try to beat it!
HERE
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25296
Location: The netherlands

PostPosted: Mon Dec 22, 2014 11:35 am    Post subject: Reply with quote

with lua:
first create the d3d hook
then create a texture with the picture you like ( http://forum.cheatengine.org/viewtopic.php?t=578341)
then create a sprite that uses that texture and set it's x and y to -1 (center on screen)

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
abhijeet1001
Advanced Cheater
Reputation: 0

Joined: 10 Apr 2013
Posts: 87

PostPosted: Mon Dec 22, 2014 12:06 pm    Post subject: Reply with quote

Code:
d3dhook_initializeHook()

CrossHair = d3dhook_createTexture("C:\Users\Dell 15 R\Desktop\crossh19.png")


CHsprite=d3dhook_createSprite(CHTexture);

d3dhook_renderobject_setX(CHsprite, -1)
d3dhook_renderobject_setY(CHsprite, -1)



tried it , but gives me Access Violation error and the game becomes unresponsive
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25296
Location: The netherlands

PostPosted: Mon Dec 22, 2014 1:17 pm    Post subject: Reply with quote

Code:

h=createD3DHook()
p=createPicture()
p.loadFromFile([[C:\Users\Dell 15 R\Desktop\crossh19.png]])
t=h.createTexture(p)
s=h.createSprite(t)
s.x=-1
s.y=-1

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
abhijeet1001
Advanced Cheater
Reputation: 0

Joined: 10 Apr 2013
Posts: 87

PostPosted: Mon Dec 22, 2014 1:31 pm    Post subject: Reply with quote

Dark Byte wrote:
Code:

h=createD3DHook()
p=createPicture()
p.loadFromFile([[C:\Users\Dell 15 R\Desktop\crossh19.png]])
t=h.createTexture(p)
s=h.createSprite(t)
s.x=-1
s.y=-1


thnx that wrked great Smile
Back to top
View user's profile Send private message
spook202
How do I cheat?
Reputation: 0

Joined: 16 Jul 2012
Posts: 7

PostPosted: Tue Dec 30, 2014 11:49 am    Post subject: Reply with quote

This isn't related to Cheat Engine but might be useful.
I use a program called Overlap Wallpaper.

I won't post the link in case its against Forum Rules but you can find it on Google if you search for "Overlap Wallpaper Freeware" there are no ads or crap on it either.

Its essentially what DarkByte gave you but it has a GUI and lets you resize and move it around easily.

I mainly use it for Far Cry 4 to aid in long range bow kills.
Back to top
View user's profile Send private message
abhijeet1001
Advanced Cheater
Reputation: 0

Joined: 10 Apr 2013
Posts: 87

PostPosted: Wed Dec 31, 2014 2:08 pm    Post subject: Reply with quote

spook202 wrote:
This isn't related to Cheat Engine but might be useful.
I use a program called Overlap Wallpaper.

I won't post the link in case its against Forum Rules but you can find it on Google if you search for "Overlap Wallpaper Freeware" there are no ads or crap on it either.

Its essentially what DarkByte gave you but it has a GUI and lets you resize and move it around easily.

I mainly use it for Far Cry 4 to aid in long range bow kills.


Thnks mate
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites