Raised This Month: $32 Target: $400
 8% 

each player have his own gravity


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sixten_8_9@
Senior Member
Join Date: Jun 2009
Location: Sweden
Old 11-03-2018 , 14:09   each player have his own gravity
Reply With Quote #1

FOR CSGO:
searching for plugin each player can set there own gravity
ex: i'm on T i choose 500gravity
the other player on ct choose 100gravity

ofc: the server are gonna have it owns settings.
but if player want change gravity
type !gravity
__________________
My Nick name is Nouton^
i have played cs for around 12years+
have build servers for about 12years
my website and my servers are: http://Nouton.se

i host at home did build my own server station for around 1300$.
sixten_8_9@ is offline
P4UL
AlliedModders Donor
Join Date: Apr 2017
Location: Netherlands
Old 11-03-2018 , 15:42   Re: each player have his own gravity
Reply With Quote #2

You can change/add/remove whatever amount of gravity you want, 800 is default.
Attached Files
File Type: sp Get Plugin or Get Source (Gravity.sp - 356 views - 2.0 KB)

Last edited by P4UL; 11-03-2018 at 15:42.
P4UL is offline
sixten_8_9@
Senior Member
Join Date: Jun 2009
Location: Sweden
Old 11-04-2018 , 12:32   Re: each player have his own gravity
Reply With Quote #3

Quote:
Originally Posted by P4UL View Post
You can change/add/remove whatever amount of gravity you want, 800 is default.
hi,
its dont work, the menu popup but nothing happend after that,
and the menu are only popup if u type the command in console and if you are admin
and if you are admin and type in !sm_gravity in chat then it ask for you userid or name.
__________________
My Nick name is Nouton^
i have played cs for around 12years+
have build servers for about 12years
my website and my servers are: http://Nouton.se

i host at home did build my own server station for around 1300$.

Last edited by sixten_8_9@; 11-04-2018 at 12:53.
sixten_8_9@ is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 11-04-2018 , 15:11   Re: each player have his own gravity
Reply With Quote #4

That is because, sourcemod base plugin already create first sv_gravity command.
Then this second plugin duplicate same command name.
You will have two sm_gravity commands

*edit
And I don't think SetEntityGravity use same gravity value as server sv_gravity.
https://sm.alliedmods.net/new-api/en...tEntityGravity

It's percent, Gravity to set (default = 1.0, half = 0.5, double = 2.0).

Last edited by Bacardi; 11-04-2018 at 15:14.
Bacardi is offline
P4UL
AlliedModders Donor
Join Date: Apr 2017
Location: Netherlands
Old 11-04-2018 , 15:35   Re: each player have his own gravity
Reply With Quote #5

Quote:
Originally Posted by Bacardi View Post
That is because, sourcemod base plugin already create first sv_gravity command.
Then this second plugin duplicate same command name.
You will have two sm_gravity commands

*edit
And I don't think SetEntityGravity use same gravity value as server sv_gravity.
https://sm.alliedmods.net/new-api/en...tEntityGravity

It's percent, Gravity to set (default = 1.0, half = 0.5, double = 2.0).
I searched on google how to do it and they did it with normal gravity amount, it worked on respawn but that is why it did not work when I tried to do it when they picked a gravity amount from the menu. Now that works but it doesn't change it anymore on respawn and IDK why exactly.
Attached Files
File Type: sp Get Plugin or Get Source (Gravity.sp - 288 views - 2.0 KB)
P4UL is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 11-04-2018 , 16:59   Re: each player have his own gravity
Reply With Quote #6

You need to set their gravity on each spawn.
__________________
Neuro Toxin is offline
P4UL
AlliedModders Donor
Join Date: Apr 2017
Location: Netherlands
Old 11-05-2018 , 01:47   Re: each player have his own gravity
Reply With Quote #7

Quote:
Originally Posted by Neuro Toxin View Post
You need to set their gravity on each spawn.
I did
Code:
HookEvent("player_spawn", Event_PlayerSetGravity);
P4UL is offline
eyal282
Veteran Member
Join Date: Aug 2011
Old 11-05-2018 , 02:56   Re: each player have his own gravity
Reply With Quote #8

Quote:
Originally Posted by P4UL View Post
I did
Code:
HookEvent("player_spawn", Event_PlayerSetGravity);
Use PrintToChatAll("%.3f", gravity); to debug it.
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 is offline
sixten_8_9@
Senior Member
Join Date: Jun 2009
Location: Sweden
Old 11-06-2018 , 23:29   Re: each player have his own gravity
Reply With Quote #9

okey, P4UL thanks, if any of u fix it post the plugin and thank you for you time !
__________________
My Nick name is Nouton^
i have played cs for around 12years+
have build servers for about 12years
my website and my servers are: http://Nouton.se

i host at home did build my own server station for around 1300$.
sixten_8_9@ is offline
sixten_8_9@
Senior Member
Join Date: Jun 2009
Location: Sweden
Old 12-10-2018 , 00:39   Re: each player have his own gravity
Reply With Quote #10

Renew,
Still Searching for this if someone know how to fix it write the update code here
//Thx
__________________
My Nick name is Nouton^
i have played cs for around 12years+
have build servers for about 12years
my website and my servers are: http://Nouton.se

i host at home did build my own server station for around 1300$.
sixten_8_9@ is offline
Reply


Thread Tools
Display Modes

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 02:57.


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