Garry's Mod

Garry's Mod

ttt_stadium
How to fix errors at the spawn (serverside)
Screenshots of said fix
Before: http://gtm.you1.cn/id/xnaut117/screenshot/816686696696680291
After: http://gtm.you1.cn/id/xnaut117/screenshot/816686696696680868

create a .lua file with any name in garrysmod/lua/autorun/server
heres a pastebin link https://pastebin.com/6Mfm6Far
paste the following function into the file:

hook.Add("TTTPrepareRound", "TTTFixStadiumDoors", function()
local curmap = string.lower( game.GetMap() )
timer.Simple(1, function()
for k,v in pairs(ents.GetAll()) do

local door03replacers = {"prop_door_rotating"}

if table.HasValue(door03replacers, v:GetClass()) && v:GetModel() == "models/props_c17/door03_left.mdl" && curmap == "ttt_stadium" then
local bb = ents.Create("prop_dynamic")
bb:SetPos(v:GetPos())
bb:SetModel("models/props_c17/door01_left.mdl")
bb:Spawn()
bb:SetAngles(Angle(0,90,0))
bb:SetSkin(11)
bb:SetBodygroup(1,1)
v:Remove()
end

end
end)
end)
Last edited by Pinhead Larry; 15 May, 2017 @ 7:36pm
< >
Showing 1-1 of 1 comments
goated 4 Oct, 2024 @ 6:20am 
I aint doing allat
< >
Showing 1-1 of 1 comments
Per page: 1530 50