zombiesurvival-evolved/gamemodes/zombiesurvival/gamemode/maps/zm_mini_petrols_v6.lua

40 lines
1.2 KiB
Lua
Raw Normal View History

2014-10-02 08:49:54 +08:00
-- Blocks off some secrets and long hallways. Removes excess vending machines sitting everywhere.
hook.Add("InitPostEntityMap", "Adding", function()
local ent = ents.Create("prop_dynamic_override")
if ent:IsValid() then
ent:SetPos(Vector(1144.9447, -4209.1284, 39.0313))
ent:SetModel(Model("models/props_lab/blastdoor001c.mdl"))
ent:SetKeyValue("solid", "6")
ent:Spawn()
end
local ent = ents.Create("prop_dynamic_override")
if ent:IsValid() then
ent:SetPos(Vector(2445.5959, -3636.7520, 13.0313))
ent:SetModel(Model("models/props_lab/blastdoor001c.mdl"))
ent:SetKeyValue("solid", "6")
ent:Spawn()
end
local ent = ents.Create("prop_dynamic_override")
if ent:IsValid() then
ent:SetPos(Vector(3250.6699, -4818.5039, 22.0313))
ent:SetAngles(Angle(0, 90, 0))
ent:SetModel(Model("models/props_lab/blastdoor001c.mdl"))
ent:SetKeyValue("solid", "6")
ent:Spawn()
end
local ent = ents.Create("prop_dynamic_override")
if ent:IsValid() then
ent:SetPos(Vector(3310.6541, -2534.7319, 19.0865))
ent:SetAngles(Angle(0, 90, 0))
ent:SetModel(Model("models/props_lab/blastdoor001c.mdl"))
ent:SetKeyValue("solid", "6")
ent:Spawn()
end
for _, ent in pairs(ents.FindByModel("models/props/cs_office/vending_machine.mdl")) do ent:Remove() end
end)