Baron of Hell
Register | User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > finally! activate/disable amb works!
 
Author
All times are GMT. The time now is 03:22. Post New Thread    Post A Reply
Da Snoop
Newbie


Posts: 9
Registered: 04-01


Finally!
I have trouble with activate/disable feature of the ambient sounds some time ago. I tried it with ACS command sound sequence in a decission. It works! I can now activate the console (or cross a line) when the alarm (or whatever ambient sound) starts and when I press (cross) the line again, it goes silent.

#include "zcommon.acs"

int snd1;

script 1 OPEN
{
snd1=0;
}

//Action line.
sript 2 (void)
{
if (!snd1) {
soundsequence ("DeepAlarm");
snd1=1;
}

else {
soundsequence ("CutEverything");
snd1=0;
}
}

SNDSEQ file:

:DeepAlarm

playrepeat alarm1
end

:CutEverything

stopsound silence
end

SNDINFO file:

alarm1 alarm1
silence silence

I wrote this in case somebody may use it. :) I tried it with ACS command "restart" and necessary ACS_Terminate too, but this is much simple.

Thanx 2 everybody who replied to my "thread". :)

Old Post 10-27-01 18:55 #
Da Snoop is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 03:22. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > finally! activate/disable amb works!

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.