hedgewars/uSound.pas
changeset 14019 f09276eb0c27
parent 14016 3c40754f6cfe
child 14020 544b32038664
--- a/hedgewars/uSound.pas	Sat Oct 27 15:21:10 2018 +0200
+++ b/hedgewars/uSound.pas	Sat Oct 27 15:55:19 2018 +0200
@@ -306,7 +306,14 @@
             // TODO: New Extra Damage sound
             (FileName:             'hell_ugh.ogg'; Path: ptSounds; AltPath: ptNone),// sndExtraDamage
             (FileName:        'firepunch_hit.ogg'; Path: ptSounds; AltPath: ptNone),// sndFirePunchHit
-            (FileName:              'Grenade.ogg'; Path: ptVoices; AltPath: ptNone) // sndGrenade
+            (FileName:              'Grenade.ogg'; Path: ptVoices; AltPath: ptNone),// sndGrenade
+            (FileName:        'Thisoneismine.ogg'; Path: ptVoices; AltPath: ptNone),// sndThisOneIsMine
+            (FileName:              'Whatthe.ogg'; Path: ptVoices; AltPath: ptNone),// sndWhatThe
+            (FileName:               'Solong.ogg'; Path: ptVoices; AltPath: ptNone),// sndSoLong
+            (FileName:               'Ohdear.ogg'; Path: ptVoices; AltPath: ptNone),// sndOhDear
+            (FileName:          'Gonnagetyou.ogg'; Path: ptVoices; AltPath: ptNone),// sndGonnaGetYou
+            (FileName:                 'Drat.ogg'; Path: ptVoices; AltPath: ptNone),// sndDrat
+            (FileName:               'Bugger.ogg'; Path: ptVoices; AltPath: ptNone) // sndBugger
             );
 
 
@@ -512,11 +519,23 @@
                     snd := sndOw1
                 else if (snd in [sndOoff2, sndOoff3]) then
                     snd := sndOoff1
+                // Other fallback sounds
                 else if (snd = sndGrenade) then
                     if random(2) = 0 then
                         snd := sndNooo
                     else
-                        snd := sndUhOh;
+                        snd := sndUhOh
+                else if (snd in [sndDrat, sndBugger]) then
+                    snd := sndStupid
+                else if (snd = sndGonnaGetYou) then
+                    snd := sndRegret
+                else if (snd in [sndOhDear, sndSoLong]) then
+                    snd := sndByeBye
+                else if (snd = sndWhatThe) then
+                    snd := sndNooo
+                else if (snd = sndThisOneIsMine) then
+                    snd := sndReinforce;
+
                 s:= cPathz[Soundz[snd].Path] + '/' + voicepack^.name + '/' + Soundz[snd].FileName;
                 end;
             WriteToConsole(msgLoading + s + ' ');