[an error occurred while processing this directive]
Playing sounds via ACS Script? - http://www.doomworld.com Forums


Original message

Tormentor667



tormentor667@gmx.de
72512683
195.93.1.142

"Playing sounds via ACS Script?" , posted Sat 30 Dec 09:17user profileedit/delete messagepost reply


How do I play a sound like DSCYBDTH with the ACS Script? What command do I have to use and what other things do I have to do?

--------------
In deathmatch I WILL Perforate your Entrails

www.newdoom.com/orbitint

 


Replies:

X-DOOM



x-doom@caramail.com
43100823
64.230.225.207

"Re(1):Playing sounds via ACS Script?" , posted Sat 30 Dec 12:19user profileedit/delete messagepost reply


Tormentor667 :

You can play them with this simple line.

AmbientSound ("DSCYBDTH", 127);
thingsound (TAG, "DSCYBDTH", 127);
sectorsound("DSCYBDTH",127);
** NOTE : 127 is the level sound (0 to 255).

But you must add the sound name "DSCYBDTH" to the Sndinfo.lmp if you want to play it from the game.
Like this one :

DSCYBDTH DSCYBDTH
$AMBIENT 1 sndamb_1 point continuous 1.0

It very easy to add and play them !
Take a look on some ZDoom wads in CDROM.com and just check how they are. !

I know it's not the best tutorial but i can't explain it better for now.

:)

Are you the choosen one who beat me in deathmatch? I think not! X-DOOM never lost in Deathmatch (1 time in not official tournament) !!! Prepare you to die!
I talk French but also English i'm a bad english speakers so sorry!
My name is Jean-François Thibault
For Doom stuff check my web page at http://members.nbci.com/mega64
http://www.doom-expert.com/x-doom

 

 

Enjay

Enjay001@hotmail.com
212.139.32.146

"Re(2):Playing sounds via ACS Script?" , posted Sat 30 Dec 14:26user profileedit/delete messagepost reply


Most of the time you will not need to add anything to SNDINFO, because all the original sounds are defined in the SNDINFO lump included in zdoom.wad. Simply extract the SNDINFO lump and open it in a text editor, find the sound lump name you want and look at how Randy has defined it, then use that sound definition in your script.

For the example given - DSCYBDTH you will find the line in SNDINFO in ZDOOM.WAD:

cyber/death dscybdth

so what you need to have in your script is:

AmbientSound ("cyber/death", 127);

Meek