View previous topic :: View next topic |
Author |
Message |
Unicorngoulash Newbie cheater
Reputation: 0
Joined: 19 Apr 2018 Posts: 19 Location: Netherlands
|
Posted: Thu Apr 19, 2018 6:55 pm Post subject: Future Hotkey Request/Ideas for Cheat Engine 6.8 |
|
|
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 |
|
 |
TheyCallMeTim13 Wiki Contributor
Reputation: 51
Joined: 24 Feb 2017 Posts: 976 Location: Pluto
|
Posted: Thu Apr 19, 2018 8:36 pm Post subject: |
|
|
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 |
|
 |
Unicorngoulash Newbie cheater
Reputation: 0
Joined: 19 Apr 2018 Posts: 19 Location: Netherlands
|
Posted: Fri Apr 20, 2018 1:56 pm Post subject: |
|
|
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 |
|
 |
|