The following scripts will only work with the Campaign.
Credits: Daijobu for updating the Unlimited Health Script
SteveAndrew for discovering and sharing the scripts with us
distiny for helping updating the Unlimited Ammo and No Reload script.
fuckoffcheater for sharing it
Unlimited Ammo and No Reload.
Code:
alloc(newmem,2048,"bf4.exe"+909B29)
label(returnhere)
label(originalcode)
label(exit)
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
mov edx,63
mov [rbx+88],edx
originalcode:
mov [rbx+00000088],edx
exit:
jmp returnhere
"bf4.exe"+909B29:
jmp newmem
nop
returnhere:
Unlimited Heath
Code:
[enable]
alloc(InfiniteHealthCantBeKilled,1024,bf4.exe)
label(NotPlayer)
label(ApplyInfiniteHealth)
label(DoNormal)
label(HealthRet)
label(HealthRet2)
label(PlayerHealthPtr)
label(DesiredHealthValue)
registersymbol(PlayerHealthPtr)
InfiniteHealthCantBeKilled:
cmp rdx,1 //this is better, it wasn't working that great before...
je short NotPlayer
cmp r10,0
jne short NotPlayer
mov [PlayerHealthPtr],rbx
NotPlayer:
movss xmm7,[rbx+20]
jmp HealthRet
ApplyInfiniteHealth:
cmp rcx,[PlayerHealthPtr]
jne DoNormal
movss xmm1,[DesiredHealthValue]
DoNormal:
movss [rcx+20],xmm1
jmp HealthRet2
PlayerHealthPtr: //64-bit pointer
dq 0
DesiredHealthValue:
dd (float)100.0
//Daijobu was here
bf4.SetPlatform+228A16: //F3 0F 10 7B 20 //NEW
jmp InfiniteHealthCantBeKilled
HealthRet:
bf4.SetPlatform+221D07: //F3 0F 11 49 20 //NEW
jmp ApplyInfiniteHealth
HealthRet2:
//Daijobu was here
[disable]
//Daijobu was here
bf4.SetPlatform+228A16: //F3 0F 10 7B 20 //NEW
movss xmm7,[rbx+20]
bf4.SetPlatform+221D07: //F3 0F 11 49 20 //NEW
movss [rcx+20],xmm1
//Daijobu was here
dealloc(InfiniteHealthCantBeKilled)
unregistersymbol(PlayerHealthPtr)
Gameplay (proof):
How to use the scripts with Cheat Engine: