OK Fasten Seat Belts:
PHP Code:
void StartFrame( void ){
if((gpGlobals->time > 3) && (gpGlobals->time < 3.1)) ClientPutInServer(bots[0].pEdict); //Init the Game
if(gpGlobals->time > 3){
if(fabs(t - gpGlobals->time) > 1){
if((current->pEdict->v.origin - g).Length() < 50){
g_engfuncs.pfnServerPrint("I'm too Slow , Kill me!\n");
ClientKill(current->pEdict);
}
g = current->pEdict->v.origin;
t = 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....