Play shotgun for weapon crates. Suggestion by Smaxx. Using "placed" for health/utility - could use a prettier sound for health now that there are health animation
authornemo
Thu, 15 Oct 2009 19:16:50 +0000
changeset 2463 34a484b2ddd6
parent 2462 fa3ddd1ff2a1
child 2464 851b4e47ed2b
Play shotgun for weapon crates. Suggestion by Smaxx. Using "placed" for health/utility - could use a prettier sound for health now that there are health animation
hedgewars/HHHandlers.inc
--- a/hedgewars/HHHandlers.inc	Thu Oct 15 19:14:22 2009 +0000
+++ b/hedgewars/HHHandlers.inc	Thu Oct 15 19:16:50 2009 +0000
@@ -301,6 +301,8 @@
 	i: Integer;
 begin
 Gear^.Message:= gm_Destroy;
+if Gear^.Pos = posCaseAmmo then PlaySound(sndShotgunFire, false, nil)
+else PlaySound(sndPlaced, false, nil);
 case Gear^.Pos of
        posCaseUtility,
        posCaseAmmo: begin