Add separate sound symbols for case impact and extra damage
authorWuzzy <Wuzzy2@mail.ru>
Fri, 26 Oct 2018 17:38:14 +0200
changeset 13988 c28a4f76d37d
parent 13987 2d1df39c8642
child 13989 a8ffc92a0982
Add separate sound symbols for case impact and extra damage
hedgewars/uGearsHedgehog.pas
hedgewars/uGearsList.pas
hedgewars/uSound.pas
hedgewars/uTypes.pas
--- a/hedgewars/uGearsHedgehog.pas	Fri Oct 26 16:33:41 2018 +0200
+++ b/hedgewars/uGearsHedgehog.pas	Fri Oct 26 17:38:14 2018 +0200
@@ -465,7 +465,7 @@
                                  cLowGravity := true
                                  end;
                   amExtraDamage: begin
-                                 PlaySound(sndHellishImpact4);
+                                 PlaySound(sndExtraDamage);
                                  cDamageModifier:= _1_5
                                  end;
                  amInvulnerable: begin
--- a/hedgewars/uGearsList.pas	Fri Oct 26 16:33:41 2018 +0200
+++ b/hedgewars/uGearsList.pas	Fri Oct 26 17:38:14 2018 +0200
@@ -478,7 +478,7 @@
                 gear^.Sticky:= true;
                 end;
         gtCase: begin
-                gear^.ImpactSound:= sndGraveImpact;
+                gear^.ImpactSound:= sndCaseImpact;
                 gear^.nImpactSounds:= 1;
                 gear^.Radius:= 16;
                 gear^.Elasticity:= _0_3;
--- a/hedgewars/uSound.pas	Fri Oct 26 16:33:41 2018 +0200
+++ b/hedgewars/uSound.pas	Fri Oct 26 17:38:14 2018 +0200
@@ -163,6 +163,7 @@
             (FileName:          'graveimpact.ogg'; Path: ptSounds; AltPath: ptNone),// sndGraveImpact
             (FileName:           'mineimpact.ogg'; Path: ptSounds; AltPath: ptNone),// sndMineImpact
             (FileName:             'minetick.ogg'; Path: ptSounds; AltPath: ptNone),// sndMineTicks
+            // TODO: New mudball sound?
             (FileName:             'Droplet1.ogg'; Path: ptSounds; AltPath: ptNone),// sndMudballImpact
             (FileName:           'pickhammer.ogg'; Path: ptSounds; AltPath: ptNone),// sndPickhammer
             (FileName:                  'gun.ogg'; Path: ptSounds; AltPath: ptNone),// sndGun
@@ -300,7 +301,10 @@
             (FileName:              'minigun.ogg'; Path: ptSounds; AltPath: ptNone),// sndMinigun
             (FileName:         'flamethrower.ogg'; Path: ptSounds; AltPath: ptNone),// sndFlamethrower
             (FileName:        'ice_beam_idle.ogg'; Path: ptSounds; AltPath: ptNone),// sndIceBeamIdle
-            (FileName:              'landgun.ogg'; Path: ptSounds; AltPath: ptNone) // sndLandGun
+            (FileName:              'landgun.ogg'; Path: ptSounds; AltPath: ptNone),// sndLandGun
+            (FileName:          'graveimpact.ogg'; Path: ptSounds; AltPath: ptNone),// sndCaseImpact
+            // TODO: New Extra Damage sound
+            (FileName:             'hell_ugh.ogg'; Path: ptSounds; AltPath: ptNone) // sndExtraDamage
             );
 
 
--- a/hedgewars/uTypes.pas	Fri Oct 26 16:33:41 2018 +0200
+++ b/hedgewars/uTypes.pas	Fri Oct 26 17:38:14 2018 +0200
@@ -152,7 +152,7 @@
             sndPortalOpen, sndBlowTorch, sndCountdown1, sndCountdown2, sndCountdown3, sndCountdown4,
             sndCreeperDrop, sndCreeperWater, sndCreeperDie, sndCustom1, sndCustom2, sndCustom3, sndCustom4,
             sndCustom5, sndCustom6, sndCustom7, sndCustom8, sndMinigun, sndFlamethrower, sndIceBeamIdle,
-            sndLandGun);
+            sndLandGun, sndCaseImpact, sndExtraDamage);
 
     // Available ammo types to be used by hedgehogs
     TAmmoType  = (amNothing, amGrenade, amClusterBomb, amBazooka, amBee, amShotgun, amPickHammer, // 6