Gamecheats:F.E.A.R. 2

From Cheat Engine
Revision as of 18:35, 7 September 2009 by Dark Byte (talk | contribs) (Created page with 'Sequel to F.E.A.R. 1 Health is stored as a float, max health is 100.0 and goes down when you take damage The following Auto Assembler script gives invulnerability<br> [ENABLE]…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Sequel to F.E.A.R. 1

Health is stored as a float, max health is 100.0 and goes down when you take damage

The following Auto Assembler script gives invulnerability

[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat

alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(exit)
label(afterdecrease)

gameserver.dll+5523b:
jmp newmem
nop
nop
returnhere:

newmem: //this is allocated memory, you have read,write,execute access
//place your code here
cmp [esi+18-38],GameServer.dll+2aeb18
je afterdecrease



originalcode:
fsub dword ptr [ebp+28]
afterdecrease:
fstp dword ptr [esp+18]

exit:
jmp returnhere


[DISABLE]
//code from here till the end of the code will be used to disable the cheat
gameserver.dll+5523b:
fsub dword ptr [ebp+28]
fstp dword ptr [esp+18]