View Single Post
Re: f_move_speed = 0.0; and IN_ATTACK Problem
Old
  (#2)
sPlOrYgOn
<-- He did it.
 
sPlOrYgOn's Avatar
 
Status: Offline
Posts: 1,558
Join Date: Jan 2004
Location: Los Angeles, California, USA, North America, Earth, Solar System, Milky Way.
Default Re: f_move_speed = 0.0; and IN_ATTACK Problem - 16-05-2004

thats because the if statement is only for
pBot->f_move_speed = 0.0;
the other stuff will always run.
instead have it
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;
    }
  
Reply With Quote