changing glasses

This commit is contained in:
Alexsandro Percy 2022-07-26 21:22:31 -03:00
parent 786ea46174
commit 7ee7445af9
8 changed files with 15 additions and 8 deletions

View File

@ -150,6 +150,7 @@ initial_properties = {
pointable=false,
visual = "mesh",
mesh = "automobiles_buggy_rag.b3d",
use_texture_alpha = true,
backface_culling = false,
textures = {"automobiles_black.png", "automobiles_buggy_rag_window.png"},
},
@ -241,6 +242,8 @@ minetest.register_entity("automobiles_buggy:buggy", {
stepheight = 0.7,
visual = "mesh",
mesh = "automobiles_buggy_body.b3d",
use_texture_alpha = true,
backface_culling = false,
textures = {
"automobiles_black.png", --bancos
"automobiles_painting.png", --carroceria

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.0 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.0 KiB

After

Width:  |  Height:  |  Size: 5.5 KiB

View File

@ -241,6 +241,8 @@ minetest.register_entity("automobiles_coupe:coupe", {
stepheight = 0.65,
visual = "mesh",
mesh = "automobiles_coupe_body.b3d",
--use_texture_alpha = true,
--backface_culling = false,
textures = {
"automobiles_black.png", --bancos
"automobiles_painting.png", --carroceria

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.2 KiB

After

Width:  |  Height:  |  Size: 8.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 4.9 KiB

View File

@ -218,9 +218,15 @@ minetest.register_entity("automobiles_roadster:roadster", {
stepheight = 0.6,
visual = "mesh",
mesh = "automobiles_roadster.b3d",
--use_texture_alpha = true,
backface_culling = false,
textures = {
"automobiles_black.png", --bancos
"automobiles_metal2.png", --parabrisa movel
"automobiles_glass.png", --vidro do parabrisa movel
"automobiles_painting.png", --portas
"automobiles_black.png", --portas interno
"automobiles_wood.png", --assoalho
"automobiles_black.png", --bancos
"automobiles_painting.png", --pintura
"automobiles_black.png", --chassis
"automobiles_metal2.png", --carcaça farol
@ -230,11 +236,7 @@ minetest.register_entity("automobiles_roadster:roadster", {
"automobiles_wood.png", --parede de fogo
"automobiles_roadster_fuel.png", --combustivel
"automobiles_metal2.png", --parabrisa fixo
"automobiles_alpha.png", --vidro do parabrisa fixo
"automobiles_painting.png", --portas
"automobiles_black.png", --portas interno
"automobiles_metal2.png", --parabrisa movel
"automobiles_alpha.png", --vidro do parabrisa movel
"automobiles_glass.png", --vidro do parabrisa fixo
"automobiles_black.png", --paralamas
"automobiles_metal2.png", --carenagem do radiador
"automobiles_painting.png", --tanque de combustivel
@ -430,11 +432,11 @@ minetest.register_entity("automobiles_roadster:roadster", {
local accel = vector.add(longit_drag,later_drag)
if self._show_rag == true then
self.object:set_bone_position("parabrisa", {x=0, y=15.8317, z=15.0394}, {x=0, y=0, z=0})
self.object:set_bone_position("windshield", {x=0, y=15.8317, z=15.0394}, {x=0, y=0, z=0})
self.top2:set_properties({is_visible=true})
self.top1:set_properties({is_visible=false})
else
self.object:set_bone_position("parabrisa", {x=0, y=15.8317, z=15.0394}, {x=math.rad(-145), y=0, z=0})
self.object:set_bone_position("windshield", {x=0, y=15.8317, z=15.0394}, {x=math.rad(-145), y=0, z=0})
self.top2:set_properties({is_visible=false})
self.top1:set_properties({is_visible=true})
end