A Question about Gravity....

Hagan

L1: Registered
Feb 26, 2008
11
0
Lately I've been playing around with Hammer and actually having fun with it. I made a few small maps but nothing worth posting. Ever since I started I had a really go idea for one map. The only thing tho is it requires a bit of gravity manipulation. Im pretty much try to find a way to walk on walls.
 

drp

aa
Oct 25, 2007
2,273
2,628
IIRC, the gravity settings is a server setting, which will obviously affect the entire map.
But hey! Welcome to the forums :)
 
Oct 25, 2007
219
690
The only thing tho is it requires a bit of gravity manipulation. Im pretty much try to find a way to walk on walls.

Try the trigger_gravity entity, it may help. I don't know for sure if it works in TF2.
 
Last edited:

TheFragMan

L1: Registered
Jan 9, 2008
33
1
Try the trigger_gravity entity, it may help. I don't know for sure if it works in TF2.

Oh, it works. I've played around with it on one of my maps. You can actually have multiple trigger_gravity's, with different settings so you can walk from an area with high gravity to an area of low gravity. You can also make the gravity negative so when you jump you get pushed up (but then get stuck on the ceiling and can't move).

The problem with all this is, you can only affect the gravity up and down, and you can't change the orientation of the player, so, sorry, no walking on walls. Though you could play around with low gravity and trigger_push's (maybe func_push, can't remember) to try to get the effect you want.
 

drp

aa
Oct 25, 2007
2,273
2,628
Oh, it works. I've played around with it on one of my maps. You can actually have multiple trigger_gravity's, with different settings so you can walk from an area with high gravity to an area of low gravity. You can also make the gravity negative so when you jump you get pushed up (but then get stuck on the ceiling and can't move).

The problem with all this is, you can only affect the gravity up and down, and you can't change the orientation of the player, so, sorry, no walking on walls. Though you could play around with low gravity and trigger_push's (maybe func_push, can't remember) to try to get the effect you want.

sweet
 

YM

LVL100 YM
aa
Dec 5, 2007
7,158
6,079
The problem with all this is, you can only affect the gravity up and down, and you can't change the orientation of the player, so, sorry, no walking on walls. Though you could play around with low gravity and trigger_push's (maybe func_push, can't remember) to try to get the effect you want.
It produces wierd effects, it will look like players are lying on a wall, kicking their legs, rather than actually walking on the wall. In portal, chell can go halfway though the ceiling before she stops so make sure you don't have any of that going on (playerclips all around!)
 

ChickenHunter

L4: Comfortable Member
Feb 12, 2008
163
13
I also suggest the trigger_push. set it to send you upwards at low velocity so that itll send you upwards slowly when you jump and down slowly as you fall giving the feeling of low gravity. Plus you can really **** around with people by putting random gravity zones :p
 

Hagan

L1: Registered
Feb 26, 2008
11
0
Thanks guys for all of your help and advice. I wasn't able to do what I wanted to. I was going for 2 things

1. I wanted to make a CP map of a planet that had the same gravity law like in Super Mario Galaxy.

2. Another CP map with a theme of a house of (unbreakable & breakable) glass. I wanted to be able to set both main spawn rooms above one another. So if you were to look up you would see the other team


again thanks
 

dirtyminuth

L5: Dapper Member
Nov 5, 2007
221
15
I'm curious whether trigger_push or trigger_vphysics_motion is more expensive for network play. Trigger_vphysics_motion is by far the more versatile of the two.

I'm not even sure you can use trigger_vphysics_motion in TF2. It's not in the drop down list for brush entities. The possible solution is to create a custom fgd with trigger_vphysics_motion in it, let Hammer know about it, and hope that TF2 can "figure it out" in game.
 

Snipergen

L13: Stunning Member
Nov 16, 2007
1,051
150
Thanks guys for all of your help and advice. I wasn't able to do what I wanted to. I was going for 2 things

1. I wanted to make a CP map of a planet that had the same gravity law like in Super Mario Galaxy.


Hahahah so I'm not the only one who would like to try it. I would have made it but it's impossible without modding the game. Even if its possible to make you jump around a little globe, the rockets wouldn't be affected by gravity and, everything would just be too buggy to call the map a succes. :sad:
 

Hagan

L1: Registered
Feb 26, 2008
11
0
Ya I was thinking about that as well. I was planing on making it box like in shape. That would take away the rocket problem they would just shoot out into the distance. But then, making it where the spawn wouldn't fall off the edge that is the impossible part. Hammer wont let spawns stand upside down. I just came up with another Idea to work around that tho.

more info in a bit