forked from mtcontrib/pipeworks
better pipe end textures, made 'cut' ends also display them.
This commit is contained in:
parent
2bdcdc19b5
commit
f574235d1d
27
init.lua
27
init.lua
@ -239,6 +239,33 @@ for zp = 0, 1 do
|
|||||||
jy = yp+ym
|
jy = yp+ym
|
||||||
jz = zp+zm
|
jz = zp+zm
|
||||||
|
|
||||||
|
if (jx+jy+jz) == 1 then
|
||||||
|
if xm == 1 then
|
||||||
|
table.remove(outimgs, 3)
|
||||||
|
table.insert(outimgs, 3, "pipeworks_pipe_end_XXXXX.png")
|
||||||
|
end
|
||||||
|
if xp == 1 then
|
||||||
|
table.remove(outimgs, 4)
|
||||||
|
table.insert(outimgs, 4, "pipeworks_pipe_end_XXXXX.png")
|
||||||
|
end
|
||||||
|
if ym == 1 then
|
||||||
|
table.remove(outimgs, 1)
|
||||||
|
table.insert(outimgs, 1, "pipeworks_pipe_end_XXXXX.png")
|
||||||
|
end
|
||||||
|
if xp == 1 then
|
||||||
|
table.remove(outimgs, 2)
|
||||||
|
table.insert(outimgs, 2, "pipeworks_pipe_end_XXXXX.png")
|
||||||
|
end
|
||||||
|
if zm == 1 then
|
||||||
|
table.remove(outimgs, 5)
|
||||||
|
table.insert(outimgs, 5, "pipeworks_pipe_end_XXXXX.png")
|
||||||
|
end
|
||||||
|
if zp == 1 then
|
||||||
|
table.remove(outimgs, 6)
|
||||||
|
table.insert(outimgs, 6, "pipeworks_pipe_end_XXXXX.png")
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
if (jx==1 and jy==1 and jz~=1) or (jx==1 and jy~=1 and jz==1) or (jx~= 1 and jy==1 and jz==1) then
|
if (jx==1 and jy==1 and jz~=1) or (jx==1 and jy~=1 and jz==1) or (jx~= 1 and jy==1 and jz==1) then
|
||||||
addbox(outboxes, bendsphere)
|
addbox(outboxes, bendsphere)
|
||||||
end
|
end
|
||||||
|
BIN
textures/pipeworks_pipe_end_empty.png
Normal file
BIN
textures/pipeworks_pipe_end_empty.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.1 KiB |
BIN
textures/pipeworks_pipe_end_loaded.png
Normal file
BIN
textures/pipeworks_pipe_end_loaded.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.1 KiB |
Loading…
Reference in New Issue
Block a user