.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Developer's Farm > General Bot Coding
General Bot Coding See what a pain it is to get those little mechs shooting around

Reply
 
Thread Tools
BOT tag
Old
  (#1)
jeefo
путинхуйлоебаное
 
jeefo's Avatar
 
Status: Offline
Posts: 452
Join Date: Nov 2005
Location: Saint-Petersburg
Default BOT tag - 31-05-2006

If anybody need this, there is a way to display a "BOT" tag for bot ping, instead of empty field in Counter-Strike 1.6 scoreboard, like Official Counter-Strike Bot does.

All you needed is add:
PHP Code:
SET_CLIENT_KEYVALUE (iClientIndexpszBuffer"*bot""1"); 
into your bot creation code.
  
Reply With Quote
Re: BOT tag
Old
  (#2)
KWo
Developer of PODBot mm
 
KWo's Avatar
 
Status: Offline
Posts: 3,425
Join Date: Apr 2004
Default Re: BOT tag - 03-06-2006

Did You try to check it with the AMX plugin - high_ping_analyzer (it's called so or somewhat similar)? Not sure - but I'm afraiding it may cause a crash of AMX.
  
Reply With Quote
Re: BOT tag
Old
  (#3)
The Storm
Council Member / E[POD]bot developer
 
The Storm's Avatar
 
Status: Offline
Posts: 1,618
Join Date: Jul 2004
Location: Bulgaria
Default Re: BOT tag - 03-06-2006

So AMX crash when we play with the official CS bot?
  
Reply With Quote
Re: BOT tag
Old
  (#4)
jeefo
путинхуйлоебаное
 
jeefo's Avatar
 
Status: Offline
Posts: 452
Join Date: Nov 2005
Location: Saint-Petersburg
Default Re: BOT tag - 03-06-2006

I'm don't think so, BOT tag added to scoreboard, in CS client dll. I think that plugin uses
PHP Code:
void (*pfnGetPlayerStats) (const edict_t *pClientint *pingint *packet_loss); 
So i think there is no such problems.
  
Reply With Quote
Re: BOT tag
Old
  (#5)
KWo
Developer of PODBot mm
 
KWo's Avatar
 
Status: Offline
Posts: 3,425
Join Date: Apr 2004
Default Re: BOT tag - 03-06-2006

Yeah - they use it:
Code:
#define PLAYER_CNX_STATS        ( *g_engfuncs.pfnGetPlayerStats )
(...)
static cell AMX_NATIVE_CALL get_user_ping(AMX *amx, cell *params) /* 3 param */
{
    int index = params[1];
    
    if (index < 1 || index > gpGlobals->maxClients)
        return 0;
    
    CPlayer* pPlayer = GET_PLAYER_POINTER_I(index);
    
    if (pPlayer->ingame)
    {
        cell *cpPing = get_amxaddr(amx, params[2]);
        cell *cpLoss = get_amxaddr(amx, params[3]);
        int ping, loss;
        PLAYER_CNX_STATS(pPlayer->pEdict, &ping, &loss);
        *cpPing = ping;
        *cpLoss = loss;
        
        return 1;
    }
    
    return 0;
}
so - it shouldn't be a problem. Sorry for bothering.
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com