
/****************************************************************************/
/*																			*/
/* DOOM SOUNDS																*/
/*																			*/
/****************************************************************************/

// BOOM has pitch shifting equivalent to a range of 4. I never got to hear
// Doom when it used pitch shifting, so I don't know if this is correct or not.
$pitchshiftrange 4

// This sound is never actually used. It's just defined here for
// compatibility with DeHackEd patches that reference dsskldth.
misc/unused			dsskldth	// Sounds just like dsoof

//===========================================================================
//
// Doom-specific player sounds
//
//===========================================================================

$playersound	player	male	*death		dspldeth
$playersound	player	male	*xdeath		dspdiehi
$playersound	player	male	*gibbed		dsslop
$playersound	player	male	*pain100	dsplpain
$playersounddup	player	male	*pain75		*pain100
$playersounddup	player	male	*pain50		*pain100
$playersounddup	player	male	*pain25		*pain100
$playersound	player	male	*grunt		dsoof
$playersounddup	player	male	*land		*grunt
$playersound	player	male	*jump		dsjump
$playersound	player	male	*fist		dspunch
$playersound	player	male	*usefail	dsnoway

$playersound	player	female	*death		dsfldeth
$playersound	player	female	*xdeath		dsfdiehi
$playersound	player	female	*gibbed		dsslop
$playersound	player	female	*pain100	dsflpain
$playersounddup	player	female	*pain75		*pain100
$playersounddup	player	female	*pain50		*pain100
$playersounddup	player	female	*pain25		*pain100
$playersound	player	female	*grunt		dsfoof
$playersounddup	player	female	*land		*grunt
$playersound	player	female	*jump		dsfjump
$playersound	player	female	*fist		dspunch
$playersound	player	female	*usefail	dsfnoway

$playersound	player	other	*death		dscldeth
$playersound	player	other	*xdeath		dscdiehi
$playersound	player	other	*gibbed		dsslop
$playersound	player	other	*pain100	dsclpain
$playersounddup	player	other	*pain75		*pain100
$playersounddup	player	other	*pain50		*pain100
$playersounddup	player	other	*pain25		*pain100
$playersound	player	other	*grunt		dscoof
$playersounddup	player	other	*land		*grunt
$playersound	player	other	*jump		dscjump
$playersound	player	other	*fist		dspunch
$playersound	player	other	*usefail	dscnoway

// Alternate names for some player sounds needed for ZDoom <= 1.22 compatibility
//
// If any sounds with these names are defined later, they will redefine
// the corresponding player sounds instead. Likewise, if they are played,
// they will play the corresponding player sound instead.

$playercompat	player	male	*death		player/male/death1
$playercompat	player	male	*death		player/male/death2
$playercompat	player	male	*death		player/male/death3
$playercompat	player	male	*death		player/male/death4
$playercompat	player	male	*xdeath		player/male/xdeath1
$playercompat	player	male	*pain100	player/male/pain100_1
$playercompat	player	male	*pain100	player/male/pain100_2
$playercompat	player	male	*pain75		player/male/pain75_1
$playercompat	player	male	*pain75		player/male/pain75_2
$playercompat	player	male	*pain50		player/male/pain50_1
$playercompat	player	male	*pain50		player/male/pain50_2
$playercompat	player	male	*pain25		player/male/pain25_1
$playercompat	player	male	*pain25		player/male/pain25_2
$playercompat	player	male	*grunt		player/male/grunt1
$playercompat	player	male	*land		player/male/land1
$playercompat	player	male	*jump		player/male/jump1
$playercompat	player	male	*gibbed		player/male/gibbed
$playercompat	player	male	*fist		player/male/fist

$playercompat	player	female	*death		player/female/death1
$playercompat	player	female	*death		player/female/death2
$playercompat	player	female	*death		player/female/death3
$playercompat	player	female	*death		player/female/death4
$playercompat	player	female	*xdeath		player/female/xdeath1
$playercompat	player	female	*pain100	player/female/pain100_1
$playercompat	player	female	*pain100	player/female/pain100_2
$playercompat	player	female	*pain75		player/female/pain75_1
$playercompat	player	female	*pain75		player/female/pain75_2
$playercompat	player	female	*pain50		player/female/pain50_1
$playercompat	player	female	*pain50		player/female/pain50_2
$playercompat	player	female	*pain25		player/female/pain25_1
$playercompat	player	female	*pain25		player/female/pain25_2
$playercompat	player	female	*grunt		player/female/grunt1
$playercompat	player	female	*land		player/female/land1
$playercompat	player	female	*jump		player/female/jump1
$playercompat	player	female	*gibbed		player/female/gibbed
$playercompat	player	female	*fist		player/female/fist

