Results 1 to 10 of 26

Thread: Renaming bots

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #6
    Global Mossaderator Mitch's Avatar
    Join Date
    Nov 2012
    Posts
    654
    Thanks
    204
    Thanked 450 Times in 305 Posts
    Quote Originally Posted by filthy_freak_ View Post
    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 a1char *destint a3)
    {
      
    int v3// ST14_4@5
      
    int v5// [sp+10h] [bp-8h]@2

      
    if ( *(_DWORD *)(a1 452308) == )
      {
        
    sub_8094A10(00"%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) == 
    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.
    Last edited by Mitch; 3rd September 2014 at 09:28.

  2. The Following 2 Users Say Thank You to Mitch For This Useful Post:

    filthy_freak_ (3rd September 2014),kung foo man (3rd September 2014)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •