Page 1 of 1
Doors bouncing on decorations.
Posted: Wed Jan 02, 2008 11:06 am
by Enjay
I want to make doors bounce on decorations like they do on players/monsters if the door tries to close when the player/monster is under it. I have some pushable decorations that the player could shove into the path of the door but at present the door shuts on them as if they weren't there even though the objects are solid. The flag that seems to make the difference is +SHOOTABLE but I'd rather not use this flag on the decorations if possible. Is there any way around this?
Re: Doors bouncing on decorations.
Posted: Fri Jan 04, 2008 11:58 am
by HotWax
You could use the rather hacky method of monitoring the obstacle's presense in the appropriate area(s) using Actor Enters Sector/Actor Leaves Sector things and some clever scripting. If an object is present, the door could either be made to just not work at all (have it display some message about an obstacle and refuse to close or something) or could be specifically scripted to close down to a certain point (the top of the object) and then go back up.
Obviously this is not the most optimal solution and would require specific sector setups to support this, but it could work if done right...
Re: Doors bouncing on decorations.
Posted: Fri Jan 04, 2008 12:07 pm
by Enjay
That would certainly work but it's probably overkill for the present situation where the instance of the player just happening to push something under a door may never occur. I'm primarily trying to avoid a cosmetic glitch rather than achieve anything essential for gameplay. If it was something important - like a puzzle for example - then I would use something like your suggestion.
For now though, I think I'll either go with the shootable option or simply leave it as it currently is. Thanks.
Re: Doors bouncing on decorations.
Posted: Fri Jan 04, 2008 12:12 pm
by HotWax
Ah I see. From the way you described it, I had assumed you were doing this for some puzzle where you needed to hold a door open for some reason. If that's not the case, and you'd rather not have to deal with the consequences of making the object shootable, I'd say write it off as a ZDoom limitation and leave it as is.
Re: Doors bouncing on decorations.
Posted: Fri Jan 04, 2008 12:40 pm
by Project Shadowcat
It certainly opens upa couple of ideas, however!

*YOINK!*
Re: Doors bouncing on decorations.
Posted: Fri Jan 04, 2008 1:42 pm
by Enjay
Project Dark Fox wrote:It certainly opens upa couple of ideas, however!

*YOINK!*
Indeed it does. I just threw this simple "proof of concept" map together in a few minutes:
http://www.zen64060.zen.co.uk/barrelpuzz.zip
Re: Doors bouncing on decorations.
Posted: Fri Jan 04, 2008 3:16 pm
by MG_Man
How do you move the barrels?
Re: Doors bouncing on decorations.
Posted: Fri Jan 04, 2008 3:35 pm
by Enjay
Just walk into them and keep walking.
Re: Doors bouncing on decorations.
Posted: Fri Jan 04, 2008 4:19 pm
by Tormentor667
Your concept test works, where is the problem?!
Re: Doors bouncing on decorations.
Posted: Fri Jan 04, 2008 4:28 pm
by Enjay
There is no problem with the concept test. It's just something I threw together as a result of this thread to try out the kind of puzzles that could be possible. It's more of an example of the kind of thing I, or other people, could be doing with this principle.
My problem (which was not desperately serious) was for a different wad and situation entirely.