$playercompat	player	other	*death		player/cyborg/death1
$playercompat	player	other	*death		player/cyborg/death2
$playercompat	player	other	*death		player/cyborg/death3
$playercompat	player	other	*death		player/cyborg/death4
$playercompat	player	other	*xdeath		player/cyborg/xdeath1
$playercompat	player	other	*pain100	player/cyborg/pain100_1
$playercompat	player	other	*pain100	player/cyborg/pain100_2
$playercompat	player	other	*pain75		player/cyborg/pain75_1
$playercompat	player	other	*pain75		player/cyborg/pain75_2
$playercompat	player	other	*pain50		player/cyborg/pain50_1
$playercompat	player	other	*pain50		player/cyborg/pain50_2
$playercompat	player	other	*pain25		player/cyborg/pain25_1
$playercompat	player	other	*pain25		player/cyborg/pain25_2
$playercompat	player	other	*grunt		player/cyborg/grunt1
$playercompat	player	other	*land		player/cyborg/land1
$playercompat	player	other	*jump		player/cyborg/jump1
$playercompat	player	other	*gibbed		player/cyborg/gibbed
$playercompat	player	other	*fist		player/cyborg/fist

$rumble	*death		P_DEATH
$rumble	*xdeath		P_DEATH
$rumble	*pain100	P_HURT
$rumble	*pain75		P_HURT
$rumble	*pain50		P_HURT
$rumble	*pain25		P_HURT
$rumble	*grunt		P_GRUNT
$rumble	*land		P_GRUNT
$rumble	*jump		NONE
$rumble	*gibbed		P_DEATH
$rumble	*fist		P_FIST
$rumble	*usefail	P_GRUNT

$rumbledef	P_DEATH		INTENSE
$rumbledef	P_HURT		HEAVY
$rumbledef	P_GRUNT		2	.3	.6	.3	.3
$rumbledef	P_FIST		3	.6	.6	.6	.6

//
// Weapons
//

$pitchshiftrange 3
weapons/sawup			dssawup
weapons/sawidle			dssawidl
weapons/sawfull			dssawful
weapons/sawhit			dssawhit
$pitchshiftrange 4

weapons/pistol			dspistol
weapons/shotgf			dsshotgn
weapons/shotgr			dssgcock
weapons/sshotf			dsdshtgn
weapons/sshoto			dsdbopn
weapons/sshotc			dsdbcls
weapons/sshotl			dsdbload
weapons/chngun			dspistol
weapons/rocklx			dsbarexp
weapons/rocklf			dsrlaunc
weapons/plasmaf			dsplasma
weapons/plasmax			dsfirxpl
weapons/bfgf			dsbfg
weapons/bfgx			dsrxplod
weapons/railgf			railgf1
weapons/grbnce          dsbounce
weapons/grenlx			dsgrnexp
weapons/grenlf			dsglaunc

$rumble	weapons/sawup				LIGHT
$rumble	weapons/sawidle				W_SAW_IDLE
$rumble	weapons/sawfull				W_SAW_FULL
$rumble	weapons/sawhit				W_SAW_FULL
$rumble	weapons/pistol				W_BULLET
$rumble	weapons/shotgf				W_SHELL
$rumble	weapons/shotgr				W_RELOAD	// is this ever used?
$rumble	weapons/sshotf				W_SHELL
$rumble	weapons/sshoto				W_RELOAD
$rumble	weapons/sshotc				W_RELOAD
$rumble	weapons/sshotl				W_RELOAD
$rumble	weapons/chngun				W_BULLET
$rumble	weapons/rocklx				NONE
$rumble	weapons/rocklf				W_ROCKET
$rumble	weapons/plasmaf				W_ENERGY
$rumble	weapons/plasmax				NONE
$rumble	weapons/bfgf				W_BFG
$rumble	weapons/bfgx				NONE

$rumbledef	W_SAW_IDLE	1	0	.6	0	0
$rumbledef	W_SAW_FULL	4	.6	.6	.6	.6
$rumbledef	W_BULLET	3	.6	.6	.6	.6
$rumbledef	W_SHELL		6	.6	.6	.6	.6
$rumbledef	W_RELOAD	1	.3	.6	0	0
$rumbledef	W_ROCKET	6	.6	.6	.6	.6
$rumbledef	W_ENERGY	2	.6	.6	.6	.6
$rumbledef	W_BFG		35	.6	.6	.6	.6

