| View previous topic :: View next topic |
| Author |
Message |
doninss Newbie cheater
Reputation: 0
Joined: 01 Apr 2016 Posts: 13
|
Posted: Thu Mar 12, 2026 7:11 pm Post subject: strange speedhack behavior |
|
|
I use speedhack because I have to. The games I like to play move too fast for me at my age. Usually I have no problems. I always turn of Vsync.
game: BIOMORPH
Speedhack works fine until I take damage, at which time it reverts to normal speed. Hitting a hotkey enable it again, until I get hit.
I am using AHK to spam hotkeys, which works but is not ideal. Any ideas?
Thanks.
|
|
| Back to top |
|
 |
AylinCE Grandmaster Cheater Supreme
Reputation: 37
Joined: 16 Feb 2017 Posts: 1557
|
Posted: Fri Mar 13, 2026 5:26 am Post subject: |
|
|
Hi! This is a common issue where the game engine resets the time scale after certain events like taking damage or scene transitions.
Instead of using an external AHK script to spam keys, you can use this Lua Script directly inside Cheat Engine. It monitors the game speed every 100ms and forces it back to your preferred setting if it changes.
How to use:
Open Cheat Engine and your game.
Go to Table -> Show Cheat Table Lua Script.
Paste the code below.
Click Execute Script.
Press F8 in-game to toggle the guard on/off.
| Code: | local targetSpeed = 0.5
local checkInterval = 100
-- 1. Cleanup existing objects to prevent duplication
if speedTimer then speedTimer.destroy(); speedTimer = nil end
if speedHotkey then speedHotkey.destroy(); speedHotkey = nil end
-- 2. Direct Logic: If it's not what I want, fix it.
local function speedCheck()
local currentSpeed = speedhack_getSpeed()
-- If the speed deviates from target, force it back
if currentSpeed ~= targetSpeed then
speedhack_setSpeed(targetSpeed)
end
end
-- 3. Timer Setup (Off by default)
speedTimer = createTimer(nil, false)
speedTimer.Interval = checkInterval
speedTimer.OnTimer = speedCheck
-- 4. Toggle function
local function toggleSpeedGuard()
if not speedTimer.Enabled then
speedTimer.Enabled = true
speedhack_setSpeed(targetSpeed)
print("Speed Guard: ON - Forcing speed to " .. targetSpeed)
else
speedTimer.Enabled = false
speedhack_setSpeed(1.0) -- Reset to normal
print("Speed Guard: OFF - System released")
end
end
-- 5. Hotkey Registration
speedHotkey = createHotkey(toggleSpeedGuard, VK_F8)
print("Script Ready. Press F8 to lock/unlock speed.") |
This approach is much cleaner than AHK as it handles the logic internally and only intervenes when the speed actually resets.
Enjoy it![/list]
_________________
|
|
| Back to top |
|
 |
|