Merge pull request 'Add new mob hit sounds' (#1621) from jordan4ibanez/MineClone2:mineclone5 into mineclone5

Reviewed-on: MineClone2/MineClone2#1621
This commit is contained in:
jordan4ibanez 2021-04-23 20:23:09 +00:00
commit 43fdc08030
6 changed files with 14 additions and 7 deletions

View File

@ -184,20 +184,23 @@ mobs.mob_punch = function(self, hitter, tflp, tool_capabilities, dir)
if damage >= 0.1 then
-- weapon sounds
--this doesn't work right for nodes
--[[
if weapon:get_definition().sounds ~= nil then
local s = math_random(0, #weapon:get_definition().sounds)
local s = math_random(1, #weapon:get_definition().sounds)
minetest_sound_play(weapon:get_definition().sounds[s], {
object = self.object, --hitter,
max_hear_distance = 8
max_hear_distance = 16
}, true)
else
minetest_sound_play("default_punch", {
object = self.object,
max_hear_distance = 5
}, true)
end
]]--
minetest_sound_play("default_punch", {
object = self.object,
max_hear_distance = 16
}, true)
--end
--damage_effect(self, damage)

View File

@ -0,0 +1,4 @@
default_punch.1 = https://freesound.org/people/Merrick079/sounds/566436/
default_punch.2 = https://freesound.org/people/Merrick079/sounds/566435/
default_punch.3 = https://freesound.org/people/Merrick079/sounds/566434/

Binary file not shown.

Binary file not shown.

Binary file not shown.