Skip to content

Commit

Permalink
Add bullet ricochet (#1247)
Browse files Browse the repository at this point in the history
* Add sound play

* Update init.lua

* Add sound
  • Loading branch information
a-blob committed Nov 25, 2023
1 parent c84c52d commit 3f820ea
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mods/ctf/ctf_combat/ctf_ranged/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down
Binary file not shown.

0 comments on commit 3f820ea

Please sign in to comment.