# Sound effects are a combination of a .wav file and a playback frequency in Hz.

snd_bat_screech  = PlaySound("screech.wav", 15000)   # Sound made by bats when taking damage
snd_bear_trap    = PlaySound("parry.wav", 4000, 1)   # Stepping on a bear trap (can be heard by all players)
snd_click        = PlaySound("click.wav", 20000)     # Generic sound for various actions. (pick up, drop, etc.)
snd_crossbow     = PlaySound("door.wav", 35000)      # Crossbow fired
snd_daggerfall   = PlaySound("parry.wav", 40000)     # Missile hits wall and falls to floor.
snd_door         = PlaySound("door.wav", 20000)		 # Opening or closing a door, chest or switch
snd_downswing    = PlaySound("ugh.wav", 14000)       # Swoosh of weapon downswing; also dagger throwing.
snd_drink        = PlaySound("drink.wav", 10000)     # Drinking a potion
snd_lock         = PlaySound("parry.wav", 40000)     # "Chink" sound of locked doors / lock picks.
snd_parry        = PlaySound("parry.wav", 10000)     # Parrying
snd_pentagram    = PlaySound("door.wav", 30000)      # Stepping on a pentagram, reading a scroll, or zapping a wand
snd_squelch      = PlaySound("squelch.wav", 15000)   # Knight takes weapon damage, or monster killed by weapon
snd_teleport     = PlaySound("squelch.wav", 4000)    # Teleportation
snd_tile_bash    = PlaySound("click.wav", 2000)      # Tile was hit
snd_tile_clunk   = PlaySound("click.wav", 1000)      # "Heavy" tile was hit
snd_tile_destroy = PlaySound("door.wav", 6000)       # Wooden tile destroyed
snd_ugh          = PlaySound("ugh.wav", 9000)        # Knight takes damage, is poisoned, or suicides
snd_zombie       = Random(PlaySound("ugh.wav",     4000+d2000),        # Sounds made by zombies.
                          PlaySound("zombie2.wav", 8000+d3000),
                          PlaySound("zombie3.wav", 8000+d3000))

snd_dart = [snd_click snd_crossbow]  # used for skull traps.

# Attach some of the sounds to the special event hooks 

# (a) Knight swings weapon. (b) Knight parries a weapon blow.
HOOK_WEAPON_DOWNSWING = snd_downswing
HOOK_WEAPON_PARRY = snd_parry

# (a) Knight takes damage, suicides or is poisoned. 
# (b) Any creature takes damage >0.
HOOK_KNIGHT_DAMAGE = snd_ugh
HOOK_CREATURE_SQUELCH = snd_squelch

# Zombie was hit by weapon or killed; zombie took bear trap damage; 
# zombie attacks; randomly on some zombie moves.
HOOK_ZOMBIE = snd_zombie

# Bat took damage but did not die
HOOK_BAT = snd_bat_screech

# Crossbow bolt was fired.
HOOK_SHOOT = snd_crossbow

# Dagger or crossbow bolt hits a wall (or other obstacle) and drops to floor.
HOOK_MISSILE_MISS = snd_daggerfall
