Crushers Please Help

Avatar
TripleG10
107 Posts
Posted May 13, 2011
I am sort of a noob, and one of the last few things in my current Portal 2 map using the Beta of the Portal 2 authoring tools on Steam, is a crusher. I want it to be activated by a button that you push. (Not the step on buttons.) I have the animation I want, but how do I make it do the animation when I press the button? I have a crusher from world model, but I don't have the Parent No Draw box thing. Nor do I know how to do that. I also don't want it to crush repeatedly, so I don't need as many logic thingys.
Advertisement
Registered users don’t see ads! Register now!
Avatar
TripleG10
107 Posts
Posted May 14, 2011
Replied 11 hours later
Someone please help!
Avatar
MrTwoVideoCards
584 Posts
Posted May 14, 2011
Replied 1 minutes later
You need to SetAnimation from the button you have the player pressing as an output.
Avatar
TripleG10
107 Posts
Posted May 14, 2011
Replied 16 minutes later
Ok, thanks! On a related note, do I need the Func hurt nodraw box parent thing atached to the crusher?
Avatar
TripleG10
107 Posts
Posted May 14, 2011
Replied 5 minutes later
I just did the set animation thing, and the crusher stil doesn't even appear in my map, let alone animate.
Avatar
p0rtalplayer
1,366 Posts
Posted May 14, 2011
Replied 2 hours later
make sure the crusher is a prop_dynamic, if it is a prop_static then it may not work right.

And yes, I think if you want it to kill you, you need a trigger_hurt parented to it. I haven't messed with crushers yet so I don't know for sure.

Avatar
TripleG10
107 Posts
Posted May 14, 2011
Replied 4 minutes later

Thanks, I'll try that. Oh and it is a prop_dynamic. By the way, this may help. When I try to run the map, it doesn't work. And it keeps animating when I'm on Hammer. How do I stop that so I can attach a parent?

Running command: cd "c:\program files\steam\steamapps\common\portal 2\bin"


Running command: "c:\program files\steam\steamapps\common\portal 2\bin\vbsp.exe"
-game "c:\program files\steam\steamapps\common\portal 2\portal2" "C:\Program Fi
les\Steam\steamapps\common\portal 2\sdk_content\maps\SP_Test_Chamber_1.vmf"


Valve Software - vbsp.exe (May 3 2011)
1 threads
materialPath: c:\program files\steam\steamapps\common\portal 2\portal2\materials

Loading C:\Program Files\Steam\steamapps\common\portal 2\sdk_content\maps\SP_Tes
t_Chamber_1.vmf
ConVarRef gpu_level doesn't point to an existing ConVar
fixing up env_cubemap materials on brush sides...
ProcessBlock_Thread: 0...1...2...3...4...5...6...7...8...9...10 (0)
* leaked *
Entity prop_dynamic (-256.00 -331.06 376.00) leaked!
Processing areas...done (0)
Building Faces...done (0)
Chop Details...done (0)
Find Visible Detail Sides...
Merged 54 detail faces...done (0)
Merging details...done (0)
FixTjuncs...
PruneNodes...
WriteBSP...
done (0)
Finding displacement neighbors...
Finding lightmap sample positions...
Displacement Alpha : 0...1...2...3...4...5...6...7...8...9...10
Building Physics collision data...
done (0) (11867 bytes)
Placing detail props : 0...1...2...3...4...5...6...7...8...9...10
Compacting texture/material tables...
Reduced 69 texinfos to 16
Reduced 7 texdatas to 6 (174 bytes to 146)
Writing C:\Program Files\Steam\steamapps\common\portal 2\sdk_content\maps\SP_Tes
t_Chamber_1.bsp
0 seconds elapsed


Running command: cd "c:\program files\steam\steamapps\common\portal 2\bin"


Running command: "c:\program files\steam\steamapps\common\portal 2\bin\vvis.exe"
-game "c:\program files\steam\steamapps\common\portal 2\portal2" "C:\Program Fi
les\Steam\steamapps\common\portal 2\sdk_content\maps\SP_Test_Chamber_1"


