Code:
if (pBot->f_duck_time > gpGlobals->time)
pBot->f_move_speed = 0.0;
{
pBot->f_duck_time = gpGlobals->time + 1.5;
FakeClientCommand(pEdict, "say", "DUCKING", NULL);
pEdict->v.button |= IN_ATTACK; // fire the weapon
return TRUE;
}
Hi is me again, this is part of my shootnow(), If I remove the pBot->f_move_speed = 0.0; everything work fine, but if the pBot->f_move_speed = 0.0; active, the bots only call IN_ATTACK one time, if their enemy won't die in the first shot, than two bot will only facing each other and do nothing, I am sure the shootnow() keep calling in every frame since two bots keep saying DUCKING.
But if the bot can move forward only one little step, they can fire another shot. This also happen to breakable object, if the bot shoot at the window and if he can't break it in the first shoot, he just stand still before the window and do nothing, but if the bot can move forward a little step, then he can fire another shoot, please help.