Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  

Playing sounds via ACS Script?

Recommended Posts

Tormentor667 :

You can play them with this simple line.

AmbientSound ("DSCYBDTH", 127);
thingsound (TAG, "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 :

$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.


Share this post

Link to post

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);

Share this post

Link to post
This topic is now closed to further replies.
Sign in to follow this