game/server/server_physics.c
/*	Sets the amount of gravity for the object.
*/
Sets the amount of gravity for the object.
Sets the amount of gravity for the object .
void Physics_SetGravity(ServerEntity_t *eEntity)
{	
	eEntity->v.velocity[2] -=
		(eEntity->Physics.fGravity*cvServerGravityTweak.value)*
		eEntity->Physics.fMass*
		(float)Engine.Server_GetFrameTime();
}
void Physics_SetGravity ( ServerEntity_t * eEntity ) { eEntity -> v . velocity [ 2 ] -= ( eEntity -> Physics . fGravity * cvServerGravityTweak . value ) * eEntity -> Physics . fMass * ( float ) Engine . Server_GetFrameTime ( ) ; }
Sets the amount of gravity for the object.
Sets the amount of gravity for the object .
// Slightly more complex gravity management. // Multiplied by the mass of the entity.