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

Added ConVar DisableSeatShadows

This commit is contained in:
Hellss
2022-07-13 19:25:05 +03:00
parent f28a9760f3
commit 43a741526b
13 changed files with 30 additions and 1 deletions

View File

@@ -1192,7 +1192,9 @@ function ENT:CreateSeatEntity(seat_info)
end
-- Set some shared information about the seat
self:SetNW2Entity("seat_"..seat_info.type,seat)
local seats = self:GetNW2Int("seats",0)+1
self:SetNW2Entity("seat_"..seats, seat)
self:SetNW2Int("seats", seats)
seat:SetNW2String("SeatType", seat_info.type)
seat:SetNW2Entity("TrainEntity", self)
seat_info.entity = seat