// Problem: weapons/rocklx needs to be unlimited but
// is also used for the MAP30 brain explosion.
// This alias remaps to the original but has its own limit
// attached so that it doesn't become too loud.
$alias misc/brainexplode weapons/rocklx
$limit misc/brainexplode 4

$limit weapons/plasmaf 0
$limit weapons/chngun 0
$limit weapons/rocklf 0		// because normal running is almost as fast as a rocket
$limit weapons/rocklx 0		// and the cyberdemon shoots 3 at once

//===========================================================================
//
// MONSTER SOUNDS
//
//===========================================================================

misc/gibbed			dsslop

// Zombie man

$random grunt/sight 		{ grunt/sight1  grunt/sight2  grunt/sight3 }
$random grunt/death		{ grunt/death1  grunt/death2  grunt/death3 }
grunt/sight1			dsposit1
grunt/sight2			dsposit2
grunt/sight3			dsposit3
grunt/active			dsposact
grunt/pain			dspopain
grunt/death1			dspodth1
grunt/death2			dspodth2
grunt/death3			dspodth3
grunt/attack			dspistol

// Shotgun guy

$random shotguy/sight		{ shotguy/sight1  shotguy/sight2  shotguy/sight3 }
$random shotguy/death		{ shotguy/death1  shotguy/death2  shotguy/death3 }
shotguy/sight1			dsposit1
shotguy/sight2			dsposit2
shotguy/sight3			dsposit3
shotguy/active			dsposact
shotguy/pain			dspopain
shotguy/death1			dspodth1
shotguy/death2			dspodth2
shotguy/death3			dspodth3
shotguy/attack			dsshotgn

// Archvile

vile/sight			dsvilsit
vile/active			dsvilact
vile/pain			dsvipain
vile/death			dsvildth
vile/raise			dsslop
vile/start			dsvilatk
vile/stop			dsbarexp
vile/firestrt			dsflamst
vile/firecrkl			dsflame

// Revenant

skeleton/sight			dsskesit
skeleton/active			dsskeact
skeleton/pain			dspopain
skeleton/melee			dsskepch
skeleton/swing			dsskeswg
skeleton/death			dsskedth
skeleton/attack			dsskeatk
skeleton/tracex			dsbarexp

// Fatso

fatso/sight			dsmansit
fatso/active			dsposact
fatso/pain			dsmnpain
fatso/raiseguns			dsmanatk
fatso/death			dsmandth
fatso/attack			dsfirsht
fatso/shotx			dsfirxpl

// Chainguy

$random chainguy/sight		{ chainguy/sight1  chainguy/sight2  chainguy/sight3 }
$random chainguy/death		{ chainguy/death1  chainguy/death2  chainguy/death3 }
chainguy/sight1			dsposit1
chainguy/sight2			dsposit2
chainguy/sight3			dsposit3
chainguy/active			dsposact
chainguy/pain			dspopain
chainguy/death1			dspodth1
chainguy/death2			dspodth2
chainguy/death3			dspodth3
chainguy/attack			dsshotgn
$limit chainguy/attack 0

// Imp

$random imp/sight		{ imp/sight1  imp/sight2 }
$random imp/death		{ imp/death1  imp/death2 }
imp/sight1			dsbgsit1
imp/sight2			dsbgsit2
imp/active			dsbgact
imp/pain			dspopain
imp/melee			dsclaw
imp/death1			dsbgdth1
imp/death2			dsbgdth2
imp/attack			dsfirsht
imp/shotx			dsfirxpl
$limit imp/active 6

// Demon

demon/sight			dssgtsit
demon/active			dsdmact
demon/pain			dsdmpain
demon/melee			dssgtatk
demon/death			dssgtdth
$limit demon/melee 4

// Spectre

spectre/sight			dssgtsit
spectre/active			dsdmact
spectre/pain			dsdmpain
spectre/melee			dssgtatk
spectre/death			dssgtdth

// Cacodemon

caco/sight			dscacsit
caco/active			dsdmact
caco/pain			dsdmpain
caco/death			dscacdth
caco/attack			dsfirsht
caco/shotx			dsfirxpl

// Baron of Hell

