Difference between revisions of "Gamecheats:F.E.A.R. 2"
(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]…') |
m (moved Gamecheats:Fear2 to Gamecheats:F.E.A.R. 2: Better name) |
||
(2 intermediate revisions by the same user not shown) | |||
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 41: | Line 42: | ||
fsub dword ptr [ebp+28]<br> | fsub dword ptr [ebp+28]<br> | ||
fstp dword ptr [esp+18]<br> | fstp dword ptr [esp+18]<br> | ||
− | </code | + | <br> |
+ | </code> |
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]