mirror of
https://github.com/metrostroi-repo/MetrostroiAddon.git
synced 2026-05-02 00:42:29 +00:00
Additional fix #333
This commit is contained in:
@@ -174,7 +174,7 @@ function Metrostroi.AddSkin(category,name,tbl)
|
|||||||
if not texture or not texture.defaults then return end
|
if not texture or not texture.defaults then return end
|
||||||
for k,v in pairs(texture.defaults) do
|
for k,v in pairs(texture.defaults) do
|
||||||
local id = VGUI[k].ID
|
local id = VGUI[k].ID
|
||||||
print(List:GetOptionData(List:GetSelectedID()),id,VGUI[id],v)
|
-- print(List:GetOptionData(List:GetSelectedID()),id,VGUI[id],v)
|
||||||
if id and VGUI[id] then
|
if id and VGUI[id] then
|
||||||
VGUI[id](v,true)
|
VGUI[id](v,true)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -284,7 +284,7 @@ local function EditCSEnts()
|
|||||||
set = set..Format("\tbodygroup = %d,\n",bodygroup)
|
set = set..Format("\tbodygroup = %d,\n",bodygroup)
|
||||||
end
|
end
|
||||||
set = set.."}\n"
|
set = set.."}\n"
|
||||||
print(set)
|
-- print(set)
|
||||||
end,"Print settings","Print LUA part to clipboard and print it")
|
end,"Print settings","Print LUA part to clipboard and print it")
|
||||||
PrSet:Dock(RIGHT)
|
PrSet:Dock(RIGHT)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -920,7 +920,7 @@ function Metrostroi.Load(name,keep_signs)
|
|||||||
-- Create paths definition
|
-- Create paths definition
|
||||||
Metrostroi.Paths = {}
|
Metrostroi.Paths = {}
|
||||||
if true then return end
|
if true then return end
|
||||||
print(type(TrackLoadedData))
|
-- print(type(TrackLoadedData))
|
||||||
for pathID,path in pairs(TrackLoadedData) do
|
for pathID,path in pairs(TrackLoadedData) do
|
||||||
local currentPath = { id = pathID }
|
local currentPath = { id = pathID }
|
||||||
Metrostroi.Paths[pathID] = currentPath
|
Metrostroi.Paths[pathID] = currentPath
|
||||||
@@ -1114,7 +1114,7 @@ function Metrostroi.Load(name,keep_signs)
|
|||||||
if auto then
|
if auto then
|
||||||
for k,v in pairs(auto) do
|
for k,v in pairs(auto) do
|
||||||
local ent = ents.Create("gmod_track_autodrive_plate")
|
local ent = ents.Create("gmod_track_autodrive_plate")
|
||||||
print(k,v,ent)
|
-- print(k,v,ent)
|
||||||
if IsValid(ent) then
|
if IsValid(ent) then
|
||||||
ent:SetPos(v.Pos)
|
ent:SetPos(v.Pos)
|
||||||
ent:SetAngles(v.Angles)
|
ent:SetAngles(v.Angles)
|
||||||
|
|||||||
@@ -79,10 +79,10 @@ if Turbostroi and not TURBOSTROI then
|
|||||||
if IsValid(Player(index)) then
|
if IsValid(Player(index)) then
|
||||||
if value==0 then
|
if value==0 then
|
||||||
Player(index):PrintMessage( HUD_PRINTCONSOLE, "--START" )
|
Player(index):PrintMessage( HUD_PRINTCONSOLE, "--START" )
|
||||||
print("--START")
|
-- print("--START")
|
||||||
end
|
end
|
||||||
Player(index):PrintMessage( HUD_PRINTCONSOLE, system )
|
Player(index):PrintMessage( HUD_PRINTCONSOLE, system )
|
||||||
print(system)
|
-- print(system)
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
@@ -155,7 +155,7 @@ if Turbostroi and not TURBOSTROI then
|
|||||||
if not IsValid(ply) or not ply:IsSuperAdmin() then return end
|
if not IsValid(ply) or not ply:IsSuperAdmin() then return end
|
||||||
local train = ply:GetTrain()
|
local train = ply:GetTrain()
|
||||||
if IsValid(train) then
|
if IsValid(train) then
|
||||||
print(cmd:sub(1,2),cmd:sub(3,4))
|
-- print(cmd:sub(1,2),cmd:sub(3,4))
|
||||||
SendMessage(train,6,cmd:sub(1,255),cmd:sub(256,511),ply:UserID(),0)
|
SendMessage(train,6,cmd:sub(1,255),cmd:sub(256,511),ply:UserID(),0)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ else
|
|||||||
|
|
||||||
self.Reloaded = true
|
self.Reloaded = true
|
||||||
local rn = Format("%03d",self.RouteNumber)
|
local rn = Format("%03d",self.RouteNumber)
|
||||||
print(self.RouteNumber)
|
-- print(self.RouteNumber)
|
||||||
for i=1,2 do
|
for i=1,2 do
|
||||||
if IsValid(scents["route"..i]) then
|
if IsValid(scents["route"..i]) then
|
||||||
scents["route"..i]:SetSkin(rn[i])
|
scents["route"..i]:SetSkin(rn[i])
|
||||||
|
|||||||
Reference in New Issue
Block a user