Gravity Switches
Quote from TripleG10 on June 1, 2011, 6:37 pmI'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!
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!
Quote from Aly on June 1, 2011, 7:18 pmPlace a trigger_gravity around your map and have a button that has OnPressed > trigger_gravity > Enable
Place a trigger_gravity around your map and have a button that has OnPressed > trigger_gravity > Enable
Quote from p0rtalplayer on June 1, 2011, 10:08 pmJust 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.
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.
Quote from Aquillians United on June 7, 2011, 3:56 amIt 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.
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.
Quote from SpAM_CAN on June 18, 2011, 6:14 pmUse 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.
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.
Quote from ChickenMobile on June 18, 2011, 11:42 pmAquillians 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.
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.
