Difference between revisions of "Gamecheats:F.E.A.R. 2"

From Cheat Engine
Jump to navigation Jump to search
Line 5: Line 5:
 
The following Auto Assembler script gives invulnerability<br>
 
The following Auto Assembler script gives invulnerability<br>
  
 +
<code>
 
[ENABLE]<br>
 
[ENABLE]<br>
 
//code from here to '[DISABLE]' will be used to enable the cheat<br>
 
//code from here to '[DISABLE]' will be used to enable the cheat<br>
Line 42: Line 43:
 
fstp dword ptr [esp+18]<br>
 
fstp dword ptr [esp+18]<br>
 
<br>
 
<br>
 +
</code>

Revision as of 18:44, 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]