Please or Register to create posts and topics.

Gravity Switches

I've been searching the web for while now, but I can't seem to find a page telling me how to make gravity change by the push of a button. If anybody can help me that would be great, but it's not something urgent in my mapping currently. Thanks in advance!

Place a trigger_gravity around your map and have a button that has OnPressed > trigger_gravity > Enable

Just an FYI, you can't change the direction of gravity, only the amount of force it has. You can kinda emulate an orientation change with world portals, but it's imperfect.

Hear the turret, for it is knell. It summons thee to heaven, or to hell.

It is possible to change the gravity, but it doesn't work well.
Create a Trigger_Gravity, and set the gravity to -1.0, then make it start disabled, and have the button enable it.
It only starts working after you stop touching the ground after triggering it, and instead of walking on the ceiling, you float around it on your head.

ok, then how do I change just the force of the gravity?

Use a vphysics_motion for physics objects, and trigger_gravity for the player. Take a look at my map, SP_CORECIV. Thats how I did it. I also did ceiling walking using a World Portal.

EDIT: In the small gravity flipper area, i added two func_push with a VERY weak force (about 1). This is enough to restart the calculation of physics for the props in that area. Basically.

Aquillians United wrote:
It is possible to change the gravity, but it doesn't work well.
Create a Trigger_Gravity, and set the gravity to -1.0, then make it start disabled, and have the button enable it.
It only starts working after you stop touching the ground after triggering it, and instead of walking on the ceiling, you float around it on your head.

Any gravity that is below 0 will make the player fly up instead of creating low gravity and make you fall slowly down again. I think the default number for gravity is 600. So a value of 200 will make you jump around like your on the moon.
And yes you will only float around if you jump. To fix this issue I guess you could use a small trigger_push in order to make the player start floating.

?????????????????????????????TWP Releases | My Workshop