Skip to content

Instantly share code, notes, and snippets.

@kudorgyozo
Last active July 31, 2025 14:05
Show Gist options
  • Select an option

  • Save kudorgyozo/faadb3a68fde290cb88322b731c0f3ae to your computer and use it in GitHub Desktop.

Select an option

Save kudorgyozo/faadb3a68fde290cb88322b731c0f3ae to your computer and use it in GitHub Desktop.
start jagged alliance 3 together with cheat engine and set speedhack to 2x. don't forget to set keyboard shortcuts to enable disable speedhack
@echo off
start "" "steam://run/1084160"
timeout /t 5 /nobreak > nul
start "" "C:\Program Files\Cheat Engine\Cheat Engine.exe" "D:\Games\ja3.ct"
local processName = "ja3.exe"
local speeds = {1.0, 2.0, 3.0}
local currentIndex = 2 -- Start at 2x speed
-- Attach to game
if getProcessIDFromProcessName(processName) ~= nil then
openProcess(processName)
-- -- Set initial speed
-- if speedhack_setSpeed then
-- speedhack_setSpeed(speeds[currentIndex])
-- print("Speedhack set to " .. speeds[currentIndex] .. "x")
-- else
-- print("Speedhack not available.")
-- end
else
print("Process not found: " .. processName)
end
-- Backspace key code
local VK_BACK = 0x08
-- Toggle speed function
function toggleSpeed()
currentIndex = currentIndex + 1
if currentIndex > #speeds then
currentIndex = 1
end
speedhack_setSpeed(speeds[currentIndex])
-- print("Speed toggled to " .. speeds[currentIndex] .. "x")
end
-- Register Backspace hotkey
createHotkey(toggleSpeed, VK_BACK)
-- Hide Cheat Engine window
getMainForm().Visible = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment