Added model for golf mk7.5
This commit is contained in:
parent
93674c26e9
commit
22fad8994e
151
koptilnya/data/models/vw_golf_mk7_5.txt
Normal file
151
koptilnya/data/models/vw_golf_mk7_5.txt
Normal file
@ -0,0 +1,151 @@
|
||||
-- @shared
|
||||
-- @name VW Golf Mk 7.5
|
||||
-- @author Koptilnya1337
|
||||
-- @include /koptilnya/mesh_loader/builder.txt
|
||||
require("/koptilnya/mesh_loader/builder.txt")
|
||||
|
||||
DEBUG_MODE = true
|
||||
|
||||
local LINK = "https://drive.google.com/u/0/uc?id=1FNn5_6PMmurvraVqlJNNV3WXTMnozMJM&export=download"
|
||||
local SCALE = Vector(1)
|
||||
|
||||
local Materials = {
|
||||
{
|
||||
Match = "Shadow",
|
||||
Material = "",
|
||||
Color = Color(20,20,20)
|
||||
},
|
||||
{
|
||||
Match = "BumpersVents",
|
||||
Material = "models/debug/debugwhite",
|
||||
Color = Color(20,20,20)
|
||||
},
|
||||
{
|
||||
Match = { "Body", ".*Body*" },
|
||||
Material = "phoenix_storms/fender_white",
|
||||
Color = Color(230,229,231)
|
||||
},
|
||||
{
|
||||
Match = "Badges",
|
||||
Material = "debug/env_cubemap_model",
|
||||
Color = Color(255,255,255)
|
||||
},
|
||||
{
|
||||
Match = ".*Lights_Glass*",
|
||||
Material = "phoenix_storms/mrref2",
|
||||
Color = Color(255,255,255,120)
|
||||
},
|
||||
{
|
||||
Match = { ".*Lights_Base*", "RearLights_Chrome" },
|
||||
Material = "models/debug/debugwhite",
|
||||
Color = Color(20,20,20)
|
||||
},
|
||||
{
|
||||
Match = { "WindowsRubber", "WindshieldOutline" },
|
||||
Material = "phoenix_storms/mrref2",
|
||||
Color = Color(25,25,25)
|
||||
},
|
||||
{
|
||||
Match = ".*Seat.*",
|
||||
Material = "models/debug/debugwhite",
|
||||
Color = Color(60,60,60)
|
||||
},
|
||||
{
|
||||
Match = "Interior_DoorMaps",
|
||||
Material = "models/debug/debugwhite",
|
||||
Color = Color(40,40,40)
|
||||
},
|
||||
{
|
||||
Match = "Interior_Plastic",
|
||||
Material = "models/debug/debugwhite",
|
||||
Color = Color(50,50,50)
|
||||
}
|
||||
}
|
||||
|
||||
local Bodyparts = {
|
||||
"Body",
|
||||
"Bonnet_Body",
|
||||
"DoorHandles",
|
||||
"BumpersVents",
|
||||
"ExhaustPipes",
|
||||
"ExhaustPipes",
|
||||
"FrontBumper_Body",
|
||||
"FrontLeftDoor_Body",
|
||||
"FrontQuaterpanels_Body",
|
||||
"FrontRightDoor_Body",
|
||||
"FrontRightDoor_Body",
|
||||
"Mirrors_Plastic",
|
||||
"RearBumper_Body",
|
||||
"RearLeftDoor_Body",
|
||||
"RearRightDoor_Body",
|
||||
"RearRightDoor_Body",
|
||||
"Shadow",
|
||||
"Sidepanels_Body",
|
||||
"Sideskirts_Body",
|
||||
"Trunk_Body",
|
||||
}
|
||||
|
||||
local Details = {
|
||||
"Badges",
|
||||
}
|
||||
|
||||
local FrontLights = {
|
||||
"FrontLights_Base",
|
||||
-- "FrontLights_Glass",
|
||||
}
|
||||
|
||||
local RearLights = {
|
||||
"RearLights",
|
||||
"RearLights_Base",
|
||||
"RearLights_Chrome",
|
||||
-- "RearLights_Glass",
|
||||
}
|
||||
|
||||
local Windows = {
|
||||
"WindowsRubber",
|
||||
"WindshieldOutline",
|
||||
}
|
||||
|
||||
local Interior = {
|
||||
"FrontLeftSeat",
|
||||
"FrontRightSeat",
|
||||
"RearSeats",
|
||||
-- "Interior_Decals",
|
||||
"Interior_DoorMaps",
|
||||
"Interior_Plastic",
|
||||
"SoundDynamics",
|
||||
"SteeringWheel",
|
||||
"SteeringWheel_Badge",
|
||||
-- "SteeringWheel_Decals",
|
||||
"SteeringWheel_Plastic",
|
||||
}
|
||||
|
||||
local Meshes = {}
|
||||
|
||||
table.add(Meshes, Bodyparts)
|
||||
table.add(Meshes, Details)
|
||||
table.add(Meshes, FrontLights)
|
||||
table.add(Meshes, RearLights)
|
||||
table.add(Meshes, Windows)
|
||||
table.add(Meshes, Interior)
|
||||
|
||||
local builder = {}
|
||||
|
||||
if SERVER then
|
||||
local this = chip()
|
||||
|
||||
builder = MeshBuilder:new(LINK)
|
||||
:useGlobalScale(SCALE)
|
||||
:useGlobalParent(this)
|
||||
:useGlobalRelative(this)
|
||||
|
||||
builder:buildAll(Meshes)
|
||||
builder:getResult()
|
||||
|
||||
else
|
||||
PERMA.onPermissionsGained = function()
|
||||
builder = MeshBuilder:new(LINK)
|
||||
builder:useMaterialPipeline(Materials)
|
||||
end
|
||||
PERMA.build()
|
||||
end
|
||||
Loading…
x
Reference in New Issue
Block a user