mirror of
https://github.com/metrostroi-repo/MetrostroiAddon.git
synced 2026-05-02 00:42:29 +00:00
Fix bugs #91,#79,#38,#72 (#216)
* Update metrostroi.lua Исправил ошибку #91 * Фикс #79 * #38 * #72 Пока-что временное решение * Update metrostroi.lua * Перенёс SquealType на сам номер в TrainSpawnerUpdate * Update cl_init.lua
This commit is contained in:
@@ -132,6 +132,16 @@ function Metrostroi.AddSkin(category,name,tbl)
|
||||
Table.name = nil
|
||||
tbl = Table
|
||||
end
|
||||
if CLIENT and tbl.textures then
|
||||
local find
|
||||
for k,v in pairs(tbl.textures) do
|
||||
if not file.Exists("materials/"..v..".vtf","GAME") then
|
||||
find = true
|
||||
ErrorNoHalt(Format("Metrostroi: %s texture: %s, not found. Check folder and addons!\n",category,v))
|
||||
end
|
||||
end
|
||||
if find then return end
|
||||
end
|
||||
if not Metrostroi.Skins[category] then
|
||||
print(Format("Metrostroi: Added a %s skin category",category))
|
||||
Metrostroi.Skins[category] = {}
|
||||
|
||||
Reference in New Issue
Block a user