View Single Post
Re: Let's kill the bots
Old
  (#11)
The_Hard_Mission_Guy
This user broke our rules and has been BANNED
 
The_Hard_Mission_Guy's Avatar
 
Status: Offline
Posts: 181
Join Date: May 2006
Default Re: Let's kill the bots - 05-08-2006

OK Fasten Seat Belts:
PHP Code:
void StartFramevoid ){
if((
gpGlobals->time 3) && (gpGlobals->time 3.1)) ClientPutInServer(bots[0].pEdict); //Init the Game
 
if(gpGlobals->time 3){
if(
fabs(gpGlobals->time) > 1){
if((
current->pEdict->v.origin g).Length() < 50){
g_engfuncs.pfnServerPrint("I'm too Slow , Kill me!\n");
ClientKill(current->pEdict);
}
current->pEdict->v.origin
gpGlobals->time
}
}
if(
current->pEdict->v.deadflag != DEAD_NO){
botnumber++;
if(
botnumber >= 7){
botnumber 0;
}
ClientPutInServer(bots[botnumber].pEdict);
current = &bots[botnumber];
}
 
BotThink(current);
 
(*
other_gFunctionTable.pfnStartFrame)();

So this is the main Code .....what is very important to say is that the phrase ("I'm too Slow , Kill me!\n" gets printed out exactly when it should but the ClientKill() beneath gets totally ignored....
Can you see something I've overseen?

P.S also very important to note is that I'm having only one bot running at the same time (as you can see) the next bot gets called after the previous dies....
  
Reply With Quote