Valve Software - vvis.exe (May 3 2011)
1 threads
reading c:\program files\steam\steamapps\common\portal 2\sdk_content\maps\SP_Tes
t_Chamber_1.bsp
reading c:\program files\steam\steamapps\common\portal 2\sdk_content\maps\SP_Tes
t_Chamber_1.prt
LoadPortals: couldn't read c:\program files\steam\steamapps\common\portal 2\sdk_
content\maps\SP_Test_Chamber_1.prt

Finished. Press a key to close.

Avatar
TripleG10
107 Posts
Posted May 14, 2011
Replied 15 minutes later
Forget all of that! It was bewcause the crusher was leaked. Now the animation and everything works. It even appears in my map. But I go through it. I do need the parent. By the way is't set to not solid, so the parent will work. I also fugured out how to stop the constant animation in hammer. So that leads to this last thing: how do I do the parent thing?
Avatar
Supervillain
34 Posts
Posted May 14, 2011
Replied 28 minutes later
You are going to want to make a trigger brush and place it overlapping the spikes on the crusher. Ctrl+T to tie to an entity, then make it a trigger_hurt. In it's object properties window set the parent to your dynamic prop (the crusher).

You should also tie a nodraw brush to a func_brush and place it in the same area as the trigger_hurt. Also parent this one to the crusher dynamic prop.

The trigger_hurt is what is going to kill you. Make sure you give it enough damage, and set the damage type to "crushing".

The func_brush is what is going to provide the collision so that the crusher is "solid". Otherwise, the trigger_hurt will kill ya, but crusher prop will go through you and look kinda funky.

I highly recommend taking a look at mp_coop_fling_crushers (you will have to decompile this one). It's a great example of crusher mechanics (and on timers too!).

Avatar
TripleG10
107 Posts
Posted May 14, 2011
Replied 48 minutes later
Thanks so much! The trigger works, but it doesnlt travel with the crusher. Am I doing anything wrong, or is there a specific place I have to attach it to?
Avatar
Omnicoder
299 Posts
Posted May 14, 2011
Replied 40 minutes later

TripleG10 wrote:
Thanks so much! The trigger works, but it doesnlt travel with the crusher. Am I doing anything wrong, or is there a specific place I have to attach it to?

According to the VDC tutorial, you should just have to parent it to the prop_dynamic.
There is also an instance of the crusher in the gameplay folder.

Avatar
TripleG10
107 Posts
Posted May 14, 2011
Replied 25 minutes later
I tried the VDC tutorial, but it got really complicated. And I only need it to crush once by the push of a button. I don't need it to crush repeatedly.
Avatar
Omnicoder
299 Posts
Posted May 14, 2011
Replied 1 hour later

TripleG10 wrote:
I tried the VDC tutorial, but it got really complicated. And I only need it to crush once by the push of a button. I don't need it to crush repeatedly.

I wasn't directing you to the tutorial I was just saying it says you just need to parent the hurt to the prop_dynamic. And like I said you may want to look into the instance Valve provides.

Avatar
TripleG10
107 Posts
Posted May 14, 2011
Replied 17 minutes later
Oh, sorry. Still, the crusher comes down from the celing, which is good. The hurt trigger's parent is the crusher. However, it doesn't travel with it. I know it is there because if I put a portal avove the crusher, now on the ground, after you push the button. then go through my other portal, once I fall to where the hurt trigger is set at the beginning, I die.
Avatar
msleeper
4,136 Posts
Admin
Posted May 14, 2011
Replied 42 minutes later
Stop double posting, and don't bump your thread after an hour.
Advertisement
Registered users don’t see ads! Register now!
Avatar
TripleG10
107 Posts
Posted May 14, 2011
Replied 4 hours later
Sorry. I forgot about double posting. Anyway, it still doesn't work.