Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require "stringutil"
- require "tableutil"
- local ff = fileFilters
- local usaDlcOrMod = ff.package.dlcOrMod("usa")
- addFileFilter("model/vehicle", "/usa", _("American"), ff.combine({ usaDlcOrMod, ff.model.vehicle }))
- addFileFilter("model/tree", "/usa", _("American"), ff.combine({ usaDlcOrMod, ff.model.tree }))
- addFileFilter("model/industry", "/usa", _("American"), function (fileName, data)
- if not ff.model.industry(fileName, data) then return false end
- if usaDlcOrMod(fileName, data) then return true end
- if fileName == "res/models/model/industry/forest_1850.mdl" then return false end
- return true
- end)
- addFileFilter("multipleUnit", "/usa", _("American"), usaDlcOrMod)
- addFileFilter("building", "/usa", _("American"), usaDlcOrMod)
- addFileFilter("street", "/usa", _("American"), function (fileName, data)
- if usaDlcOrMod(fileName, data) then return true end
- if fileName == "res/config/street/country_new_large.lua" then return true end
- if fileName == "res/config/street/country_new_large_upgrade.lua" then return true end
- if fileName == "res/config/street/country_new_medium.lua" then return true end
- if fileName == "res/config/street/country_new_medium_upgrade.lua" then return true end
- if fileName == "res/config/street/country_new_small.lua" then return true end
- if fileName == "res/config/street/country_old_large.lua" then return true end
- if fileName == "res/config/street/country_old_large_upgrade.lua" then return true end
- if fileName == "res/config/street/country_old_medium.lua" then return true end
- if fileName == "res/config/street/country_old_medium_upgrade.lua" then return true end
- if fileName == "res/config/street/country_old_small.lua" then return true end
- return false
- end)
- local terCfg = table.copy(getConfig("terrain", "/default"))
- terCfg.name = _("American")
- terCfg.generator.ridgeTex.fileName = "terrain/usa/ridge.tga"
- terCfg.textures.riverBed[1][1].fileName = "terrain/usa/riverbed_detail.tga"
- terCfg.textures.riverBed[2][1].fileName = "terrain/usa/riverbed_color.tga"
- terCfg.textures.forestFloor.detailTex.fileName = "terrain/usa/grass_wood.tga"
- terCfg.textures.forestFloor.detailNrmlTex.fileName = "terrain/usa/grass_wood_nrml.tga"
- terCfg.textures.farmland[1].colorTex.fileName = "terrain/usa/farmland_brown_color.tga"
- terCfg.textures.farmland[2].colorTex.fileName = "terrain/usa/farmland_green_color.tga"
- terCfg.textures.farmland[3].colorTex.fileName = "terrain/usa/farmland_yellow_color.tga"
- terCfg.shader.noiseTex.fileName = "terrain/usa/noise.tga"
- terCfg.shader.textures[1].detailTex.fileName = "terrain/usa/grass_detail.tga"
- terCfg.shader.textures[1].detailNrmlTex.fileName = "terrain/usa/grass_detail_nrml.tga"
- terCfg.shader.textures[1].colorTex.fileName = "terrain/usa/grass_colors.tga"
- terCfg.shader.textures[2].detailTex.fileName = "terrain/usa/rock_detail.tga"
- terCfg.shader.textures[2].detailNrmlTex.fileName = "terrain/usa/rock_detail_nrml.tga"
- terCfg.shader.textures[2].colorTex.fileName = "terrain/usa/rock_colors.tga"
- setConfig("terrain", "/usa", terCfg)
- local envCfg = table.copy(getConfig("environment", "/default"))
- envCfg.name = _("American")
- envCfg.skyBox.textures[1] = "skybox/usa/0.tga"
- envCfg.skyBox.textures[2] = "skybox/usa/90.tga"
- envCfg.skyBox.textures[3] = "skybox/usa/180.tga"
- envCfg.skyBox.textures[4] = "skybox/usa/270.tga"
- envCfg.skyBox.textures[5] = "skybox/usa/top.tga"
- envCfg.skyBox.textures[6] = "skybox/usa/bottom.tga"
- envCfg.envMap.texture = "usa/c.tga"
- setConfig("environment", "/usa", envCfg)
- setConfig("nameList", "/usa", { name = _("American"), folder = "usa" })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement