Doors bouncing on decorations.

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
Enjay
 
 
Posts: 26936
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Doors bouncing on decorations.

Post 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?
User avatar
HotWax
Posts: 10002
Joined: Fri Jul 18, 2003 6:18 pm
Location: Idaho Falls, ID

Re: Doors bouncing on decorations.

Post 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...
User avatar
Enjay
 
 
Posts: 26936
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Doors bouncing on decorations.

Post 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.
User avatar
HotWax
Posts: 10002
Joined: Fri Jul 18, 2003 6:18 pm
Location: Idaho Falls, ID

Re: Doors bouncing on decorations.

Post 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.
User avatar
Project Shadowcat
Posts: 9369
Joined: Thu Jul 14, 2005 8:33 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: Blacksburg, SC USA
Contact:

Re: Doors bouncing on decorations.

Post by Project Shadowcat »

It certainly opens upa couple of ideas, however! ;) *YOINK!*
User avatar
Enjay
 
 
Posts: 26936
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Doors bouncing on decorations.

Post 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
User avatar
MG_Man
Posts: 1401
Joined: Sat Jul 28, 2007 1:24 pm
Contact:

Re: Doors bouncing on decorations.

Post by MG_Man »

How do you move the barrels?
User avatar
Enjay
 
 
Posts: 26936
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Doors bouncing on decorations.

Post by Enjay »

Just walk into them and keep walking.
User avatar
Tormentor667
Posts: 13554
Joined: Wed Jul 16, 2003 3:52 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia (Modern GZDoom)
Location: Germany
Contact:

Re: Doors bouncing on decorations.

Post by Tormentor667 »

Your concept test works, where is the problem?!
User avatar
Enjay
 
 
Posts: 26936
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Doors bouncing on decorations.

Post 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.
Locked

Return to “Editing (Archive)”