"Paper Thin" Animated Doors?

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: "Paper Thin" Animated Doors?

Re: "Paper Thin" Animated Doors?

by zrrion the insect » Wed Jan 17, 2018 2:47 pm

That might work. I will toy around with it, but it at least sounds like something that could work.

Re: "Paper Thin" Animated Doors?

by Zen3001 » Wed Jan 17, 2018 2:40 pm

check if player is on the line, it should be possible but I couldn't find a way to do this yet, to make it easier you could create a sector arround the door and check if any actor is on it with this

Re: "Paper Thin" Animated Doors?

by zrrion the insect » Fri Jan 12, 2018 7:06 am

I have ended up using a solution utilizing setlineblocking and setlinetexture actually, and the only issue I have with it is that it will "close" on the player and they will be stuck.

Re: "Paper Thin" Animated Doors?

by Ravick » Thu Jan 11, 2018 9:19 pm

I was doing it right even before I kown it was necessary, haha :D

A door usually is not just a line between 2 walls, but a line inside some sector(s) build to make it looks better (just like having a lower ceiling or so). I usually set all those lines or just a few of them to block sound. The only one that changes this parameter was the line-door itself, as SetLineBlocking removes it when player open it, and ten it used to work even I not knowing it was required to have 2 lines for that. :)

Re: "Paper Thin" Animated Doors?

by Arctangent » Thu Jan 11, 2018 8:10 pm

Ravick wrote:I'm not sure if I got what you need, but I make line doors for my mods simple with SetLineBlocking and SetLineTexture. You can block players, monsters, sounds, attacks and quite everything w it.
I doubt you actually can, considering lines can only "half block" sounds so a single line won't stop sound propagation - two are necessary for that.

Re: "Paper Thin" Animated Doors?

by Ravick » Thu Jan 11, 2018 8:06 pm

I'm not sure if I got what you need, but I make line doors for my mods simple with SetLineBlocking and SetLineTexture. You can block players, monsters, sounds, attacks and quite everything w it. You can also make fake rotating doors, just like that bathroom door from "Cold as Hell" 1th map.


Also, messing with middle texture's offsets you can make even fake "doom doors" in doom. :mrgreen:

Re: "Paper Thin" Animated Doors?

by DenisBelmondo » Wed Jan 03, 2018 9:41 am

It seems like the last time I tried something like this, BLOCKF_SOUND wasn't implemented as a flag in Line_SetBlocking... or something. I made some minor adjustments to my previous WAD but I don't think I need to upload it. Basically, set up your linedefs and sectors so it looks something like this:

Image

The green linedef in the middle is tied to an ACS script that handles all the opening/closing/animating behavior. Then, with these linedefs:

Image

Give them whatever tag you want, then do a

Code: Select all

Line_SetBlocking(<YOUR TAG>, 0, BLOCKF_SOUND);
in ACS (you need the latest version of ACC for this particular flag I think but you can just put in 1024 if it complains for whatever reason). Then, you should then block the sound again during the closing behavior, which is as easy as:

Code: Select all

Line_SetBlocking(<YOUR TAG>, BLOCKF_SOUND, 0);

Re: "Paper Thin" Animated Doors?

by zrrion the insect » Mon Jan 01, 2018 9:45 pm

His solution is what I'm working with now, but blocking sound has been an issue with that approach.

Re: "Paper Thin" Animated Doors?

by DenisBelmondo » Mon Jan 01, 2018 7:32 pm

I made a prototype of a Wolfenstein 3D styled door that may or may not be of some use. Here's the source. I haven't actually touched it in a while and it's uncommented but it's basically one linedef controlled through ACS whose texture is composed of a door patch and an empty space to the right of this patch that is equal to the width of it (so if it's a 64x64 patch, the texture entry will be 128x64) so that the texture doesn't wrap when its horizontal offset is being incremented. It's completely functional but sound bleeds through it when closed due to the very unfortunate state of affairs with regards to Doom's rigid sound bleeding system.

I suppose ramon.dexter's solution is probably your best bet. I also wonder if you can implement my method but with an invisible polyobject that "encapsulates" this linedef (a better way to put it would be to say it superimposes itself on it) and when one side of the polyobject is activated, you can script it so the linedef animates (or scrolls woefully at 35 Hz like in my example mod) and the polyobject teleports conveniently out of the way somewhere so that sound blocking and collision doesn't happen. It sounds like a semi-intensive hack but that'll probably solve the sound bleeding problem.

EDIT: wait actually polyobjects can't block sound iirc?

Re: "Paper Thin" Animated Doors?

by ramon.dexter » Thu Dec 28, 2017 3:07 am

The trick is put the texture inte the middle part of texture and use flags for blocking (usually, I use combo of "impassable" + "block everything"). When you put the texture into the middle section, it also allows you to make polyobject doors with only one or two linedefs.

"Paper Thin" Animated Doors?

by zrrion the insect » Thu Dec 28, 2017 2:49 am

I am wanting to make paper thin (single linedef) animated doors but as they require a sector to work the best I have been able to come up with is a very thin sector, but this is not exactly ideal.
Is there a way to make a thin animated door? If not is there a way to approximate the effect of an animated door?

Top