.:: 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 ::. > Cyborg Factory > POD-Bot mm > Common Questions
Common Questions Are you seeking help ? Get it here !

Reply
 
Thread Tools
Re: Problem with kicking bots
Old
  (#11)
KWo
Developer of PODBot mm
 
KWo's Avatar
 
Status: Offline
Posts: 3,425
Join Date: Apr 2004
Default Re: Problem with kicking bots - 24-10-2004

Quote:
Originally Posted by botmeister
Guys, pb remove #bot_team does not work with Podbot-r2.44-linux-so.
OK - for team argument don't use "#"

Use for kicking:
a)T bot:
pb remove 1
and the first T bot from the list will be kicked
b) CT bot
pb remove 2
and the first CT bot from the list will be kicked

I've just tried this about 6 times - to be sure. Also I was looking a bit into code and it's probably this part (dll.cpp - PbCmdParser):

PHP Code:
      // "remove" removes a bot
       
else if (FStrEq (pcmdg_pszPbCmds[PBCMD_REMOVE]))
       {
          if ((
arg1 != NULL) && (*arg1 != 0))
             
iTeam atoi (arg1);
          else
             
iTeam 0;
    
          if ((
arg2 != NULL) && (*arg2 != 0))
             
iSelection atoi (arg2);
          else
             
iSelection 0;
    
          if ((
iTeam == TEAM_CS_TERRORIST) || (iTeam == TEAM_CS_COUNTER))
          {
             for (
index 0index gpGlobals->maxClientsindex++)
             if (
bots[index].is_used && !FNullEnt (bots[index].pEdict) && (bots[index].bot_team == iTeam))
                {
                   
g_iPeoBotsKept--;
              
snprintf (kickcmdsizeof (kickcmd), "kick \"%s\"\n"STRING (bots[index].pEdict->v.netname));
                   
SERVER_COMMAND (kickcmd);
                   if (
index >= iSelection)
                      break;
                }
          }
          else
          {
             for (
index 0index gpGlobals->maxClientsindex++)
             if (
bots[index].is_used && !FNullEnt (bots[index].pEdict))
                {
                   
g_iPeoBotsKept--;
              
snprintf (kickcmdsizeof (kickcmd), "kick \"%s\"\n"STRING (bots[index].pEdict->v.netname));
                   
SERVER_COMMAND (kickcmd);
                   if (
index >= iSelection)
                      break;
                }
          }
       } 
[EDIT]
Seems like 'code' doesn't work correctly (all was in 1 line) - that's why I used 'php'.
[/EDIT]

Last edited by KWo; 24-10-2004 at 18:47..
  
Reply With Quote
Re: Problem with kicking bots
Old
  (#12)
botmeister
Ex-Council Member
 
botmeister's Avatar
 
Status: Offline
Posts: 1,090
Join Date: Nov 2003
Location: Canada
Default Re: Problem with kicking bots - 24-10-2004

Hey thanks KWo! pb remove 1|2 works and I just tested it myself to confirm.

I think some of the suggestions made in here should be implemented:

1. Put a cvar in place to stop the auto regeneration behaviour, but default it to an enabled state.

2. Leave the team kick feature in place, but allow a #user_id to be specified to kick a specific bot out using pb remove #user_id.

If I were to make these changes, how would I get the code updated to be reflected in the official version?


Maker of the (mEAn) Bot.Admin Manager

"In theory, there is no difference between theory and practice. But, in practice, there is." - Jan L.A. van de Snepscheut
  
Reply With Quote
Re: Problem with kicking bots
Old
  (#13)
sPlOrYgOn
<-- He did it.
 
sPlOrYgOn's Avatar
 
Status: Offline
Posts: 1,558
Join Date: Jan 2004
Location: Los Angeles, California, USA, North America, Earth, Solar System, Milky Way.
Default Re: Problem with kicking bots - 24-10-2004

well right now I think i've fixed it..
so click on the link in my signature..
you'll find the most up-to-date source code..
if you can't compile it then maybe someone who has linux and knows how to compile it can do it for you...
the way to turn off the auto rejoin is to set max_bots to 0..
thats how it was supposed to be and is now fixed in the code in the link in my signature..
  
Reply With Quote
Re: Problem with kicking bots
Old
  (#14)
botmeister
Ex-Council Member
 
botmeister's Avatar
 
Status: Offline
Posts: 1,090
Join Date: Nov 2003
Location: Canada
Default Re: Problem with kicking bots - 25-10-2004

The team kicking works fine for the mEAn mod by itself, but I've dl'd the source and will get it to compile so I can help out with it if need be. Thanks

I'll be posting a full package for the latest Linux/Windows mEAn mod that works with the latest POD as soon as I can find the time for it.


Maker of the (mEAn) Bot.Admin Manager

"In theory, there is no difference between theory and practice. But, in practice, there is." - Jan L.A. van de Snepscheut
  
Reply With Quote
Re: Problem with kicking bots
Old
  (#15)
sPlOrYgOn
<-- He did it.
 
sPlOrYgOn's Avatar
 
Status: Offline
Posts: 1,558
Join Date: Jan 2004
Location: Los Angeles, California, USA, North America, Earth, Solar System, Milky Way.
Default Re: Problem with kicking bots - 25-10-2004

we're working on ways to make mean and pod more compatible too..
right now we fixed it so that max_bots when set to 0 will no longer make bots auto join or auto leave...
We're adding more options for people to choose whether or not they want everything automated if max_bots is not 0.
Also we'll be adding the ability to kick a specific bot..
  
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