Now the 6k damage is permanent :/
(The normal damage of my weapon does not even reach 100, somewhere like 50-70ish).
I would really appreciate any help, I'm on the last area of the game that's why I don't want to make new character because I'm doing a 100% run.
Here's the script:
Code: Select all
{ Game : TheSurge.exe
Version:
Date : 2017-11-04
Author : Kalas
This script does blah blah blah
}
[ENABLE]
// 314 -- (float)1 -- Player
// 314 -- (float)0 -- Enemy
aobscanmodule(_SharedHealth,TheSurge.exe,F3 0F 11 89 B0 00 00 00 A9)
alloc(newmem,$1000,TheSurge.exe)
label(code)
label(return)
label(HeroCheck)
newmem:
cmp [rcx+314], (float)1 // Player
je HeroCheck
jmp @f
@@:
mov [rcx+000000B0],(float)0
jmp return
code:
movss [rcx+000000B0],xmm1
jmp return
HeroCheck:
movss [rcx+000000B0],xmm1
jmp return
_SharedHealth:
jmp newmem
nop
nop
nop
return:
registersymbol(_SharedHealth)
[DISABLE]
_SharedHealth:
db F3 0F 11 89 B0 00 00 00
unregistersymbol(_SharedHealth)
dealloc(newmem)
{
// ORIGINAL CODE - INJECTION POINT: "TheSurge.exe"+2A0D61
"TheSurge.exe"+2A0D3E: 48 8B D9 - mov rbx,rcx
"TheSurge.exe"+2A0D41: 0F 2F C1 - comiss xmm0,xmm1
"TheSurge.exe"+2A0D44: F3 0F 10 B1 B0 00 00 00 - movss xmm6,[rcx+000000B0]
"TheSurge.exe"+2A0D4C: 72 0D - jb TheSurge.exe+2A0D5B
"TheSurge.exe"+2A0D4E: 0F 2F C2 - comiss xmm0,xmm2
"TheSurge.exe"+2A0D51: 76 05 - jna TheSurge.exe+2A0D58
"TheSurge.exe"+2A0D53: 0F 28 CA - movaps xmm1,xmm2
"TheSurge.exe"+2A0D56: EB 03 - jmp TheSurge.exe+2A0D5B
"TheSurge.exe"+2A0D58: 0F 28 C8 - movaps xmm1,xmm0
"TheSurge.exe"+2A0D5B: 8B 81 20 01 00 00 - mov eax,[rcx+00000120]
// ---------- INJECTING HERE ----------
"TheSurge.exe"+2A0D61: F3 0F 11 89 B0 00 00 00 - movss [rcx+000000B0],xmm1
// ---------- DONE INJECTING ----------
"TheSurge.exe"+2A0D69: A9 00 80 00 00 - test eax,00008000
"TheSurge.exe"+2A0D6E: 76 2B - jna TheSurge.exe+2A0D9B
"TheSurge.exe"+2A0D70: 0F 2F F1 - comiss xmm6,xmm1
"TheSurge.exe"+2A0D73: 76 26 - jna TheSurge.exe+2A0D9B
"TheSurge.exe"+2A0D75: F3 0F 10 05 9B 44 76 00 - movss xmm0,[TheSurge.exe+A05218]
"TheSurge.exe"+2A0D7D: 0F 2F D0 - comiss xmm2,xmm0
"TheSurge.exe"+2A0D80: 77 14 - ja TheSurge.exe+2A0D96
"TheSurge.exe"+2A0D82: A9 00 00 02 00 - test eax,00020000
"TheSurge.exe"+2A0D87: 76 0A - jna TheSurge.exe+2A0D93
"TheSurge.exe"+2A0D89: 0F BA F0 0F - btr eax,0F
}