Trash Compactor (func_door)

  • Thread starter Thread starter aedi
  • Start date Start date
A

aedi

Guest
Hi

I thought it would be fairly easy to simulate a trash compactor with a func_door, but I'm running into issues I'm not sure how to handle. Can anyone help?

I created somthing that looks like the following:

|...........| |................|
|...........| |................|
|..|---------------|.......|
|..|....func_door |.......|
|..|---------------|.......|
|...............................|func_button
|...............................|
|............O (rpg).........|
|=================|

There is a func_button on the outside of the mini-room which, when pressed, tell the func_door to close in a down position.

Here are the issues I'm having.

1. If the rpg isn't there (someone took it), the func_door goes through the floor. I tried putting a tools/clip textured block on the floor, but the func_door ignores it. I want the func_door to go down to the floor, but not through it.

2. The func_door stops when it encounters a person if a person goes in to get the rpg. I want the func_door to squish him (if someone else was able to press the button in time)

Thanks for any help you can offer!
 
A func_door isn't the best entity for a trash compactor, because, as you found out, it will reverse or stop when it encounters another entity.

What i would suggest doing is changing your compactor from a func_door to a func_train, and placing info_track(?)s where you want it to go. (See a train tutorial for more information)

-DaMaN

P.S. The trash compactor in HL1 was made with a train
 
Back
Top