Revert build mode expansion for now

This commit is contained in:
Jonny_Bro (Nikita) 2023-11-08 09:47:51 +05:00 committed by GitHub
parent 3158cffde5
commit 52c7eeea3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,14 +5,6 @@ local inf = math.huge
buildmode_props = {}
local propmatsblacklist = {}
local blocksdir = "models/hunter/plates/"
local blocksdir_s = blocksdir .. "*.mdl"
for _, v in ipairs(file.Find(blocksdir_s, "GAME")) do
table.insert(buildmode_props, blocksdir .. v:lower())
end
local blocksdir = "models/hunter/blocks/"
local blocksdir_s = blocksdir .. "*.mdl"
@ -27,42 +19,6 @@ for _, v in ipairs(file.Find(blocksdir_s, "GAME")) do
table.insert(buildmode_props, blocksdir .. v:lower())
end
local blocksdir = "models/hunter/geometric/"
local blocksdir_s = blocksdir .. "*.mdl"
for _, v in ipairs(file.Find(blocksdir_s, "GAME")) do
table.insert(buildmode_props, blocksdir .. v:lower())
end
local props = {
"models/props_wasteland/",
"models/props_borealis/",
"models/props_building_details/",
"models/props_c17/",
"models/props_canal/",
"models/props_citizen_tech/",
"models/props_docks/",
"models/props_junk/",
"models/props_phx/construct/",
"models/props_phx2/",
"models/phxtended/",
"models/hunter/misc/",
"models/props_pipes/",
"models/props_rooftop/",
"models/props_trainstation/",
"models/props_vents/"
}
for _, v in ipairs(props) do
local blocksdir = v
local blocksdir_s = blocksdir .. "*.mdl"
for _, b in ipairs(file.Find(blocksdir_s, "GAME")) do
local key = table.insert(buildmode_props, blocksdir .. b:lower())
propmatsblacklist[key] = true
end
end
local blocksdir = "models/props_phx/construct/glass/"
local blocksdir_s = blocksdir .. "*.mdl"
@ -71,46 +27,6 @@ for _, v in ipairs(file.Find(blocksdir_s, "GAME")) do
propmatsblacklist[key] = true
end
local blocksdir = "models/props_phx/construct/windows/"
local blocksdir_s = blocksdir .. "*.mdl"
for _, v in ipairs(file.Find(blocksdir_s, "GAME")) do
local key = table.insert(buildmode_props, blocksdir .. v:lower())
propmatsblacklist[key] = true
end
local blocksdir = "models/props/cs_assault/"
local blocksdir_s = blocksdir .. "*.mdl"
for _, v in ipairs(file.Find(blocksdir_s, "GAME")) do
local key = table.insert(buildmode_props, blocksdir .. v:lower())
propmatsblacklist[key] = true
end
local blocksdir = "models/props/cs_militia/"
local blocksdir_s = blocksdir .. "*.mdl"
for _, v in ipairs(file.Find(blocksdir_s, "GAME")) do
local key = table.insert(buildmode_props, blocksdir .. v:lower())
propmatsblacklist[key] = true
end
local blocksdir = "models/props/cs_office/"
local blocksdir_s = blocksdir .. "*.mdl"
for _, v in ipairs(file.Find(blocksdir_s, "GAME")) do
local key = table.insert(buildmode_props, blocksdir .. v:lower())
propmatsblacklist[key] = true
end
local blocksdir = "models/props/de_nuke/"
local blocksdir_s = blocksdir .. "*.mdl"
for _, v in ipairs(file.Find(blocksdir_s, "GAME")) do
local key = table.insert(buildmode_props, blocksdir .. v:lower())
propmatsblacklist[key] = true
end
buildmode_entmodels = {
br_swingpipe = "models/parkoursource/pipe_standard.mdl",
br_ladder = "models/maxofs2d/lamp_projector.mdl",
@ -123,16 +39,14 @@ buildmode_entmodels = {
br_swingbar = "models/hunter/plates/plate2.mdl"
}
--[[
local misc = {"models/hunter/misc/lift2x2.mdl", "models/hunter/misc/stair1x1.mdl", "models/hunter/misc/stair1x1inside.mdl", "models/hunter/misc/stair1x1outside.mdl", "models/props_combine/combine_barricade_short02a.mdl", "models/props_combine/combine_bridge_b.mdl", "models/props_docks/channelmarker_gib02.mdl", "models/props_docks/channelmarker_gib04.mdl", "models/props_docks/channelmarker_gib03.mdl", "models/props_lab/blastdoor001a.mdl", "models/props_lab/blastdoor001c.mdl", "models/props_wasteland/cargo_container01.mdl", "models/props_wasteland/cargo_container01b.mdl", "models/props_wasteland/cargo_container01c.mdl", "models/props_wasteland/horizontalcoolingtank04.mdl", "models/props_wasteland/laundry_washer001a.mdl", "models/props_wasteland/laundry_washer003.mdl", "models/props_junk/TrashDumpster01a.mdl", "models/props_junk/TrashDumpster02.mdl", "models/props_junk/wood_crate001a.mdl", "models/props_junk/wood_crate002a.mdl", "models/props_junk/wood_pallet001a.mdl", "models/props_c17/fence01a.mdl", "models/props_c17/fence01b.mdl", "models/props_c17/fence02a.mdl", "models/props_c17/fence03a.mdl", "models/props_c17/fence04a.mdl", "models/props_wasteland/interior_fence001g.mdl", "models/props_wasteland/interior_fence002d.mdl", "models/props_wasteland/interior_fence002e.mdl", "models/props_building_details/Storefront_Template001a_Bars.mdl", "models/props_wasteland/wood_fence01a.mdl", "models/props_wasteland/wood_fence02a.mdl", "models/props_c17/concrete_barrier001a.mdl", "models/props_wasteland/medbridge_base01.mdl", "models/props_wasteland/medbridge_post01.mdl", "models/props_wasteland/medbridge_strut01.mdl", "models/props_c17/column02a.mdl", "models/props_junk/iBeam01a_cluster01.mdl", "models/props_junk/iBeam01a.mdl", "models/props_canal/canal_cap001.mdl", "models/props_canal/canal_bridge04.mdl", "models/Mechanics/gears2/pinion_80t3.mdl", "models/props_phx/gears/rack36.mdl", "models/props_phx/gears/rack70.mdl", "models/cranes/crane_frame.mdl", "models/cranes/crane_docks.mdl", "models/props_wasteland/cranemagnet01a.mdl"}
for _, v in ipairs(misc) do
for k, v in ipairs(misc) do
local key = table.insert(buildmode_props, v:lower())
propmatsblacklist[key] = true
end
misc = nil
--]]
buildmode_ents = {
br_swingpipe = true,
@ -1701,4 +1615,4 @@ if CLIENT then
hook.Run("BuildModeState", false)
end
end)
end
end