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;