Raised This Month: $ Target: $400
 0% 

CS Gravity


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
hornet
AMX Mod X Plugin Approver
Join Date: Mar 2010
Location: Australia
Old 08-08-2010 , 02:02   CS Gravity
Reply With Quote #1

I'm making a level up system which involves my player's gravity going up by 10 (CS gravity) each time the player levels up, in order to allow them to jump higher. My problem is when I use the Fun Module function get_user_gravity(id) it gives me the number 1065353216.

So I looked at it this way - in CS the default gravity is 800. I want it to go up by 10. So 800 divided by 10 is 80, meaning that my gravity goes up by one 80th of the default gravity each level up. So I thought if I get one 80th of 1065353216, which is 13316915, I can increase 1065353216 (the default) by 13316915 (the 80th of the default) each time the player levels up. Now when using set_user_gravity(id) it seems to push you in the opposite way to CS gravity, (at the moment I've only tested this part at level 20) so whether I add or subtract the 80th it will either shoot me up into the sky or glue me to the ground.

Can someone please help me?
hornet is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:18.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode