1
0
mirror of https://github.com/minetest/minetest_game.git synced 2025-06-29 13:20:25 +02:00

Add new TNT sounds

This commit is contained in:
TumeniNodes
2019-08-27 22:06:23 -04:00
committed by Paramat
parent 7269711911
commit 553b0f9d72
6 changed files with 56 additions and 5 deletions

View File

@ -396,7 +396,7 @@ function tnt.boom(pos, def)
minetest.set_node(pos, {name = "tnt:boom"})
end
local sound = def.sound or "tnt_explode"
minetest.sound_play(sound, {pos = pos, gain = 1.5,
minetest.sound_play(sound, {pos = pos, gain = 2.5,
max_hear_distance = math.min(def.radius * 20, 128)})
local drops, radius = tnt_explode(pos, def.radius, def.ignore_protection,
def.ignore_on_blast, owner, def.explode_center)