Code: Select all
[ENABLE]
aobscanmodule(aobohk,mgsvtpp.exe,F3 41 0F 11 16 * * * * C8)
alloc(newmem,$100,"mgsvtpp.exe"+4124F14)
label(code)
label(return)
newmem:
cmp [r14+28],1
jne code
movss [r14],xmm3 // Player Health Cap
jmp return
code:
movss [r14],xmm2
jmp return
aobohk:
jmp newmem
return:
registersymbol(aobohk)
[DISABLE]
aobohk:
db F3 41 0F 11 16
unregistersymbol(aobohk)
dealloc(newmem)
The issue is that the Health is not shared with Enemy therefor I can't know which Offset and Value is group different, I could just "Try" I guess:
But let's say I did find out that an Offset of 28 and Value of 0 is the Enemy, could I do that:
Code: Select all
[ENABLE]
aobscanmodule(aobohk,mgsvtpp.exe,F3 41 0F 11 16 * * * * C8)
alloc(newmem,$100,"mgsvtpp.exe"+4124F14)
label(code)
label(ohk)
label(return)
newmem:
ohk:
cmp [r14+28],0
jne code
xorps xmm2,xmm2
jmp return
code:
movss [r14],xmm2
jmp return
aobohk:
jmp newmem
return:
registersymbol(aobohk)
[DISABLE]
aobohk:
db F3 41 0F 11 16
unregistersymbol(aobohk)
dealloc(newmem)