Add lzr_globals.LASER_GLOW
parent
1ebb746066
commit
50c9f8d3ec
|
@ -13,3 +13,4 @@ lzr_globals.WATER_LEVEL = 0
|
||||||
lzr_globals.SEABED_LEVEL = -1000
|
lzr_globals.SEABED_LEVEL = -1000
|
||||||
lzr_globals.SEASTONE_LEVEL = -1002
|
lzr_globals.SEASTONE_LEVEL = -1002
|
||||||
lzr_globals.GRAVITY = tonumber(minetest.settings:get("movement_gravity")) or 9.81
|
lzr_globals.GRAVITY = tonumber(minetest.settings:get("movement_gravity")) or 9.81
|
||||||
|
lzr_globals.LASER_GLOW = 3
|
||||||
|
|
|
@ -340,7 +340,7 @@ register_element("mirror", {
|
||||||
mesh_off = "lzr_laser_mirror.obj",
|
mesh_off = "lzr_laser_mirror.obj",
|
||||||
mesh_on = "lzr_laser_mirror_on.obj",
|
mesh_on = "lzr_laser_mirror_on.obj",
|
||||||
|
|
||||||
light_source_on = 3,
|
light_source_on = lzr_globals.LASER_GLOW,
|
||||||
|
|
||||||
groups = { rotatable = 1, laser_block = 1 },
|
groups = { rotatable = 1, laser_block = 1 },
|
||||||
sounds = lzr_sounds.node_sound_glass_defaults({
|
sounds = lzr_sounds.node_sound_glass_defaults({
|
||||||
|
@ -354,8 +354,6 @@ local tm_def = {
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
use_texture_alpha = "blend",
|
use_texture_alpha = "blend",
|
||||||
drawtype = "mesh",
|
drawtype = "mesh",
|
||||||
|
|
||||||
light_source_on = 3,
|
|
||||||
groups = { rotatable = 1, laser_block = 1 },
|
groups = { rotatable = 1, laser_block = 1 },
|
||||||
sounds = lzr_sounds.node_sound_glass_defaults({
|
sounds = lzr_sounds.node_sound_glass_defaults({
|
||||||
_rotate = {name = "lzr_laser_mirror_rotate", gain = 1.0},
|
_rotate = {name = "lzr_laser_mirror_rotate", gain = 1.0},
|
||||||
|
@ -384,7 +382,7 @@ tm_def_off.mesh_off = "lzr_laser_mirror.obj"
|
||||||
|
|
||||||
-- Transmissive Mirror
|
-- Transmissive Mirror
|
||||||
local tm_def_on_01 = table.copy(tm_def)
|
local tm_def_on_01 = table.copy(tm_def)
|
||||||
tm_def_on_01.light_source = 3
|
tm_def_on_01.light_source = lzr_globals.LASER_GLOW
|
||||||
tm_def_on_01._lzr_transmissive_mirror_state = "01"
|
tm_def_on_01._lzr_transmissive_mirror_state = "01"
|
||||||
tm_def_on_01.description = S("Transmissive Mirror (active, 01)")
|
tm_def_on_01.description = S("Transmissive Mirror (active, 01)")
|
||||||
tm_def_on_01.tiles_off = {
|
tm_def_on_01.tiles_off = {
|
||||||
|
@ -434,7 +432,7 @@ register_element("crystal", {
|
||||||
tiles_on = {
|
tiles_on = {
|
||||||
"lzr_laser_crystal_on.png^lzr_laser_fixed.png",
|
"lzr_laser_crystal_on.png^lzr_laser_fixed.png",
|
||||||
},
|
},
|
||||||
light_source_on = 3,
|
light_source_on = lzr_globals.LASER_GLOW,
|
||||||
groups = { laser_block = 1 },
|
groups = { laser_block = 1 },
|
||||||
sounds = lzr_sounds.node_sound_glass_defaults({
|
sounds = lzr_sounds.node_sound_glass_defaults({
|
||||||
_rotate = {name = "lzr_laser_mirror_rotate", gain = 1.0},
|
_rotate = {name = "lzr_laser_mirror_rotate", gain = 1.0},
|
||||||
|
|
|
@ -96,7 +96,7 @@ for i=1, 7 do
|
||||||
minetest.register_node("lzr_laser:laser_"..dirstring, {
|
minetest.register_node("lzr_laser:laser_"..dirstring, {
|
||||||
description = S("Laser (@1)", dirstring),
|
description = S("Laser (@1)", dirstring),
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
light_source = 3,
|
light_source = lzr_globals.LASER_GLOW,
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
|
|
Loading…
Reference in New Issue