DWORD CBot::GetWeaponInfo(DWORD WeaponNum)
{
static DWORD dwCall = 0x503960;
static DWORD dwReturn;
__asm{
PUSH WeaponNum
CALL [dwCall]
mov dwReturn, eax
ADD ESP,0x4
}
return dwReturn;
}
weaponstruct* wstruct = (weaponstruct*)(GetWeaponInfo(Client->WeapNum));