share/hedgewars/Data/Scripts/Animate.lua
changeset 7245 53f73f4ae203
parent 7213 fce7de71742f
child 7255 93cf6b3b89be
--- a/share/hedgewars/Data/Scripts/Animate.lua	Fri Jul 06 15:10:36 2012 +0300
+++ b/share/hedgewars/Data/Scripts/Animate.lua	Sun Jul 08 19:15:38 2012 +0300
@@ -55,7 +55,7 @@
   lasty = 0
   jumpTypes = {long = gmLJump, high = gmHJump, back = gmHJump}
   jumpTimes = {long = 500, high = 500, back = 300, backback = 500} 
-  moveDirs = {right = gmRight, left = gmLeft}
+  moveDirs = {Right = gmRight, Left = gmLeft}
   jumpStarted = false
   backJumped = false
   jTimer = 0
@@ -182,6 +182,7 @@
 	AddVisualGear(GetX(gear)+5, GetY(gear)+5, vgtSmoke, 0, false)
 	AddVisualGear(GetX(gear)-5, GetY(gear)+5, vgtSmoke, 0, false)
 	AddVisualGear(GetX(gear)+5, GetY(gear)-5, vgtSmoke, 0, false)
+  PlaySound(sndExplosion)
 	SetGearPosition(gear, destX, destY)
   return true
 end
@@ -189,6 +190,7 @@
 function AnimOutOfNowhere(gear, destX, destY)
   SetGearPosition(gear, destX, destY)
   AddVisualGear(destX, destY, vgtBigExplosion, 0, false)
+  PlaySound(sndExplosion)
   AnimGearWait(gear, 50)
   return true
 end
@@ -200,6 +202,7 @@
 	AddVisualGear(GetX(gear)+5, GetY(gear)-5, vgtSmoke, 0, false)
 	SetGearPosition(gear, destX, destY)
 	AddVisualGear(GetX(gear), GetY(gear), vgtBigExplosion, 0, false)
+  PlaySound(sndExplosion)
   FollowGear(gear)
   AnimGearWait(gear, 50)
   return true