game/server/shit/npc_alien_trooper.cpp
void CSTrooper :: SetYawSpeed ( void )
{
	int ys;

	switch ( m_Activity )
	{
	case ACT_IDLE:	
		ys = 150;		
		break;
	case ACT_RUN:	
		ys = 150;	
		break;
	case ACT_WALK:	
		ys = 180;		
		break;
	case ACT_RANGE_ATTACK1:	
		ys = 120;	
		break;
	case ACT_RANGE_ATTACK2:	
		ys = 120;	
		break;
	case ACT_MELEE_ATTACK1:	
		ys = 120;	
		break;
	case ACT_MELEE_ATTACK2:	
		ys = 120;	
		break;
	case ACT_TURN_LEFT:
	case ACT_TURN_RIGHT:	
		ys = 180;
		break;
	case ACT_GLIDE:
	case ACT_FLY:
		ys = 30;
		break;
	default:
		ys = 90;
		break;
	}

	pev->yaw_speed = ys;
}
//=========================================================
// SetYawSpeed - allows each sequence to have a different
// turn rate associated with it.
//=========================================================
allows each sequence to have a different
turn rate associated with it.
allows each sequence to have a different turn rate associated with it .
void CSTrooper :: SetYawSpeed ( void )
{
	int ys;
	switch ( m_Activity )
	{
	case ACT_IDLE:	
		ys = 150;		
		break;
	case ACT_RUN:	
		ys = 150;	
		break;
	case ACT_WALK:	
		ys = 180;		
		break;
	case ACT_RANGE_ATTACK1:	
		ys = 120;	
		break;
	case ACT_RANGE_ATTACK2:	
		ys = 120;	
		break;
	case ACT_MELEE_ATTACK1:	
		ys = 120;	
		break;
	case ACT_MELEE_ATTACK2:	
		ys = 120;	
		break;
	case ACT_TURN_LEFT:
	case ACT_TURN_RIGHT:	
		ys = 180;
		break;
	case ACT_GLIDE:
	case ACT_FLY:
		ys = 30;
		break;
	default:
		ys = 90;
		break;
	}
	pev->yaw_speed = ys;
}
void CSTrooper :: SetYawSpeed ( void ) { int ys ; switch ( m_Activity ) { case ACT_IDLE : ys = 150 ; break ; case ACT_RUN : ys = 150 ; break ; case ACT_WALK : ys = 180 ; break ; case ACT_RANGE_ATTACK1 : ys = 120 ; break ; case ACT_RANGE_ATTACK2 : ys = 120 ; break ; case ACT_MELEE_ATTACK1 : ys = 120 ; break ; case ACT_MELEE_ATTACK2 : ys = 120 ; break ; case ACT_TURN_LEFT : case ACT_TURN_RIGHT : ys = 180 ; break ; case ACT_GLIDE : case ACT_FLY : ys = 30 ; break ; default : ys = 90 ; break ; } pev -> yaw_speed = ys ; }
SetYawSpeed - allows each sequence to have a different
turn rate associated with it.
SetYawSpeed - allows each sequence to have a different turn rate associated with it .