Change max_hear_distance of fire sound and tweak fire entity size

This commit is contained in:
Elias Fleckenstein 2021-01-03 18:22:33 +01:00
parent 02777b1f65
commit 10d6ca4107

View File

@ -143,7 +143,7 @@ function mcl_burning.set_on_fire(obj, burn_time, damage, reason)
sound_id = minetest.sound_play("fire_fire", {
object = obj,
gain = 0.18,
max_hear_distance = 32,
max_hear_distance = 16,
loop = true,
}) + 1
end
@ -171,8 +171,8 @@ function mcl_burning.set_on_fire(obj, burn_time, damage, reason)
local minp, maxp = mcl_burning.get_collisionbox(obj)
local obj_size = obj:get_properties().visual_size
local vertical_grow_factor = 1.1
local horizontal_grow_factor = 0.9
local vertical_grow_factor = 1.2
local horizontal_grow_factor = 1.1
local grow_vector = vector.new(horizontal_grow_factor, vertical_grow_factor, horizontal_grow_factor)
local size = vector.subtract(maxp, minp)