Raised This Month: $ Target: $400
 0% 

AmxModX 1.8.2 and set_user_gravity


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Depresie
Veteran Member
Join Date: Nov 2013
Old 06-02-2015 , 13:50   AmxModX 1.8.2 and set_user_gravity
Reply With Quote #1

Recently i was creating a flying like plugin and i noticed something strange
I used fm_set_user_gravity/set_user_gravity to set the gravity of the players
While floating through the air, i observed that i was more like teleporting than floating, i had the feeling that i have 20 fps, even tho the netgraph was displaying 60 fps and 12 ms ping

this issue happens only on the server hosted at a hosting company, which is running amxmodx 1.8.2
on the server hosted from my pc, where im running amxmodx 1.8.1 it doesn't happen
Also it doesn't happen for sv_gravity

anyone encountered this issue before?

Last edited by Depresie; 06-02-2015 at 14:17.
Depresie is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 06-02-2015 , 14:09   Re: AmxModX 1.8.2 and set_user_gravity
Reply With Quote #2

Quote:
Originally Posted by Depresie View Post
I used fm_set_user_maxspeed/set_user_maxspeed to set the gravity of the players
This is kind of confusing... How did you set gravity with functions that set maximum speed?
klippy is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 06-02-2015 , 14:17   Re: AmxModX 1.8.2 and set_user_gravity
Reply With Quote #3

lol... sorry, edited main post
Depresie is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-02-2015 , 18:04   Re: AmxModX 1.8.2 and set_user_gravity
Reply With Quote #4

You need to upgrade to 1.8.2 at home then try it again. Also, fm_set_user_gravity() should not be used. Only use set_user_gravity(). I've never experienced any issues with set_user_gravity() which is used by parachute plugins.

Why is this in offtopic? It is a scripting issue.
__________________

Last edited by fysiks; 06-02-2015 at 18:06.
fysiks is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 06-03-2015 , 08:40   Re: AmxModX 1.8.2 and set_user_gravity
Reply With Quote #5

well i installed amxmodx 1.8.2 on my pc, the issue is not present... only on the paid host
about the parachute plugins, from what i know they use velocity instead of set_user_gravity
Depresie is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-03-2015 , 09:12   Re: AmxModX 1.8.2 and set_user_gravity
Reply With Quote #6

Quote:
Originally Posted by Depresie View Post
about the parachute plugins, from what i know they use velocity instead of set_user_gravity
That depends on which one you use.
__________________
fysiks is offline
Reply



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 01:01.


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