From a63e53fcd5369a03fec1a9f5c8d87e220a4efde8 Mon Sep 17 00:00:00 2001 From: David Dormagen Date: Sat, 14 Nov 2015 15:36:27 +0100 Subject: [PATCH] zap: randomized pitch of sound --- planet/Objects.ocd/Animals.ocd/Zaphive.ocd/Zap.ocd/Script.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/planet/Objects.ocd/Animals.ocd/Zaphive.ocd/Zap.ocd/Script.c b/planet/Objects.ocd/Animals.ocd/Zaphive.ocd/Zap.ocd/Script.c index b369417a2..938c72975 100644 --- a/planet/Objects.ocd/Animals.ocd/Zaphive.ocd/Zap.ocd/Script.c +++ b/planet/Objects.ocd/Animals.ocd/Zaphive.ocd/Zap.ocd/Script.c @@ -99,7 +99,7 @@ private func GetAttraction(proplist coordinates) } // GetAttraction will only be called for the swarm master, perfect to have just one being make sound if(!Random(20)) - Sound("Zap?", nil,nil,nil,nil, 200); + Sound("Zap?", nil,nil,nil,nil, 200, Random(100)); coordinates.x = home->GetX() + Random(20)-10; coordinates.y = home->GetY() + Random(20)-10; @@ -170,7 +170,7 @@ private func CheckTurn() private func AngryBuzz() { - Sound("Zap?"); + Sound("Zap?", nil,nil,nil,nil, nil, -Random(100)); } /*-- Saving --*/