Raised This Month: $ Target: $400
 0% 

Ways to set user gravity / speed


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 11-06-2017 , 10:43   Ways to set user gravity / speed
Reply With Quote #1

i want all natives whitch give user sped and gravity and i want safely one and an example please with it
__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
KiLLeR.
Senior Member
Join Date: Jul 2014
Location: Bulgaria
Old 11-06-2017 , 11:03   Re: Ways to set user gravity / speed
Reply With Quote #2

Code:
set_user_gravity(id, 0.5) // 1.0 is 800 gravity, 0.5 is 400, etc.

Last edited by KiLLeR.; 11-06-2017 at 11:04.
KiLLeR. is offline
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 11-06-2017 , 13:16   Re: Ways to set user gravity / speed
Reply With Quote #3

i know that way i want all natives as in engine and as set_pev gravity .... i want all methods...
__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 11-06-2017 , 13:29   Re: Ways to set user gravity / speed
Reply With Quote #4

set_pev(id, pev_gravity, ...) -- fakemeta
entity_set_float(id, EV_FL_gravity, ...) -- engine
set_user_gravity(id, ...) -- fun

Why do you need all of them?
__________________

Last edited by OciXCrom; 11-06-2017 at 13:29.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
D3XT3R
AlliedModders Donor
Join Date: Nov 2016
Location: Lithuania, Bomb A (Kauna
Old 11-06-2017 , 13:51   Re: Ways to set user gravity / speed
Reply With Quote #5

Quote:
Originally Posted by OciXCrom View Post
set_pev(id, pev_gravity, ...) -- fakemeta
entity_set_float(id, EV_FL_gravity, ...) -- engine
set_user_gravity(id, ...) -- fun

Why do you need all of them?
just having problems....
__________________
D3XT3R is offline
Send a message via Skype™ to D3XT3R
KiLLeR.
Senior Member
Join Date: Jul 2014
Location: Bulgaria
Old 11-06-2017 , 14:18   Re: Ways to set user gravity / speed
Reply With Quote #6

Actually I know 3 methods: EV_FL_gravity, pev_gravity and set_user_gravity.
KiLLeR. is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 11-09-2017 , 08:20   Re: Ways to set user gravity / speed
Reply With Quote #7

set_user_maxspeed, pev_maxspeed and EV_FL_maxspeed. If you're not using ReAPI (RG_CBasePlayer_ResetMaxspeed), you need to do some trick with Ham_Item_PreFrame.
__________________









Last edited by CrazY.; 11-09-2017 at 08:21.
CrazY. 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 07:52.


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