ok here it is, i tried everything i could, but there is no solutions that i know of, the bile titan and the player share the same function, they are even being called when you get hit. about the activation tried a couple of solutions with no success(it can be activated during the intro when the guy starts talking), so if you want to fix it you are welcome, just so you know against the bile titan to kill it you need to take off its head and for the charger 2 shots will keep it at critical state, other mobs will die in 1 or 2 shots(including objectives and gunship). if someone wants to fix it xmm0 maybe compared to float 3500 for bile titan and for player 125 that at least was my health.
Code: Select all
{ Game : helldivers2.exe
Version:
Date : 2024-03-03
Author : admin
This script does blah blah blah
}
[ENABLE]
aobscanmodule(ohk,game.dll,89 87 44 64 00 00) // should be unique
registersymbol(ohk)
alloc(newmem,$1000,ohk)
label(code)
label(enemy)
label(return)
newmem:
cmp [rdi+B38],A
jne enemy
jmp code
enemy:
mov [rdi+00006444],0
jmp return
code:
mov [rdi+00006444],eax
jmp return
ohk:
jmp newmem
nop
return:
[DISABLE]
ohk:
db 89 87 44 64 00 00
unregistersymbol(ohk)
dealloc(newmem)
{
// ORIGINAL CODE - INJECTION POINT: game.dll+6B4A57
game.dll+6B4A38: 41 39 18 - cmp [r8],ebx
game.dll+6B4A3B: 75 06 - jne game.dll+6B4A43
game.dll+6B4A3D: 41 39 70 04 - cmp [r8+04],esi
game.dll+6B4A41: 75 1A - jne game.dll+6B4A5D
game.dll+6B4A43: 48 8B 7D F0 - mov rdi,[rbp-10]
game.dll+6B4A47: 48 8B 45 28 - mov rax,[rbp+28]
game.dll+6B4A4B: 8B 40 1C - mov eax,[rax+1C]
game.dll+6B4A4E: F7 D8 - neg eax
game.dll+6B4A50: 44 3B E8 - cmp r13d,eax
game.dll+6B4A53: 41 0F 4F C5 - cmovg eax,r13d
// ---------- INJECTING HERE ----------
game.dll+6B4A57: 89 87 44 64 00 00 - mov [rdi+00006444],eax
// ---------- DONE INJECTING ----------
game.dll+6B4A5D: 0F B6 45 80 - movzx eax,byte ptr [rbp-80]
game.dll+6B4A61: 84 C0 - test al,al
game.dll+6B4A63: 74 06 - je game.dll+6B4A6B
game.dll+6B4A65: C6 45 81 01 - mov byte ptr [rbp-7F],01
game.dll+6B4A69: EB 0C - jmp game.dll+6B4A77
game.dll+6B4A6B: 80 7D 81 00 - cmp byte ptr [rbp-7F],00
game.dll+6B4A6F: 75 06 - jne game.dll+6B4A77
game.dll+6B4A71: 80 7D 90 00 - cmp byte ptr [rbp-70],00
game.dll+6B4A75: 74 38 - je game.dll+6B4AAF
game.dll+6B4A77: 8B BD A0 0A 00 00 - mov edi,[rbp+00000AA0]
}