Hey,
So I've found one hit kill, problem is it's linked.
I know I'll need to set breakpoints, but the breakpoints doesn't hit when I get hit by enemy. Only when I hit a enemy.
I'm not sure what I can do next to unlink, anyone does?
This is the code;
loc_495852
LDR R6, [SP,#0xA8+var_58]
VLDR D8, =100.0
LDR R5, [R6,#0x14]
LDR R0, [SP,#0xA8+var_58]
VMOV S2, R5
VLDR S0, [R0,#0x18]
VCVT.F64.S32 D16, S2
VCVT.F64.S32 D17, S0
VDIV.F64 D16, D16, D17
VMUL.F64 D16, D16, D8
VMOV R0, R1, D16
BLX.W j__ceil
VMOV D16, R0, R1
MOV.W R0, #0xFFFFFFFF
SUBS R1, R5, R4 <----> R4 to r7 = ONE HIT KILL, why: R4 = damage & r5 = current health
MOV R2, R5 <-----> R5 to R8 = die, why: R5 = current health, r8 holds the value of 0
VCVTR.S32.F64 S0, D16
MOVS R3, #0
VSTR S0, [SP,#0xA8+var_54]
STR R0, [SP,#0xA8+var_48]
MOVS R0, #0
BL.W sub_CD6928
STR R0, [R6,#0x14]
CMP R0, #0
BGT loc_4958FC