diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..9f65be2 --- /dev/null +++ b/readme.md @@ -0,0 +1,5 @@ + +# Attributions + + +* sounds/spacecannon_shoot.ogg https://freesound.org/people/jonccox/sounds/175261/ \ No newline at end of file diff --git a/sounds/spacecannon_shoot.ogg b/sounds/spacecannon_shoot.ogg new file mode 100644 index 0000000..4be17ea Binary files /dev/null and b/sounds/spacecannon_shoot.ogg differ diff --git a/util.lua b/util.lua index 5e550da..e96db22 100644 --- a/util.lua +++ b/util.lua @@ -7,7 +7,6 @@ end spacecannon.fire = function(pos, color, speed, range) - if has_warzone_mod then -- check warzone height local min_y = warzone.y_start @@ -32,6 +31,11 @@ spacecannon.fire = function(pos, color, speed, range) meta:set_int("powerstorage", 0) end + minetest.sound_play("spacecannon_shoot", { + pos = pos, + gain = 1.0, + max_hear_distance = 16 + }) local node = minetest.get_node(pos) local dir = spacecannon.facedir_to_down_dir(node.param2)