View Single Post
Mario AR.
Senior Member
Join Date: May 2011
Location: Lima, Perú
Old 02-12-2016 , 17:27   Re: Gravity API v0.2
Reply With Quote #15

Quote:
Originally Posted by Craxor View Post
Test and see yourself, i believe i'm wrong, it's not broken just return weird values (0.5, 1.0, etc .. ) Mine return exactly the value you have ( 800, 530, 400.. etc ).
Well... they're not exactly "weird values".

0.5 gravity means half (1/2) the gravity set in "sv_gravity" CVAR.
So, the relative gravity of a player with "0.5 gravity", in a server with normal gravity (800) will be 800*0.5 = 400 units/s^2

Your API, basically, acts as a calculator for custom gravities; but an API only for doing that simple thing is not worth, IMO.
Mario AR. is offline