@Recifense
i have a question regarding troops veterancy
the code accessing it has ecx as base. ecx+14 is rank ecx+18 is exp
player ID as far as i think is like below
mov eax,[ecx+8]
mov eax,[eax+cc]
mov eax,[eax+8]
cmp eax,#1001
now my problem is sometimes my units ID is 1000 and sometimes its 1001 in skirmish battles.how can I fix it?
my code:
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
push eax
mov eax,[ecx+8]
mov eax,[eax+cc]
mov eax,[eax+8]
cmp eax,#1001
pop eax
jne originalcode
cmp [ecx+14],3
je originalcode
mov [ecx+14],3
originalcode:
fsub dword ptr [esp+2C]
fst dword ptr [esp+20]
exit:
jmp returnhere
"RelicCoH2.exe"+26E182:
jmp newmem
nop
nop
nop
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"RelicCoH2.exe"+26E182:
fsub dword ptr [esp+2C]
fst dword ptr [esp+20]
//Alt: db D8 64 24 2C D9 54 24 20