add hog freeze sound
authorkoda
Wed, 29 May 2013 10:43:40 +0200
changeset 9073 6cffcbef02e4
parent 9072 e7bcdf4f492f
child 9074 fb88c9277cd8
add hog freeze sound
hedgewars/GSHandlers.inc
hedgewars/uSound.pas
hedgewars/uTypes.pas
share/hedgewars/Data/Sounds/hog_freeze.ogg
--- a/hedgewars/GSHandlers.inc	Tue May 28 21:30:02 2013 -0400
+++ b/hedgewars/GSHandlers.inc	Wed May 29 10:43:40 2013 +0200
@@ -5284,7 +5284,10 @@
                                 if hogs.ar^[i]^.Hedgehog^.Effects[heFrozen] < 256 then
                                     hogs.ar^[i]^.Hedgehog^.Effects[heFrozen] := hogs.ar^[i]^.Hedgehog^.Effects[heFrozen] + 1
                                 else if hogs.ar^[i]^.Hedgehog^.Effects[heFrozen] = 256 then
+                                    begin
                                     hogs.ar^[i]^.Hedgehog^.Effects[heFrozen]:= 200000-1;//cHedgehogTurnTime + cReadyDelay
+                                    PlaySound(sndHogFreeze);
+                                    end;
                                 end;
                 inc(Pos)
                 end
--- a/hedgewars/uSound.pas	Tue May 28 21:30:02 2013 -0400
+++ b/hedgewars/uSound.pas	Wed May 29 10:43:40 2013 +0200
@@ -250,7 +250,8 @@
             (FileName:                'plane.ogg'; Path: ptSounds),// sndPlane
             (FileName:               'TARDIS.ogg'; Path: ptSounds),// sndTardis
             (FileName:    'frozen_hog_impact.ogg'; Path: ptSounds),// sndFrozenHogImpact
-            (FileName:             'ice_beam.ogg'; Path: ptSounds) // sndIceBeam
+            (FileName:             'ice_beam.ogg'; Path: ptSounds),// sndIceBeam
+            (FileName:           'hog_freeze.ogg'; Path: ptSounds) // sndHogFreeze
             );
 
 
--- a/hedgewars/uTypes.pas	Tue May 28 21:30:02 2013 -0400
+++ b/hedgewars/uTypes.pas	Wed May 29 10:43:40 2013 +0200
@@ -140,7 +140,8 @@
             sndPoisonCough, sndPoisonMoan, sndBirdyLay, sndWhistle, sndBeeWater,
             sndPiano0, sndPiano1, sndPiano2, sndPiano3, sndPiano4, sndPiano5, sndPiano6, sndPiano7, sndPiano8,
             sndSkip, sndSineGun, sndOoff1, sndOoff2, sndOoff3, sndWhack,
-            sndComeonthen, sndParachute, sndBump, sndResurrector, sndPlane, sndTardis, sndFrozenHogImpact, sndIceBeam);
+            sndComeonthen, sndParachute, sndBump, sndResurrector, sndPlane, sndTardis, sndFrozenHogImpact, sndIceBeam, sndHogFreeze
+            );
 
     // Available ammo types to be used by hedgehogs
     TAmmoType  = (amNothing, amGrenade, amClusterBomb, amBazooka, amBee, amShotgun, amPickHammer, // 6
Binary file share/hedgewars/Data/Sounds/hog_freeze.ogg has changed