Gravity Control?
Post Reply
Quote
Re: Gravity Control?
Posted by Naklajat on Fri Nov 26th at 8:00am 2004


i want to make an fy map... no not another iceworld clone. you get one hint: i need a way to set negative gravity. give up? a level where you fly around the ceiling and walk on walkways at the edges of the level. i just thought of a name: fy_gravboots. all i need is a way to set the gravity for the level at a negative value. i was playing around with the sv_ commands and found that ragdolls on the ceiling just look plain funny. any help would be rewarded with points and gold stars.
[addsig]




Quote
Re: Gravity Control?
Posted by Hugh on Fri Nov 26th at 8:24am 2004


If you have grav boots, wouldn't it make more sense for the gravity to just be low? Setting your gravity of 200 will really kick up you up there and take a decent amount of time to land on the walkways. Anyway, I know you can't have negative gravity i.e. have the player float naturally. [addsig]



Quote
Re: Gravity Control?
Posted by Naklajat on Fri Nov 26th at 8:28am 2004


i was just in the game and messing with sv_gravity. i set it to -200 in a room filled with hostages and they all went to the ceiling after i reset the server. there was a ragdoll magnet at the bottom of the level, so when i killed them they would fly and hit the floor then float back towards the ceiling. i just need to know if there is a way to make it so that the server will automatically have a sv_gravity setting when the level starts.
[addsig]




Quote
Re: Gravity Control?
Posted by Hugh on Fri Nov 26th at 8:29am 2004


Oh, well then. Color me stupid. [addsig]



Quote
Re: Gravity Control?
Posted by Naklajat on Fri Nov 26th at 8:34am 2004


/gets out crayons

btw i love your avatar! awesome! #1!!!!!1!1!!!!!>!@
[addsig]




Quote
Re: Gravity Control?
Posted by Corona on Fri Nov 26th at 2:34pm 2004


use the

point_servercommand entity?

O_o





Quote
Re: Gravity Control?
Posted by Knare on Fri Nov 26th at 4:44pm 2004


remember if you modify grav that 800 is normal (at least for HL1 + steam + amx) [addsig]



Quote
Re: Gravity Control?
Posted by Dred_furst on Fri Nov 26th at 5:16pm 2004


try setting the gravity trigger (is that it still) and set it to -1.0 or something similar if it still uses the old method.
[addsig]




Quote
Re: Gravity Control?
Posted by Naklajat on Fri Nov 26th at 6:53pm 2004


i think youre on to something, corona. i completely missed that entity. i will look into that...
/edit
i looked into it breifly and found nothing on how to use that particular entity. any suggestions anyone?
[addsig]




Quote
Re: Gravity Control?
Posted by Corona on Sat Nov 27th at 1:15pm 2004


my guess whould be using that entity.
Give it a name, turn of smartedit and add: "sv_gravity" value = 200.
Then trigger that thing.





Quote
Re: Gravity Control?
Posted by Nanodeath on Mon Nov 29th at 6:52pm 2004


http://www.hl2world.com/wiki/index.php/Trigger_gravity

I guess that doesn't help that much, though...if gravity has to be an integer between 0 and 1...that doesn't leave a lot of options :-P "integer" was probably a mistake? Not sure exactly.





Quote
Re: Gravity Control?
Posted by uberDingo on Tue Dec 28th at 4:33am 2004


you cen set trigger_gravity to negative numbers. I have a 'windtunnel' on my funhouse map that when you walk into the windtunnel you pass through a trigger_gravity that sets the gravity to -.1 which makes you slowly float to the ceiling as if you where getting hit with a lot of air.

Unfortunately you have to pass through the trigger_gravity for it to effect something. When I put a ragdoll in the room it was resting on the ground .. I guess because it isnt passing through the trigger_gravity :/ But yeah, trigger_gravity works... kinda





Quote
Re: Gravity Control?
Posted by Nanodeath on Tue Dec 28th at 5:13am 2004


The point_servercommand is a little odd in that you never need more than one in the level because the entity doesn't have any parameters save for a name, but I think it's the one you want (or at least it's an option). You only ever need one in the level because any server commands you want executed are passed to it by some other entity....probably a logic_auto. What I'd imagine you'd do is you'd have the logic_auto execute the server command sv_cheats 1 with 0 delay, sv_gravity -200 with 0.01 delay, and then sv_cheats 0 with 0.02 delay...maybe that's a messy way of doing it, but it would work I think.




Quote
Re: Gravity Control?
Posted by Naklajat on Fri Dec 31st at 2:32am 2004


Nanodeath, you are my hero! Change that to an answer and I'll mark it as correct. Oh yeah, and I changed it from sv_gravity -200 to sv_gravity 100, seems more logical.
[addsig]





Post Reply