Adding thunder sounds to lightning...

Archive of the old editing forum
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.
Locked
User avatar
Ceeb
Posts: 5125
Joined: Wed Jun 11, 2008 4:07 pm
Location: Castle Wut

Adding thunder sounds to lightning...

Post by Ceeb »

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?
User avatar
Unknown_Assassin
Posts: 2468
Joined: Wed Apr 12, 2006 5:17 pm
Location: Where dead carcasses lie
Contact:

Re: Adding thunder sounds to lightning...

Post by Unknown_Assassin »

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?
Yes.
User avatar
Ceeb
Posts: 5125
Joined: Wed Jun 11, 2008 4:07 pm
Location: Castle Wut

Re: Adding thunder sounds to lightning...

Post by Ceeb »

Would you care to elaborate a bit? :?
User avatar
chopkinsca
Posts: 1325
Joined: Thu Dec 11, 2003 5:03 pm

Re: Adding thunder sounds to lightning...

Post by chopkinsca »

http://zdoom.org/wiki/Script_types
Look for the lightning type of script.
User avatar
Ceeb
Posts: 5125
Joined: Wed Jun 11, 2008 4:07 pm
Location: Castle Wut

Re: Adding thunder sounds to lightning...

Post by Ceeb »

Hmm, I should be able to figure this out. Thanks. :)

Now I need to figure out how to make these two sounds random.
User avatar
chopkinsca
Posts: 1325
Joined: Thu Dec 11, 2003 5:03 pm

Re: Adding thunder sounds to lightning...

Post by chopkinsca »

In sndinfo:

$random thunder { thunder1 thunder2 }
User avatar
Enjay
 
 
Posts: 27148
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Adding thunder sounds to lightning...

Post by Enjay »

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

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
User avatar
Ceeb
Posts: 5125
Joined: Wed Jun 11, 2008 4:07 pm
Location: Castle Wut

Re: Adding thunder sounds to lightning...

Post by Ceeb »

Hey, thanks again, Enjay. :)
Locked

Return to “Editing (Archive)”