# HG changeset patch # User unc0rr # Date 1184508146 0 # Node ID 7bf2b554de0c0af614395c080320ac3fa0f75c2f # Parent 6083fffc9e2fa181480de4821a982d97691e3927 UFO Sound diff -r 6083fffc9e2f -r 7bf2b554de0c hedgewars/GSHandlers.inc --- a/hedgewars/GSHandlers.inc Sun Jul 15 13:35:32 2007 +0000 +++ b/hedgewars/GSHandlers.inc Sun Jul 15 14:02:26 2007 +0000 @@ -266,6 +266,7 @@ dec(Gear^.Timer); if ((Gear^.State and gstCollision) <> 0) or (Gear^.Timer = 0) then begin + StopSound(sndUFO); doMakeExplosion(hwRound(Gear^.X), hwRound(Gear^.Y), 50, EXPLAutoSound); DeleteGear(Gear); end; @@ -287,6 +288,7 @@ dec(Gear^.Timer); if Gear^.Timer = 0 then begin + PlaySound(sndUFO, true); Gear^.Timer:= 5000; Gear^.doStep:= @doStepUFOWork end; diff -r 6083fffc9e2f -r 7bf2b554de0c hedgewars/uConsts.pas --- a/hedgewars/uConsts.pas Sun Jul 15 13:35:32 2007 +0000 +++ b/hedgewars/uConsts.pas Sun Jul 15 14:02:26 2007 +0000 @@ -54,7 +54,7 @@ TSound = (sndGrenadeImpact, sndExplosion, sndThrowPowerUp, sndThrowRelease, sndSplash, sndShotgunReload, sndShotgunFire, sndGraveImpact, - sndMineTick, sndPickhammer, sndGun); + sndMineTick, sndPickhammer, sndGun, sndUFO); TAmmoType = (amGrenade, amClusterBomb, amBazooka, amUFO, amShotgun, amPickHammer, amSkip, amRope, amMine, amDEagle, amDynamite, amFirePunch, @@ -346,7 +346,8 @@ (FileName: 'graveimpact.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndGraveImpact (FileName: 'minetick.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndMineTicks (FileName: 'pickhammer.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndPickhammer - (FileName: 'gun.ogg'; Path: ptSounds; id: nil; lastChan: 0) // sndGun + (FileName: 'gun.ogg'; Path: ptSounds; id: nil; lastChan: 0),// sndGun + (FileName: 'ufo.ogg'; Path: ptSounds; id: nil; lastChan: 0) // sndUFO ); Ammoz: array [TAmmoType] of record diff -r 6083fffc9e2f -r 7bf2b554de0c share/hedgewars/Data/Sounds/CMakeLists.txt --- a/share/hedgewars/Data/Sounds/CMakeLists.txt Sun Jul 15 13:35:32 2007 +0000 +++ b/share/hedgewars/Data/Sounds/CMakeLists.txt Sun Jul 15 14:02:26 2007 +0000 @@ -10,4 +10,5 @@ splash.ogg throwpowerup.ogg throwrelease.ogg + ufo.ogg DESTINATION ${SHAREPATH}Data/Sounds) \ No newline at end of file diff -r 6083fffc9e2f -r 7bf2b554de0c share/hedgewars/Data/Sounds/ufo.ogg Binary file share/hedgewars/Data/Sounds/ufo.ogg has changed