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 


Smooth model rotation script?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
nin
How do I cheat?
Reputation: 0

Joined: 04 Jan 2017
Posts: 7

PostPosted: Mon Jan 29, 2018 1:47 pm    Post subject: Smooth model rotation script? Reply with quote

I've been using this script for turning my character around:

Code:
[ENABLE]
{$lua}
local addr = "addressgoeshere"
writeFloat(addr, readFloat(addr) - 0.1)
{$asm}
[DISABLE]
{$lua}
local addr = "addressgoeshere"
writeFloat(addr, readFloat(addr) - 0.1)
{$asm}


It gets the job done but it's a bit janky. Does anyone know how to make it smoother?
Back to top
View user's profile Send private message
FreeER
Grandmaster Cheater Supreme
Reputation: 53

Joined: 09 Aug 2013
Posts: 1091

PostPosted: Mon Jan 29, 2018 2:01 pm    Post subject: Reply with quote

define "janky"/"smoother". Do you mean there's a delay between when you want to turn around or that your character doing an instant 180 looks weird and you'd like them to actually "turn" rather than teleport in the opposite direction, or do you mean that subtracting 0.1 doesn't fully turn the character around....? there's probably a few other options as well lol
Back to top
View user's profile Send private message
nin
How do I cheat?
Reputation: 0

Joined: 04 Jan 2017
Posts: 7

PostPosted: Mon Jan 29, 2018 2:17 pm    Post subject: Reply with quote

FreeER wrote:
define "janky"/"smoother". Do you mean there's a delay between when you want to turn around or that your character doing an instant 180 looks weird

It's more of a delay. If I hold down the hotkey, the character turns around slowly but also mechanically. They make tiny little stops.

I can definitely have it do an instant 180 turn if I increase the value, but I want a smooth turntable of the character.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Mon Jan 29, 2018 2:19 pm    Post subject: Reply with quote

go to settings and set the hotkey poll speed and repeat time
(poll speed should be lower or equal to repeat time)

_________________
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
nin
How do I cheat?
Reputation: 0

Joined: 04 Jan 2017
Posts: 7

PostPosted: Mon Jan 29, 2018 2:33 pm    Post subject: Reply with quote

Thanks, Dark Byte! It works great now. Very Happy
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