defaultsoundpack = [
   soundreset
   registersound "uphys/jump"           60
   registersound "uphys/land"          180
   registersound "uphys/splashin"      160
   registersound "uphys/splashout"     100
   registersound "soundsnap/burn"      210
   registersound // itemspawn
   registersound "q009/teleport"       255
   registersound "uphys/jumppad"       100
   registersound "uphys/punch_swing"   190
   registersound "uphys/pulse_third"   255
   registersound "uphys/pulse_first"   255
   registersound "uphys/pulse_burst"   255
   registersound "dacker/rail_third"   255
   registersound "dacker/rail_first"   255
   registersound "uphys/weapon_switch"  50
   registersound // noammo
   registersound "free/hit"            100
   registersound // pain1
   registersound // pain2
   registersound "uphys/die1"          150
   registersound "uphys/die2"          150
   registersound "ctf/flagpickup"      100
   registersound "ctf/flagdrop"        100
   registersound "ctf/flagreturn"      100
   registersound "ctf/flagscore"       100
   registersound "ctf/flagreturn"      100
   registersound "ctf/flagfail"        100
]
 
loadsoundpack = [
   if $soundpack [
      if (! (exec [media/sound/game/@soundpack/soundpack.cfg] 0)) [
         error [Failed to load soundpack: @soundpack. Using default sounds.]
         defaultsoundpack
      ]
   ] [
      defaultsoundpack
   ]
]

defsvarp soundpack "" [loadsoundpack]

defaultsoundpack

