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 


Feature request for hotkey

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

Joined: 28 Jan 2017
Posts: 2

PostPosted: Sat Jan 28, 2017 9:46 am    Post subject: Feature request for hotkey Reply with quote

hi all,
I'm getting good use out of the current hotkey features, however I could really use the following extra features:

1. Add a check box and if checked, the variable(s) contents at time of hotkey press, will be restored on hotkey release. Example use: "timescale" variable is a float in a game, sometimes I want to speed up play until an enemy shows up. I don't want to tie up any more keys than I absolutely have to. Adding above would mean that I can achieve this with just one key.
2. Currently you can set a var, add to it, subtract from it or toggle freeze. I'd like this list added to, so that it can multiple or divide by a specified number. Like all current, this needs to have the check box for restoring on hotkey release also.

Kudos to the developer(s) for an outstanding app!! I love it!
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 222

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Sat Jan 28, 2017 12:10 pm    Post subject: Reply with quote

The first could be achieved by doing something like this:

Lets say you have this AA script (slomo or speedup, doesn't matter):
Code:
[ENABLE]
alloc(newmem_SlomoCheat,2048)
label(return_SlomoCheat)

newmem_SlomoCheat:
  (...)
  (...)
  mov [ZZZZZZZZ],(float)0.5
  (...)
  (...)
  jmp return_SlomoCheat

XXXXXXXX+YYYY:
  jmp newmem_SlomoCheat
  nop
  nop
return_SlomoCheat:

[DISABLE]
  (...)
  (...)
dealloc(newmem_SlomoCheat)


ZZZZZZZZ - is our timescale

And you set hotkey, for example F1, action: "toggle script". You press F1, game is in slomo. You press F1 again, it runs normally.






How to convert it to pushtoactivate cheat? Like this:
Code:
[ENABLE]
alloc(newmem_SlomoCheat,2048)
label(return_SlomoCheat)

LABEL(slomoStopWatchTimer)
REGISTERSYMBOL(slomoStopWatchTimer)

newmem_SlomoCheat:
  (...)
  (...)
  CMP [slomoStopWatchTimer],#20    // <<< adjust this one
  JAE normalSpeed
    INC [slomoStopWatchTimer]
    mov [ZZZZZZZZ],(float)0.5
  normalSpeed:
  (...)
  (...)
  jmp return_SlomoCheat

slomoStopWatchTimer:
dd 0

XXXXXXXX+YYYY:
  jmp newmem_SlomoCheat
  nop
  nop
return_SlomoCheat:

[DISABLE]
  (...)
  (...)
UNREGISTERSYMBOL(slomoStopWatchTimer)

dealloc(newmem_SlomoCheat)


Apply above changes, set F1 action to "Enable script" (not a "toggle script"). Add new entry, 4byte with address slomoStopWatchTimer and set hotkey to F1, action: set value to 0.


Now when you press F1, script will activate. Pressing it again won't deactivate it (because action is "enable script")
slomoStopWatchTimer will be set to 0. It will increase by one every cycle.

timescale will be set to 0.5, and it will be until slomoStopWatchTimer will reach 20.



Just converted my Slomo cheat for mafia3 here:
http://forum.cheatengine.org/viewtopic.php?p=5694451#5694451

_________________
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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