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)
Последно редактиран от Pinhead Larry; 15 май 2017 в 19:36
< >
Показване на 1-1 от 1 коментара
< >
Показване на 1-1 от 1 коментара
На страница: 1530 50