Raised This Month: $51 Target: $400
 12% 

[Any] Gravity Reset


Post New Thread Reply   
 
Thread Tools Display Modes
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 03-11-2012 , 07:46   Re: [Any] Gravity Reset
Reply With Quote #11

Quote:
Originally Posted by St00ne View Post
Thank you, the plugin works without error now on CS:S.

Unfortunately it doesn't do what I need:
when I play on a ka_volleyball map, the gravity changes. When the nextmap is a normal or a soccer map, or any map with normal gravity, the gravity goes back to 800 BUT not for the ball or the weapons. Even if I change the map twice.
These ka_volleyball maps change gravity for the models and then setting back gravity to 800 doesn't change the models gravity. It is getting on my nerves
sv_gravity affect only players, not other physic (what I tested and seen) what the heck... it affect next map

That map volleyball change also physics
Add these in your server config.
Code:
phys_pushscale 1 // - Scale push for physics (0 = stop, -number = towards, number = away)
phys_timescale 1 //  - Scale time for physics (lower than 1.0 slow, higher than 1.0 faster)
sv_gravity 800
But you get this timescale bug to next map, but will gone second map.

Last edited by Bacardi; 03-11-2012 at 12:27.
Bacardi is offline
St00ne
Veteran Member
Join Date: Jan 2011
Location: Annecy - France
Old 03-11-2012 , 14:20   Re: [Any] Gravity Reset
Reply With Quote #12

Haha hihi hoho!
I had to decompile the map and check what server commands had been touched, to discover that phys_timescale was changed on that volleyball map... grrr I spent quite a long time.

I couldn't guess I could have waited for your answer, but anyway, it is fixed now... I added phys_timescale 1 in my server.cfg and it is correctly set at mapchange.
Thank you very much for your response, I might have never found the solution...

PS: For the phys_pushscale and sv_gravity, I knew already and had set the cvars to default values in my server.cfg. I was just being annoyed with the ball because of that timescale value.
Really, setting phys_timescale to 0.4 really makes the ball acting like it's under low gravity...


Regards,

St00ne

Last edited by St00ne; 03-11-2012 at 14:20.
St00ne is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 03-12-2012 , 06:22   Re: [Any] Gravity Reset
Reply With Quote #13

Quote:
Originally Posted by St00ne View Post
Haha hihi hoho!
I had to decompile the map and check what server commands had been touched, to discover that phys_timescale was changed on that volleyball map... grrr I spent quite a long time.
...
I did exactly same way

Another is entspy where you can peek map entities keyvalues.
Bacardi is offline
St00ne
Veteran Member
Join Date: Jan 2011
Location: Annecy - France
Old 03-12-2012 , 07:48   Re: [Any] Gravity Reset
Reply With Quote #14

Hi,

Thanks for the tip, I will check that entspy software.

Concerning the plugin, is it possible to add a enable/disable cvar?

Edit1: I'd like to have the same plugin for cs:s but changing sv_accelerate to 10 each "round_freeze_end".
I can't compile it without error or warnings. -> done, thanks to Bacardi.

Last edited by St00ne; 03-31-2012 at 09:31.
St00ne is offline
St00ne
Veteran Member
Join Date: Jan 2011
Location: Annecy - France
Old 03-21-2012 , 13:43   Re: [Any] Gravity Reset
Reply With Quote #15

Hi,

If it doesn't disturb anyone here, I'll post the one I use.

First, I needed to edit sourcecode to make the plugin work for CS:S. Thanks to Bacardi for the tip.
Then, I modified it so that it changes the gravity at the end of the map.
If you use that plugin, the gravity is set back just before mapchange, so you don't need to change the map twice due to a common bug on cs:s.

++

EDIT: plugin updated here to support rtv and manual mapchange -> https://forums.alliedmods.net/showthread.php?p=1703879
Attached Files
File Type: sp Get Plugin or Get Source (GravReset_mapend.sp - 249 views - 1.6 KB)

Last edited by St00ne; 07-16-2012 at 00:55.
St00ne 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 04:29.


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