From 3f820eafb6ac3d89fd5d456774256c6406dfc4ff Mon Sep 17 00:00:00 2001 From: GreenBlob <88883098+a-blob@users.noreply.github.com> Date: Sun, 26 Nov 2023 00:38:30 +0800 Subject: [PATCH] Add bullet ricochet (#1247) * Add sound play * Update init.lua * Add sound --- mods/ctf/ctf_combat/ctf_ranged/init.lua | 1 + .../ctf_ranged/sounds/ctf_ranged_ricochet.ogg | Bin 0 -> 7223 bytes 2 files changed, 1 insertion(+) create mode 100644 mods/ctf/ctf_combat/ctf_ranged/sounds/ctf_ranged_ricochet.ogg diff --git a/mods/ctf/ctf_combat/ctf_ranged/init.lua b/mods/ctf/ctf_combat/ctf_ranged/init.lua index 15ebecb7c1..d8d72a4ea5 100644 --- a/mods/ctf/ctf_combat/ctf_ranged/init.lua +++ b/mods/ctf/ctf_combat/ctf_ranged/init.lua @@ -46,6 +46,7 @@ local function process_ray(ray, user, look_dir, def) size = 1, collisiondetection = false, texture = "ctf_ranged_bullethole.png", + minetest.sound_play("ctf_ranged_ricochet", {pos = hitpoint.intersection_point}) }) elseif nodedef.groups.liquid then minetest.add_particlespawner({ diff --git a/mods/ctf/ctf_combat/ctf_ranged/sounds/ctf_ranged_ricochet.ogg b/mods/ctf/ctf_combat/ctf_ranged/sounds/ctf_ranged_ricochet.ogg new file mode 100644 index 0000000000000000000000000000000000000000..cf00ff3214169429f3b6cbfcfd5aa11efc1c7954 GIT binary patch literal 7223 zcmb_gc|4Te+rPD0@<>8Ms+kaDs}W^n9f_H2jeVrDFGFH1NuunsrLoHrLlY7jlF*Y3 z+1IhthJ@0pQhCok>iP9~-uLsq|GejO9Os@C>#k$9xyevI;d%zkC0^z*Fne=>R#(BBIFbd7Y3kLVKBj~XCN zef=EWykLPD-poK(9j@u=8WDBXIYCXEXofd6Q|AIz9b-d7U8CQ1BQtFsGj)!QYwM83 z=~!?;uolJu*&N!FWDY_65Oi7s&3DZikET)cr32Hc`f#mze@r?xrWxT7hhhFMkV=k1 z5VQdbmF7+;n8CYu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