SNDSEQ and swinging doors?

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
enderkevin13
Posts: 1383
Joined: Tue Jul 07, 2015 7:30 am
Location: :noiƚɒɔo⅃

SNDSEQ and swinging doors?

Post by enderkevin13 »

How do I make a swinging door play a sound? I set up the SNDSEQ lump, but it won't work for some reason.

Code: Select all

:SeqSwingDoorOpen
   play SWDOOR01
   stopsound SILENCE
end

:SeqSwingDoorClose
   play SWDOOR02
   stopsound SWDOORCL
end

[SeqSwingDoor
   Door	1
   0	SeqSwingDoorOpen
   1	SeqSwingDoorClose
   2	SeqSwingDoorOpen
   3	SeqSwingDoorClose
]
User avatar
Kappes Buur
 
 
Posts: 4201
Joined: Thu Jul 17, 2003 12:19 am
Graphics Processor: nVidia (Legacy GZDoom)
Location: British Columbia, Canada
Contact:

Re: SNDSEQ and swinging doors?

Post by Kappes Buur »

You have specify the sounds in SNDINFO first.
Then SNDSEQ can use them.

Then enter the sequence (sound number) in the door setup.
User avatar
enderkevin13
Posts: 1383
Joined: Tue Jul 07, 2015 7:30 am
Location: :noiƚɒɔo⅃

Re: SNDSEQ and swinging doors?

Post by enderkevin13 »

Kappes Buur wrote:You have specify the sounds in SNDINFO first.
Then SNDSEQ can use them.

Then enter the sequence (sound number) in the door setup.
Thanks! Follow up question, is there a way to make a mirrored swinging door (Double doors) swing at a 192 degree angle and only at that angle?
User avatar
cocka
Posts: 1520
Joined: Sat Jul 02, 2011 7:21 am
Location: Hungary

Re: SNDSEQ and swinging doors?

Post by cocka »

User avatar
Kappes Buur
 
 
Posts: 4201
Joined: Thu Jul 17, 2003 12:19 am
Graphics Processor: nVidia (Legacy GZDoom)
Location: British Columbia, Canada
Contact:

Re: SNDSEQ and swinging doors?

Post by Kappes Buur »

It appears that the largest angle a poly door can swing through is 180° (byte angle 128).
Try poly door rotate instead.
Locked

Return to “Editing (Archive)”