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:
The green linedef in the middle is tied to an ACS script that handles all the opening/closing/animating behavior. Then, with these linedefs:
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);
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:
[img]https://i.imgur.com/WahKIpX.png[/img]
The green linedef in the middle is tied to an ACS script that handles all the opening/closing/animating behavior. Then, with these linedefs:
[img]https://i.imgur.com/uEBdr6x.png[/img]
Give them whatever tag you want, then do a [code]Line_SetBlocking(<YOUR TAG>, 0, BLOCKF_SOUND);[/code] 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]Line_SetBlocking(<YOUR TAG>, BLOCKF_SOUND, 0);[/code]