trigger_gravity and trigger_push

Avatar
Reverend Protocol
20 Posts
Posted Feb 08, 2008
So I saw push used in a map and thought it was pretty cool, so I'm currently working to implement a use for it into my map. However, it doesn't seem to be working on the cube I have the player spawn. I thought maybe the cube was too heavy, so I put in a gravity trigger and set it to 0, but that's not working either.

Are there prerequisites to using these triggers? Couldn't find any such information in the wiki.

Also, I have it the Flag marked to affect only physics objects.

Advertisement
Registered users don't see ads! Register now!
Avatar
MrTwoVideoCards
584 Posts
Posted Feb 08, 2008
Replied 11 hours later
The Trigger_push needs to have a flag checked towards an phys object, that could be the problem.
Avatar
Nacimota
345 Posts
Posted Feb 08, 2008
Replied 4 hours later
I don't think trigger_gravity works at 0
Avatar
msleeper
4,095 Posts
Member
Posted Feb 08, 2008
Replied 22 minutes later
trigger_gravity wouldn't actually fix the problem either. Although gravity is a force in real-life, it is more of a simulated resistance in Source and wouldn't actually make the box "lighter" and easier to move like IRL zero gravity would be.
Avatar
Reverend Protocol
20 Posts
Posted Feb 08, 2008
Replied 2 hours later
Mmkay, that does make sense.

So what about the push trigger? I am super stumped as to why it's not affecting the box.

Avatar
msleeper
4,095 Posts
Member
Posted Feb 08, 2008
Replied 57 minutes later

MrTwoVideoCards wrote:
The Trigger_push needs to have a flag checked towards an phys object, that could be the problem.

Avatar
Techno-Man
26 Posts
Posted Feb 08, 2008
Replied 1 hour later
Tick "Physics Objects" under the flags tab of the trigger_push and make sure there is enough push force.
Avatar
Reverend Protocol
20 Posts
Posted Feb 08, 2008
Replied 1 hour later

Reverend Protocol wrote:
Also, I have it the Flag marked to affect only physics objects.

First post.

Avatar
MrTwoVideoCards
584 Posts
Posted Feb 09, 2008
Replied 6 minutes later
You might want to adjust the trigger_push, and make sure its On, and then have it going i a direction, around a 250 push should be good, I found that 205 makes it float nicely.
Avatar
Reverend Protocol
20 Posts
Posted Feb 09, 2008
Replied 4 hours later
Does trigger_push negate the effect of gravity on an object? Say, if the box is flying to the left, is it also going to have some downward pull on it?
Avatar
msleeper
4,095 Posts
Member
Posted Feb 09, 2008
Replied 9 hours later
Yeah. As I said, gravity in source is a simulated force, not something that is actually applied to things, and as such there is no way to negate it. Think of trigger_push and trigger_vphysics_motion as a gust of wind or something similar to that - they are constant and can only apply, not alter, forces.
Avatar
Megadude
154 Posts
Posted Feb 09, 2008
Replied 16 minutes later
You could try changing it with the sv_gravity console command, although you would have to switch on cheats for it to work, but then they could be switched off afterwards.
Advertisement
Registered users don't see ads! Register now!
Avatar
Hober
1,180 Posts
Posted Feb 10, 2008
Replied 11 hours later

msleeper wrote:
wouldn't actually make the box "lighter" and easier to move like IRL zero gravity would be.

Gonna have to stop you right there. Gravity doesn't make things hard to move. Mass (and therefore inertia) does. The direct correlation between mass and inertia and gravity is interesting (the more of one, the more of the other), but not pertinent.