sndinfo help

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
chaoscentral
Posts: 677
Joined: Sun Feb 27, 2005 4:32 pm
Location: Revere, MA
Contact:

sndinfo help

Post by chaoscentral »

ok, here is my problem. How do you make a sound play a random sound out of a group. I have read the wiki and still I'm not sure about the format. Can someone give me a simple example, that is NOT in the wiki. Thanks in advance
User avatar
Enjay
 
 
Posts: 27184
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Post by Enjay »

A simple example. This makes the sound entry "armour/sight" use one of two sounds randomly.

Code: Select all

$random armour/sight		{ armour/sight1  armour/sight2 }
armour/sight1			dsarm1
armour/sight2			dsarm2
Same principle, just a lot more sounds to choose from

Code: Select all

$random work/sight 		{ work/sight1  work/sight2  work/sight3  work/sight4  work/sight5  work/sight6 work/sight7  work/sight8  work/sight9  work/sighta work/sightb  work/sightc  work/sightd  work/sighte work/sightf  work/sightg  work/sighth  work/sighti work/sightj  work/sightk }
work/sight1  			DSWOSIT1  
work/sight2  			DSWOSIT2 
work/sight3  			DSWOSIT3 
work/sight4  			DSWOSIT4 
work/sight5  			DSWOSIT5 
work/sight6  			DSWOSIT6 
work/sight7  			DSWOSIT7  
work/sight8  			DSWOSIT8 
work/sight9  			DSWOSIT9 
work/sighta  			DSWOSITA 
work/sightb  			DSWOSITB
work/sightc  			DSWOSITC 
work/sightd  			DSWOSITD  
work/sighte  			DSWOSITE 
work/sightf  			DSWOSITF 
work/sightg  			DSWOSITG 
work/sighth  			DSWOSITH 
work/sighti  			DSWOSITI 
work/sightj  			DSWOSITJ 
work/sightk  			DSWOSITK 
User avatar
chaoscentral
Posts: 677
Joined: Sun Feb 27, 2005 4:32 pm
Location: Revere, MA
Contact:

Post by chaoscentral »

thanx lol. glad to see some people will help. thanx
User avatar
DoomRater
Posts: 8270
Joined: Wed Jul 28, 2004 8:21 am
Preferred Pronouns: He/Him
Location: WATR HQ
Contact:

Post by DoomRater »

Much of what I learned about syntax in lump entries I learned from other mods like MassMouth 2, t7d.wad, Helm's Deep, etc.
Locked

Return to “Editing (Archive)”