Difference between revisions of "Gamecheats:F.E.A.R. 2"
m (moved Gamecheats:Fear2 to Gamecheats:F.E.A.R. 2: Better name) |
|
(No difference)
|
Latest revision as of 18:45, 7 September 2009
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]