baron/sight			dsbrssit
baron/active			dsdmact
baron/pain			dsdmpain
baron/melee			dsclaw
baron/death			dsbrsdth
baron/attack			dsfirsht
baron/shotx			dsfirxpl

// Hell Knight

knight/sight			dskntsit
knight/active			dsdmact
knight/pain			dsdmpain
knight/death			dskntdth

// Lost Soul

skull/active			dsdmact
skull/pain			dsdmpain
skull/melee			dssklatk
skull/death			dsfirxpl

// Spider Mastermind

spider/sight			dsspisit
spider/active			dsdmact
spider/pain			dsdmpain
spider/attack			dsshotgn
spider/death			dsspidth
spider/walk			dsmetal

$limit spider/sight 4
$limit spider/death 4

// Arachnotron

baby/sight			dsbspsit
baby/active			dsbspact
baby/pain			dsdmpain
baby/death			dsbspdth
baby/walk			dsbspwlk
baby/attack			dsplasma
baby/shotx			dsfirxpl

$limit baby/attack 0

// Cyber Demon

cyber/sight			dscybsit
cyber/active			dsdmact
cyber/pain			dsdmpain
cyber/death			dscybdth
cyber/hoof			dshoof

$limit cyber/sight 4
$limit cyber/death 4
// Pain Elemental

pain/sight			dspesit
pain/active			dsdmact
pain/pain			dspepain
pain/death			dspedth

// Wolfenstein SS

wolfss/sight			dssssit
wolfss/active			dsposact
wolfss/pain			dspopain
wolfss/death			dsssdth
wolfss/attack			dsshotgn

// Commander Keen

keen/pain			dskeenpn
keen/death			dskeendt

// Boss Brain

brain/sight			dsbossit
brain/pain			dsbospn
brain/death			dsbosdth
brain/spit			dsbospit
brain/cube			dsboscub
brain/cubeboom			dsfirxpl
$alias brain/spawn		misc/teleport


//============================================================================
//
// WORLD SOUNDS
//
//===========================================================================

world/barrelx			dsbarexp

world/drip			dsempty
world/watersplash		dsempty
world/sludgegloop		dsempty
world/lavasizzle		dsempty

//
//
// Platform Sounds
//

plats/pt1_strt			dspstart
plats/pt1_stop			dspstop
plats/pt1_mid			dsstnmov

//
// Door Sounds
//

doors/dr1_open			dsdoropn
doors/dr1_clos			dsdorcls
doors/dr2_open			dsbdopn
doors/dr2_clos			dsbdcls

//===========================================================================
//
// MISCELLANEOUS SOUNDS
//
//===========================================================================

misc/secret			dssecret
misc/w_pkup			dswpnup		// Pickup weapon
misc/p_pkup			dsgetpow	// Pickup powerup
misc/i_pkup			dsitemup	// Pickup item
misc/k_pkup			dsitemup	// Pickup key
misc/spawn			dsitmbk		// Item respawn
misc/chat			dsradio		// Doom 2 chat sound
misc/chat2			dstink		// Chat sound for everything else

$limit misc/i_pkup		1
$limit misc/k_pkup		1
$limit misc/w_pkup		1
$limit misc/p_pkup		1
$pitchshift misc/i_pkup		0
$pitchshift misc/k_pkup		0
$pitchshift misc/chat2		0

switches/normbutn		dsswtchn
switches/exitbutn		dsswtchx

misc/teleport			dstelept

$rumble	misc/secret			SECRET
$rumble	misc/w_pkup			LIGHT
$rumble	misc/p_pkup 		LIGHT
$rumble	misc/i_pkup 		LIGHT
$rumble	misc/k_pkup			LIGHT
$rumble	misc/teleport		TELEPORT

$rumbledef	TELEPORT	35	.3	.6	0	0
$rumbledef	SECRET		35	.3	.6	0	0

menu/activate			dsswtchn	// Activate a new menu
menu/backup			dsswtchn	// Backup to previous menu
menu/prompt			dsswtchn	// Activate a prompt "menu"
menu/cursor			dspstop		// Move cursor up/down
menu/change			dsstnmov	// Select new value for option
menu/invalid			dsoof		// Menu not available
menu/dismiss			dsswtchx	// Dismiss a prompt message
menu/choose			dspistol	// Choose a menu item
menu/clear			dsswtchx	// Close top menu
$alias menu/advance menu/choose	// Open a submenu

