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 


Future Hotkey Request/Ideas for Cheat Engine 6.8

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions
View previous topic :: View next topic  
Author Message
Unicorngoulash
Newbie cheater
Reputation: 0

Joined: 19 Apr 2018
Posts: 19
Location: Netherlands

PostPosted: Thu Apr 19, 2018 6:55 pm    Post subject: Future Hotkey Request/Ideas for Cheat Engine 6.8 Reply with quote

Hello, I'm new to the forum although I've been using and enjoying cheat engine for many years

I'm loving the added controller support for hotkeys, it opens up a whole new world of possibilities. Like gameshark/action replay used to have for joker commands. Being excited about it upon discovery gave me some ideas about improving the hotkey functions for the future.

I think it would be a cool idea to implement a function that temporarily sets and freezes a value upon keypress and restores it to it's original value upon release. It would make things like multi-jumping easier, or for example only having a superpower,infinite health/ammo as long as you hold a key. Or in reverse, disable a code as long as it's pressed and enabled upon release.

In simple terms, a temporary freeze that only works as long as you hold a key and unfreezes as soon as you let go. Perhaps that time based values could be useful as well, only having a code active for a set amount of time.

1 [Enable code] Hold and release
2 [Disable code] Hold and release
3 [Timer based] Hold and release
Back to top
View user's profile Send private message
TheyCallMeTim13
Wiki Contributor
Reputation: 50

Joined: 24 Feb 2017
Posts: 976
Location: Pluto

PostPosted: Thu Apr 19, 2018 8:36 pm    Post subject: Reply with quote

You could setup a thread and "getXBox360ControllerState" to do what you want.
i.e.: To freeze a value
Code:
{$lua}
local address = 'SomeSymbol'
[ENABLE]
function RunMyThread(thread)
   local value = readFloat(address)
   while MyThreadState == 1 do
      local xcs = getXBox360ControllerState()
      if xcs.GAMEPAD_A then
         writeFloat(address, value)
      else
         value = readFloat(address)
      end
      sleep(0)
   end
   thread.terminate()
end
if syntaxcheck then return end
MyThreadState = 1
createThread(RunFallHackJumpCheck)
------------------------------ DISABLE ------------------------------
[DISABLE]
if syntaxcheck then return end
MyThreadState = 0

http://wiki.cheatengine.org/index.php?title=Lua:getXBox360ControllerState

_________________
Back to top
View user's profile Send private message Visit poster's website
Unicorngoulash
Newbie cheater
Reputation: 0

Joined: 19 Apr 2018
Posts: 19
Location: Netherlands

PostPosted: Fri Apr 20, 2018 1:56 pm    Post subject: Reply with quote

I tried to copy the code into Lua but it gets an error.
I don't know how I should correct it because I don't know enough about lua to understand this code. However, it would be cool if it could be implemented into cheat engine as en expansion.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions 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