From 8fe52d3bc5ca77bef22fbb366050c0e4ba2de1e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20Gia=20Phong?= Date: Mon, 27 Nov 2023 04:50:21 +0900 Subject: Add zombie munching sound --- src/Person.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Person.cpp') diff --git a/src/Person.cpp b/src/Person.cpp index aa99852..fc47b81 100644 --- a/src/Person.cpp +++ b/src/Person.cpp @@ -218,7 +218,7 @@ void Person::DoAnimations(int who) auto soundsrc = (rotate(head_joint.position, 0, playerrotation, 0) + playercoords - camera.position) / soundscalefactor; - playSound(gSourceID[bodyhitsound], + playSound(gSourceID[munchsound], soundsrc.x, soundsrc.y, soundsrc.z); bleeding = 1; bleeddelay = 1; @@ -561,7 +561,7 @@ void Person::DoAnimationslite(int who) auto soundsrc = (rotate(head_joint.position, 0, playerrotation, 0) + playercoords - camera.position) / soundscalefactor; - playSound(gSourceID[bodyhitsound], + playSound(gSourceID[munchsound], soundsrc.x, soundsrc.y, soundsrc.z); bleeding = 1; bleeddelay = 1; -- cgit v1.2.3