$random menu/quit1 { player/male/death1 demon/pain grunt/pain misc/gibbed misc/teleport grunt/sight1 grunt/sight3 demon/melee }
$random menu/quit2 { vile/active misc/p_pkup brain/cube misc/gibbed skeleton/swing knight/death baby/active demon/melee  }

$rumble	menu/activate	HEAVY
$rumble	menu/backup		MEDIUM
$rumble	menu/prompt		MEDIUM
$rumble	menu/cursor		LIGHT
$rumble	menu/change		LIGHT
$rumble	menu/invalid	MEDIUM
$rumble	menu/dismiss	MEDIUM
$rumble	menu/choose		HEAVY
$rumble	menu/clear		MEDIUM
$rumble	menu/advance	HEAVY
$rumble	menu/quit1		MEDIUM
$rumble	menu/quit2		MEDIUM

$alias				intermission/tick			weapons/pistol
$alias				intermission/cooptotal		*death
$alias				intermission/nextstage		weapons/rocklx
$alias				intermission/paststats		weapons/shotgr
$alias				intermission/pastcoopstats	weapons/shotgr
$alias				intermission/pastdmstats	*gibbed

$rumble	intermission/tick			LIGHT
$rumble	intermission/cooptotal		LIGHT
$rumble	intermission/nextstage		MEDIUM
$rumble	intermission/paststats		MEDIUM
$rumble	intermission/pastcoopstats	MEDIUM
$rumble	intermission/pastdmstats	MEDIUM

// id24 sounds

world/officelamp		dsbreak

ambient/klaxon			dsklaxon
ambient/portalopen		dsgatopn
ambient/portalloop		dsgatlop
ambient/portalclose		dsgatcls

monsters/ghoul/sight		dsghlsit
monsters/ghoul/pain		dsghlpai
monsters/ghoul/death		dsghldth
monsters/ghoul/active		dsghlact
monsters/ghoul/attack		dsfirsht
monsters/ghoul/shotx		dsfirxpl

monsters/banshee/sight		dsbanact
monsters/banshee/pain		dsbanpai
monsters/banshee/death		dsbandth
monsters/banshee/active		dsbanact

monsters/mindweaver/sight	dscspsit
monsters/mindweaver/pain	dsdmpain
monsters/mindweaver/death	dscspdth
monsters/mindweaver/active	dscspact
monsters/mindweaver/walk	dscspwlk

monsters/plasmaguy/pain		dsppopai
monsters/plasmaguy/death	dsppodth
monsters/plasmaguy/active	dsppoact
monsters/plasmaguy/head		dsppohed

monsters/vassago/sight		dsvassit
monsters/vassago/pain		dsvaspai
monsters/vassago/death		dsvasdth
monsters/vassago/active		dsvasact
monsters/vassago/attack		dsvasatk
monsters/vassago/burn		dsincbrn
monsters/vassago/shotx		dsflame
monsters/vassago/hot1		dsincht1
monsters/vassago/hot2		dsincht2
monsters/vassago/hot3		dsincht3

monsters/tyrant/sight		dstyrsit
monsters/tyrant/pain		dstyrpai
monsters/tyrant/death		dstyrdth
monsters/tyrant/active		dstyract
monsters/tyrant/walk		dstyrwlk

weapons/incinerator/fire1	dsincfi1
weapons/incinerator/fire2	dsincfi2
weapons/incinerator/burn	dsincbrn
weapons/incinerator/hot1	dsincht1
weapons/incinerator/hot2	dsincht2
weapons/incinerator/hot3	dsincht3

weapons/calamityblade/charge	dshetchg
weapons/calamityblade/shoot	dshetsht
weapons/calamityblade/explode	dshetxpl

$rumble	weapons/incinerator/fire1		W_FIRE_FIRE
$rumble	weapons/incinerator/fire2		W_FIRE_FIRE
$rumble	weapons/incinerator/burn		NONE
$rumble	weapons/incinerator/hot1		NONE
$rumble	weapons/incinerator/hot2		NONE
$rumble	weapons/incinerator/hot3		NONE
$rumble	weapons/calamityblade/charge	W_FIRE_CHARGE
$rumble	weapons/calamityblade/shoot		W_FIRE_FIRE
$rumble	weapons/calamityblade/explode	NONE
$rumble	weapons/unmaker					W_ENERGY	// from Doom64CE

$rumbledef	W_FIRE_CHARGE	2	.4	.4	.4	.4
$rumbledef	W_FIRE_FIRE		4	.6	.6	.6	.6
