hedgewars/uGearsUtils.pas
changeset 14035 f09276eb0c27
parent 14030 d203bb36225f
child 14043 e155b300d49f
--- a/hedgewars/uGearsUtils.pas	Sat Oct 27 15:21:10 2018 +0200
+++ b/hedgewars/uGearsUtils.pas	Sat Oct 27 15:55:19 2018 +0200
@@ -1622,7 +1622,11 @@
     FindPlace(FollowGear, true, 0, LAND_WIDTH);
 
     if (FollowGear <> nil) then
-        AddVoice(sndReinforce, CurrentTeam^.voicepack)
+        if random(3) = 0 then
+            // TODO: Play this when a crate drops close to a hog, not randomly
+            AddVoice(sndThisOneIsMine, CurrentTeam^.voicepack)
+        else
+            AddVoice(sndReinforce, CurrentTeam^.voicepack);
     end
 end;