Results 1 to 10 of 65

Thread: Changing map on MeatBot (CoD 2)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Quote Originally Posted by guiismiti View Post
    Meatbot sets the .isbot attribute when a bot is added, so, you can just use
    Code:
    if(player.isbot)
    I have found that method not 100% reliable. But my method works infallibly.

  2. #2
    Corporal guiismiti's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    244
    Thanks
    121
    Thanked 42 Times in 31 Posts
    Quote Originally Posted by Tally View Post
    I have found that method not 100% reliable.
    How so?

    10char
    set logfile 2

  3. #3
    Sergeant serthy's Avatar
    Join Date
    Nov 2012
    Posts
    450
    Thanks
    96
    Thanked 296 Times in 188 Posts
    Well I personally used a combination of:
    - checking the connecting players name
    - get the GUID
    - set a variable on connect (since bots do not change anything)

    so to say:

    Code:
    bot = addTestClient();
    
    if( !isDefined( bot ) )
        continue; // try again..
    
    assert( isSubStr( bot.name , "bot" ) );
    assert( bot getGuid() == "0" ) );
    
    bot.isBot = true;
    bot.pers["bot"] = true;

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
  •