Example #1
0
qboolean SV_FlyDirection( edict_t *ent, vec3_t move )
{
	int	ret;

	ret = SV_MoveStep( ent, move, false );
	SV_LinkEdict( ent, true );

	return ret;
}
Example #2
0
qboolean SV_StepDirection( edict_t *ent, float yaw, float dist )
{
	int	ret;
	vec3_t	move;

	yaw = yaw * M_PI * 2 / 360;
	VectorSet( move, cos( yaw ) * dist, sin( yaw ) * dist, 0.0f );

	ret = SV_MoveStep( ent, move, 0 );
	SV_LinkEdict( ent, true );

	return ret;
}
Example #3
0
qboolean SV_StepDirection( edict_t *ent, float yaw, float dist )
{
	int	ret;
	float	cSin, cCos;
	vec3_t	move;

	yaw = yaw * M_PI2 / 360.0f;
	SinCos( yaw, &cSin, &cCos );
	VectorSet( move, cCos * dist, cSin * dist, 0.0f );

	ret = SV_MoveStep( ent, move, false );
	SV_LinkEdict( ent, true );

	return ret;
}