Hey mate, sad that it doesn't work for you. xD i gave my best. BTW Health is encrypted/Xored.
My friend has just shown me ho to deal with it.
As you can see, EAX gets xored with ECX, so we need ECX for Health value decryption. Remember 2A0 = Health, 2A8 = Max Health
Lets increase our Max Health to 99999.0f first, which isn't xored. After that we decrypt the Health value, so we can write our code. After that we encrypt the Value again so the game doesn't bitch.
If you are lazy you can copy the code from here:
Code: Select all
[ENABLE]
aobscanmodule(_GodMode,Homefront2_Release.exe,8B 83 A0 02 00 00 33 C1 89 44 24 70) // should be unique
alloc(newmem_GodMode,$1000,"Homefront2_Release.exe"+70E76F)
alloc(_pHealth,8)
registersymbol(_pHealth)
label(code_GodMode)
label(return_GodMode)
newmem_GodMode:
mov [_pHealth],rbx
push rax
mov [rbx+2A8],(float)99999 // Set max Health to 99999 (Max Health is not Encrypted!)
xor [rbx+2A0],ecx // Decrypt Health Value
mov rax,[rbx+2A8]
mov [rbx+2A0],rax
xor [rbx+2A0],ecx // Encrypt Health Value
code_GodMode:
pop rax
mov eax,[rbx+2A0]
jmp return_GodMode
_pHealth:
dq 0
_GodMode:
jmp newmem_GodMode
nop
return_GodMode:
registersymbol(_GodMode)
[DISABLE]
_GodMode:
db 8B 83 A0 02 00 00
unregistersymbol(_GodMode)
unregistersymbol(_pHealth)
dealloc(_pHealth)
dealloc(newmem_GodMode)
HotKeys:
Middle Mouse Button - Toggle Fly Mode
F5 = Fly Up
F6 =Fly Down
Numpad 7 - Save Pos
Numpad 8 - Load Pos
Numpad 9 - Undo teleport
Numpad Multiply Teleport to waypoint
Note :
For teleport to waypoint make sure, the z axis is not 0, when setting waypoint, else it doesn't work as it should. For best results set waypoint on map icons. those are always valid
Wrong:
Correct: