1
0
mirror of https://github.com/metrostroi-repo/MetrostroiAddon.git synced 2026-05-02 00:42:29 +00:00
* optimizations
* syntax fix
* models info moved to shared file
* moved positions to shared file
* fixed arrow bug, swaped L and R routenumbers
* fixed bug when lamp didnt respawn on spawner left click
* removed local vectors, angles, colors; tickrate set to 30
* fixed switches debug
This commit is contained in:
TheFUlDeep
2021-03-25 20:16:12 +03:00
committed by GitHub
parent 68f963efae
commit cbb6bc0267
4 changed files with 229 additions and 172 deletions

View File

@@ -178,7 +178,7 @@ function MSignalSayHook(ply, comm, fromULX)
end
hook.Add("PlayerSay","metrostroi-signal-say", function(ply, comm) MSignalSayHook(ply,comm) end)
function ENT:Initialize()
self:SetModel("models/metrostroi/signals/mus/ars_box.mdl")
self:SetModel(self.TrafficLightModels[self.SignalType or 0].ArsBox.model)
self.Sprites = {}
self.Sig = ""
self.FreeBS = 1
@@ -303,9 +303,9 @@ function ENT:PostInitalize()
self.GoodInvationSignal = -1
end
if self.Left then
self:SetModel("models/metrostroi/signals/mus/ars_box_mittor.mdl")
self:SetModel(self.TrafficLightModels[self.SignalType or 0].ArsBoxMittor.model)
else
self:SetModel("models/metrostroi/signals/mus/ars_box.mdl")
self:SetModel(self.TrafficLightModels[self.SignalType or 0].ArsBox.model)
end
self.PostInitalized = false