From 76b78dca699994caa4d26b0d5646da38a82764ba Mon Sep 17 00:00:00 2001 From: Techwizz Date: Sun, 10 Sep 2023 11:50:37 -0600 Subject: [PATCH] Added a hit sound (ripping fabric) --- objects/Bullet/Bullet.gd | 7 +++++++ sounds/hit.mp3 | Bin 0 -> 11040 bytes sounds/hit.mp3.import | 19 +++++++++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 sounds/hit.mp3 create mode 100644 sounds/hit.mp3.import diff --git a/objects/Bullet/Bullet.gd b/objects/Bullet/Bullet.gd index 8b25e8b..6740491 100644 --- a/objects/Bullet/Bullet.gd +++ b/objects/Bullet/Bullet.gd @@ -6,6 +6,7 @@ signal exploded @export var g = Vector3.DOWN * 5 @onready var bulletAuthority = get_multiplayer_authority() var velocity = Vector3.ZERO +var audio_stream_player = AudioStreamPlayer.new() func _ready(): @@ -51,3 +52,9 @@ func take_damage(damager): Global.playerHealth = Global.playerHealth - damage Global.lastPersonToHitMe = damager Global.spawnCotton = true + play_audio(load("res://sounds/hit.mp3")) + +func play_audio(audio): + audio_stream_player.set_stream(audio) + add_child(audio_stream_player) + audio_stream_player.play() diff --git a/sounds/hit.mp3 b/sounds/hit.mp3 new file mode 100644 index 0000000000000000000000000000000000000000..eb109013698a9532c1eef927467443c883e0fd1a GIT binary patch literal 11040 zcmeHtXH*m4yY3_eNFYFhbP)oCDj>ay8Zbbp(xoUpNN-9P3B5~i0i`2VX;MTK5Rl$P z5D^3^(gX{L)Li(T^S{Uc`EtITFL$l`td%`8?>j5A_w$y$=bcSDOtS<22begz-8sF5 z?)1k102fgJ{VC9AkUazD3|eO}I)l|29M0f#2ErK<&X9kGnlp5s;r$ur&aiTZtuy>S z1L+K>&(hUW(pHfa6&DkOwEU}w(kL_-lK_C`&-#(wn{@wQivL%Sq{E5-;6FG50HCKN zf6oU%97eCT_p1tl9Du(G0Aq6e?1@p6ehxM}`;93rx?^Eggrd>Qt0;zo0Qrs(TCz|C zHy{|pcWsDp0~Fe>zV$Z2u!~+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