View Single Post
Re: f_move_speed = 0.0; and IN_ATTACK Problem
Old
  (#7)
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 - 20-05-2004

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..

Last edited by sPlOrYgOn; 20-05-2004 at 12:38..
  
Reply With Quote