game/server/server_weapon.c
/*	Attempts to throw out a projectile.
*/
Attempts to throw out a projectile.
Attempts to throw out a projectile .
void Weapon_Projectile(ServerEntity_t *eOwner, ServerEntity_t *eProjectile, float fVelocity)
{
	MathVector3f_t mvDirection;
	Math_MVToVector(Weapon_Aim(eOwner), mvDirection);
	Math_VectorScale(mvDirection, fVelocity, eProjectile->v.velocity);
}
void Weapon_Projectile ( ServerEntity_t * eOwner , ServerEntity_t * eProjectile , float fVelocity ) { MathVector3f_t mvDirection ; Math_MVToVector ( Weapon_Aim ( eOwner ) , mvDirection ) ; Math_VectorScale ( mvDirection , fVelocity , eProjectile -> v . velocity ) ; }
Attempts to throw out a projectile.
Attempts to throw out a projectile .
// Figure out our aim direction. // Scale with the speed and copy over the angled velocity.