Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // AOB scan is used to help with compatibility and add some small update protection
- [ENABLE]
- aobscanmodule(INJECT,GameAssembly.dll,F3 0F 11 73 58 F3 0F 10 43)//this AOB is the code for what is constantly writing to the address
- alloc(newmem,$1000,INJECT)
- label(code)
- label(return)
- alloc(ournum,4)
- registersymbol(ournum)//we alloc and register a value we want to use for our float
- ournum:
- dd (float)160//the value we assign to our new float
- newmem:
- code:
- movss xmm6,[ournum]//xmm6 will be given our current stamina anyway so it's safe to store our new stamina value in it
- movss [rbx+58],xmm6//we then execute like normal with health always being max
- movss [rbx+60],xmm6//upon further looking, rbx+60 contains total possible health so we max it as well in case damage has been taken already.
- jmp return
- INJECT:
- jmp newmem
- return:
- registersymbol(INJECT)
- [DISABLE]
- INJECT:
- db F3 0F 11 73 58
- unregistersymbol(INJECT)
- dealloc(newmem)
- dealloc(ournum)//we make sure to unregister and dealloc our new value upon deactivation to avoid messing up code
- unregistersymbol(ournum)
Advertisement
Add Comment
Please, Sign In to add comment