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 


Air Break

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

Joined: 22 Jun 2021
Posts: 232

PostPosted: Tue Dec 07, 2021 3:09 pm    Post subject: Air Break Reply with quote

So i'm making air break (game speed slows and adds an ability to control player's character or object,used looking coordinates for air break),i've already made a hotkeys that regulate height,but the problem is i can't do the side one
Code:
if isKeyPressed(VK_NUMPAD3) then
writeFloat(0xAAB144,readFloat(0xAAB144)-1) --Height coordinate(Y coord)
end
if isKeyPressed(VK_NUMPAD9) then
writeFloat(0xAAB144,readFloat(0xAAB144)+1) --Height coordinate(Y coord)
end
if isKeyPressed(VK_NUMPAD2) then
writeFloat(0xAAB140,readFloat(0xAAB140)-readFloat(0xAAB1C0)/2) --Move backwards (X and Z coords)
writeFloat(0xAAB148,readFloat(0xAAB148)-readFloat(0xAAB1C8)/2) --Move backward (X and Z coords)
end
if isKeyPressed(VK_NUMPAD8) then
writeFloat(0xAAB140,readFloat(0xAAB140)+readFloat(0xAAB1C0)/2) --Move forward (X and Z coords)
writeFloat(0xAAB148,readFloat(0xAAB148)+readFloat(0xAAB1C8)/2) --Move forward (X and Z coords)
end
if isKeyPressed(VK_NUMPAD4) then
writeFloat(0xAAB140,readFloat(0xAAB140)-readFloat(0xAAB1C0)*2) --Left
writeFloat(0xAAB148,readFloat(0xAAB148)-readFloat(0xAAB1C8)*2) --Left
end
if isKeyPressed(VK_NUMPAD6) then
writeFloat(0xAAB140,readFloat(0xAAB140)+readFloat(0xAAB1C0)*2) --Right
writeFloat(0xAAB148,readFloat(0xAAB148)+readFloat(0xAAB1C8)*2) --Right
end

I tried all ideas i had

_________________
void(*Haxing)(int Game)
Back to top
View user's profile Send private message
Frouk
Expert Cheater
Reputation: 0

Joined: 22 Jun 2021
Posts: 232

PostPosted: Wed Dec 08, 2021 8:12 am    Post subject: Reply with quote

any1?
_________________
void(*Haxing)(int Game)
Back to top
View user's profile Send private message
Frouk
Expert Cheater
Reputation: 0

Joined: 22 Jun 2021
Posts: 232

PostPosted: Fri Dec 10, 2021 7:45 am    Post subject: Reply with quote

uh
_________________
void(*Haxing)(int Game)
Back to top
View user's profile Send private message
LeFiXER
Grandmaster Cheater
Reputation: 4

Joined: 02 Sep 2011
Posts: 516
Location: 0x90

PostPosted: Fri Dec 10, 2021 12:40 pm    Post subject: Reply with quote

Use mathematics to calculate vector3 positioning and then write those co-ordinates to the respective pointer values.
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 100

Joined: 06 Jul 2014
Posts: 3175

PostPosted: Fri Dec 10, 2021 12:53 pm    Post subject: Reply with quote

You barely say what you want to do and give next to no information on what you've done so far.

You'll probably need to use basic trigonometry to figure out how much to add to x/y coordinates given the direction you're looking in.

_________________
I don't know where I'm going, but I'll figure it out when I get there.
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