Originally Posted by
filthy_freak_
That is for CoDExtended.
Could you convert it to libcod for those who are unfamiliar with C++? (Myself being one)
When i got time i will start with 'isbot' function for libcod. After that works i will start on 'renamebot'.
1.3
PHP Code:
int __cdecl sub_808C316(int a1, char *dest, int a3)
{
int v3; // ST14_4@5
int v5; // [sp+10h] [bp-8h]@2
if ( *(_DWORD *)(a1 + 452308) == 2 )
{
sub_8094A10(0, 0, "%c \"EXE_CANNOTKICKHOSTPLAYER\"", 101);
v5 = 0;
}
else
{
if ( dest )
{
sub_80B7AB6(dest, (const char *)(a1 + 134216), a3);
sub_80B7E54(dest);
}
v3 = *(_DWORD *)(a1 + 714500);
sub_808F02E(a1, "EXE_PLAYERKICKED");
*(_DWORD *)(a1 + 134688) = dword_8423084;
v5 = v3;
}
return v5;
}
PHP Code:
if ( *(_DWORD *)(a1 + 452308) == 2 )
PHP Code:
if( cl->netchan.remoteAddress.type == NA_LOOPBACK )
NA_BOT = 0
PHP Code:
void gsc_player_addresstype(int id) {
#if COD2_VERSION == COD2_VERSION_1_3
int info_start = *(int *)0x08423084;
int info_base = *(int *)0x0842308C;
int info_size = 0xB1064;
int info_addresstype_offset = 0x6E6D4; // same as 1.2
#else
#warning gsc_player_addresstype() got no working addresses
int info_start = *(int *)0x0;
int info_base = *(int *)0x0;
int info_size = 0x0;
int info_addresstype_offset = 0x0;
#endif
int info_player = info_base + id * info_size;
int addrtype = info_start - *(unsigned int *)(info_player + info_addresstype_offset);
stackPushInt(addrtype);
}
1.0 offset is 0x6E5C4.