View Single Post
Re: Bots Don't Play Unless Human Present
Old
  (#4)
@$3.1415rin
Council Member, Author of JoeBOT
 
@$3.1415rin's Avatar
 
Status: Offline
Posts: 1,381
Join Date: Nov 2003
Location: Germany
Default Re: Bots Don't Play Unless Human Present - 07-06-2004

the jb_jointeam and jb_entergame do the same like the whuman commands, exactly the same, so you can throw out one of those each - we gotta update the readme

dunno, already having tried even the 0 there ? somehow those commands are strange, sometimes

Code:
bool bc_joinwhumanmax(edict_t *pEntity,int iType,const char *arg1,const char *arg2,const char *arg3,const char *arg4){
 if(!*arg1){
  UTIL_ConsoleMessage( pEntity, "Usage: joinwhuman_max [on/off]\n");
  return true;
 }
 if(FStrEq(arg1,"on")){
  CVAR_SET_FLOAT("jb_entergame", 0);
 }
 else if(FStrEq(arg1,"off")){
  CVAR_SET_FLOAT("jb_entergame", 1);
 }
 if(CVAR_BOOL(jb_entergame)){
  UTIL_ConsoleMessage( pEntity, "Bots will join even if there are no human on the server ( max_bots )\n");
 }
 else{
  UTIL_ConsoleMessage( pEntity, "Bots will only join when a human is on the server ( max_bots )\n");
 }
 return true;
}
bool bc_joinwhumanres(edict_t *pEntity,int iType,const char *arg1,const char *arg2,const char *arg3,const char *arg4){
 if(!*arg1){
  UTIL_ConsoleMessage( pEntity, "Usage: joinwhuman_res [on/off]\n");
  return true;
 }
 if(FStrEq(arg1,"on")){
  CVAR_SET_FLOAT("jb_jointeam", 0);
 }
 else if(FStrEq(arg1,"off")){
  CVAR_SET_FLOAT("jb_jointeam", 1);
 }
 if(CVAR_BOOL(jb_jointeam)){
  UTIL_ConsoleMessage( pEntity, "Bots will respawn even if there are no human players on the server\n");
 }
 else{
  UTIL_ConsoleMessage( pEntity, "Bots will only respawn when a human player is on the server\n");
 }
 return true;
}



Last edited by @$3.1415rin; 07-06-2004 at 22:13..
  
Reply With Quote