Medaka
Getting There
Get host code. Should work.
I was eating crackers when reversing this, so if I have a typo, I hope you know how to fix it.
Code:
int (*SV_IsLocalClient)(int clientNum) = (int(*)(int))0x823E5568;
int getHost(){
for(int clientNum = 0; clientNum < 12; clientNum++)
if(SV_IsLocalClient(clientNum))
return clientNum;
}
I was eating crackers when reversing this, so if I have a typo, I hope you know how to fix it.