Code:
if (pBot->f_duck_time < gpGlobals->time)
{
if (RANDOM_LONG(1, 100) <= 10)
{
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;
}
}
perhaps you wanted this?
they kept saying DUCKING because you made them say ducking 100% of the time..