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

42 lines
1.2 KiB
Lua
Raw Normal View History

2014-10-02 08:49:54 +08:00
hook.Add("InitPostEntityMap", "Adding", function()
local ent2 = ents.Create("prop_dynamic_override")
if ent2:IsValid() then
ent2:SetPos(Vector(-579, 220, 83))
ent2:SetAngles(Angle(0, 0, 0))
ent2:SetKeyValue("solid", "6")
ent2:SetModel(Model("models/props_c17/oildrum001.mdl"))
ent2:Spawn()
end
local ent2 = ents.Create("prop_dynamic_override")
if ent2:IsValid() then
ent2:SetPos(Vector(-557, 216, 91))
ent2:SetAngles(Angle(20.5, 180, -180))
ent2:SetKeyValue("solid", "6")
ent2:SetModel(Model("models/props_junk/CinderBlock01a.mdl"))
ent2:Spawn()
end
local ent2 = ents.Create("prop_dynamic_override")
if ent2:IsValid() then
ent2:SetPos(Vector(-582, 230, 133))
ent2:SetAngles(Angle(90, 24.5, 0))
ent2:SetKeyValue("solid", "6")
ent2:SetModel(Model("models/props_junk/CinderBlock01a.mdl"))
ent2:Spawn()
end
local ent2 = ents.Create("prop_dynamic_override")
if ent2:IsValid() then
ent2:SetPos(Vector(-587, 234, 144))
ent2:SetAngles(Angle(0, 90, 90))
ent2:SetKeyValue("solid", "6")
ent2:SetModel(Model("models/props_junk/CinderBlock01a.mdl"))
ent2:Spawn()
end
for _, ent in pairs(ents.FindByName("lift")) do
ent:SetKeyValue("blockdamage", 0)
end
end)