Adding thunder sounds to lightning...
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.
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.
Adding thunder sounds to lightning...
I use the Lightning command/parameter/whatever you want to call it in a few of my maps, and it seems awkward to have lightning, but no thunder. So! I've ripped the awesome thunder noises from Doom 64, and I'd really like to know how I set them up to go with the lightning. Does it go in SNDINFO?
- Unknown_Assassin
- Posts: 2468
- Joined: Wed Apr 12, 2006 5:17 pm
- Location: Where dead carcasses lie
- Contact:
Re: Adding thunder sounds to lightning...
Yes.Ceeb wrote:I use the Lightning command/parameter/whatever you want to call it in a few of my maps, and it seems awkward to have lightning, but no thunder. So! I've ripped the awesome thunder noises from Doom 64, and I'd really like to know how I set them up to go with the lightning. Does it go in SNDINFO?
Re: Adding thunder sounds to lightning...
Would you care to elaborate a bit? 

- chopkinsca
- Posts: 1325
- Joined: Thu Dec 11, 2003 5:03 pm
Re: Adding thunder sounds to lightning...
http://zdoom.org/wiki/Script_types
Look for the lightning type of script.
Look for the lightning type of script.
Re: Adding thunder sounds to lightning...
Hmm, I should be able to figure this out. Thanks. 
Now I need to figure out how to make these two sounds random.

Now I need to figure out how to make these two sounds random.
- chopkinsca
- Posts: 1325
- Joined: Thu Dec 11, 2003 5:03 pm
Re: Adding thunder sounds to lightning...
In sndinfo:
$random thunder { thunder1 thunder2 }
$random thunder { thunder1 thunder2 }
Re: Adding thunder sounds to lightning...
You don't need to script the thunder sounds. Merely having a definition for a sound named "world/thunder" will do. Whenever the lightning flashes, world/thunder gets played.
eg here's my own one
eg here's my own one
Code: Select all
$random world/thunder { world/thunder1
world/thunder2
world/thunder3
world/thunder4
world/thunder5 }
world/thunder1 dsthun1
world/thunder2 dsthun2
world/thunder3 dsthun3
world/thunder4 dsthun4
world/thunder5 dsthun5
Re: Adding thunder sounds to lightning...
Hey, thanks again, Enjay. 
