1
0
mirror of https://github.com/metrostroi-repo/MetrostroiAddon.git synced 2026-05-02 00:42:29 +00:00

Announcer.

Добавлена отсутствующая система Announcer на 81-721
Добавлена проверка наличия системы Announcer
This commit is contained in:
kosmik641
2025-12-07 18:00:18 +03:00
parent cee0fa22b1
commit 72c8a00ec8
2 changed files with 5 additions and 1 deletions

View File

@@ -139,6 +139,8 @@ function ENT:InitializeSystems()
self:LoadSystem("Panel","81_721_Panel") self:LoadSystem("Panel","81_721_Panel")
self:LoadSystem("Announcer","81_71_Announcer", "AnnouncementsASNP")
self:LoadSystem("Tickers","81_720_Ticker") self:LoadSystem("Tickers","81_720_Ticker")
self:LoadSystem("PassSchemes","81_720_PassScheme") self:LoadSystem("PassSchemes","81_720_PassScheme")

View File

@@ -148,7 +148,9 @@ else
local train = net.ReadEntity() local train = net.ReadEntity()
if not IsValid(train) or not train.RenderClientEnts then return end if not IsValid(train) or not train.RenderClientEnts then return end
local snd = net.ReadString() local snd = net.ReadString()
if train.Announcer then
train.Announcer.AnnTable = net.ReadString() train.Announcer.AnnTable = net.ReadString()
end
if train.AnnouncerPositions then if train.AnnouncerPositions then
for k, v in ipairs(train.AnnouncerPositions) do for k, v in ipairs(train.AnnouncerPositions) do