• How to change a gravity for only one object ?
    10 replies, posted
Hi, I want to make a map with gravity for make an cube to get up on the ceilling after activated. Any Idea ?
[QUOTE=lotus006;18155302]Hi, I want to make a map with gravity for make an cube to get up on the ceilling after activated. Any Idea ?[/QUOTE] Try a combination of: A [url=http://developer.valvesoftware.com/wiki/Trigger_gravity]Trigger_gravity[/url] (to make the cube weightless) and a [url=http://developer.valvesoftware.com/wiki/Trigger_push]Trigger_push[/url] (to push the cube where you want it to go) with the "Filter Name" set to the name of the cube (so it only pushes the cube)
Yeah try something like bunglist said.
Thanks, I need to set to brush and put 2 square 1 with trigger_gravity and the other 1 trigger_push ?
[QUOTE=lotus006;18155617]Thanks, I need to set to brush and put 2 square 1 with trigger_gravity and the other 1 trigger_push ?[/QUOTE] Yeah, both brushes textured on all sides with the Trigger material. Don't forget to set the "Move Direction" for the Trigger_push
It's weird I can't get it working with these settings [img]http://img248.imageshack.us/img248/9401/hammerg.gif[/img] [img]http://img230.imageshack.us/img230/3334/triggpush.gif[/img] [img]http://img42.imageshack.us/img42/5512/triggravity.gif[/img]
The gravity is a I/O it takes 1 and 0, not 1-100 kind of thing. Change it to 0 and then the trigger push will push it, it should go back to normal when the block gets out of the trigger_gravity Also, put it in trigger textures, not nodraw textures.
oops, lol sorry , but I tryied also with trigger texture and 1 for I/O and nothing. Do you know if I need also filterName for the cube ? Oh and also how can I make only work in the field of the trigger rectangle.
Check your flags on the trigger_gravity and trigger_push to make sure that physic objects and pushables are checked.
[QUOTE=Firegod522;18159966]Check your flags on the trigger_gravity and trigger_push to make sure that physic objects and pushables are checked.[/QUOTE] It's really weird I have done all possibility to make the cube go to the ceilling but I have uncheck client and just leave physic object on. and on the trigger gravity It's just me can activate the gravity.
OK I made a test map to try this out: [url]http://upload.bunglist.com/maps/gm_test_nograv_push.zip[/url] Looks like the trigger_gravity doesn't affect props no matter the settings. However, trigger_push does, and if you tune the "Speed of Push" to the weight of the entity you want to push (does not appear to be linear so will take experimentation). In the test map I linked there is a big trigger_gravity (above the grey panel) which I tried gravity at 0 and -1 (it says in the SDK wiki that it accepts negative values) with no effect on the prop. There are three trigger_push triggers (above the cut-out squares in the grey panel) the left (as you spawn) is set to "Speed of Push" 100, the middle 200 and the right 300 I provided a range of props of different weight to demonstrate. Plastic crate: 10 Blue barrels: 30 Refrigerator: 250 The plastic crate goes up quickly in all 3 triggers. The blue barrels falls in the first trigger, moves up slowly in the middle trigger (set to 200) and up fast in the third. The fridge won't lift in any of the triggers. So, to summarize: Use a trigger_push and experiment with the speed of push needed to make your chosen prop go up at a realistic looking rate. Don't bother with a trigger_gravity.
Sorry, you need to Log In to post a reply to this thread.