forked from VoxeLibre/VoxeLibre
Merge branch 'burning_objects' into animated_chests
This commit is contained in:
commit
5ce8c229db
|
@ -143,7 +143,7 @@ function mcl_burning.set_on_fire(obj, burn_time, damage, reason)
|
||||||
sound_id = minetest.sound_play("fire_fire", {
|
sound_id = minetest.sound_play("fire_fire", {
|
||||||
object = obj,
|
object = obj,
|
||||||
gain = 0.18,
|
gain = 0.18,
|
||||||
max_hear_distance = 32,
|
max_hear_distance = 16,
|
||||||
loop = true,
|
loop = true,
|
||||||
}) + 1
|
}) + 1
|
||||||
end
|
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 minp, maxp = mcl_burning.get_collisionbox(obj)
|
||||||
local obj_size = obj:get_properties().visual_size
|
local obj_size = obj:get_properties().visual_size
|
||||||
|
|
||||||
local vertical_grow_factor = 1.1
|
local vertical_grow_factor = 1.2
|
||||||
local horizontal_grow_factor = 0.9
|
local horizontal_grow_factor = 1.1
|
||||||
local grow_vector = vector.new(horizontal_grow_factor, vertical_grow_factor, horizontal_grow_factor)
|
local grow_vector = vector.new(horizontal_grow_factor, vertical_grow_factor, horizontal_grow_factor)
|
||||||
|
|
||||||
local size = vector.subtract(maxp, minp)
|
local size = vector.subtract(maxp, minp)
|
||||||
|
|
Loading…
Reference in New Issue