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

19 lines
2.1 KiB
Lua
Raw Permalink Normal View History

2014-10-02 08:49:54 +08:00
hook.Add("InitPostEntityMap", "Adding", function()
local SRL={Vector(-254.19750976563,-685.88067626953,-22.953275680542),Vector(-108.41053771973,-690.50183105469,-23.968748092651),Vector(-438.01739501953,-704.39770507813,-23.968748092651),Vector(-437.08544921875,-582.66363525391,-23.968748092651),Vector(-435.97445678711,-437.54248046875,-23.968748092651),Vector(-433.01181030273,-50.553520202637,-23.968748092651),Vector(-431.85144042969,101.01706695557,-23.968748092651),Vector(-430.04916381836,336.43515014648,-23.968748092651),Vector(-429.06161499023,465.43173217773,-23.968748092651),Vector(-427.67904663086,646.02691650391,-23.968748092651),Vector(-200.09281921387,646.37353515625,-23.968748092651),Vector(180.42523193359,651.29577636719,-23.968748092651),Vector(439.93426513672,638.70758056641,-23.968748092651),Vector(436.01934814453,429.54156494141,-23.968748092651),Vector(27.078559875488,-795.63104248047,-23.96875),Vector(54.141960144043,-779.68212890625,296.03125),Vector(48.307918548584,-693.26184082031,296.03125),Vector(387.14245605469,539.59765625,-23.968751907349),Vector(394.55435180664,431.81665039063,-23.968751907349),Vector(468.0383605957,431.17691040039,-23.968751907349),Vector(486.22283935547,471.17419433594,-23.968751907349),Vector(485.62991333008,516.32147216797,-23.968751907349),Vector(516.96435546875,615.88751220703,-23.968751907349),Vector(365.65390014648,650.21929931641,-23.968751907349),Vector(379.04675292969,488.705078125,-23.968751907349),Vector(456.77871704102,496.63772583008,-23.968751907349),Vector(31.537395477295,-787.37066650391,-23.968751907349),Vector(40.981872558594,-705.79577636719,-23.968751907349),Vector(67.53955078125,-656.24426269531,-23.968751907349),Vector(-304.89349365234,-708.57000732422,-23.968751907349),Vector(-177.1509552002,-733.75140380859,-23.968751907349),Vector(-135.64286804199,-668.65576171875,-23.968751907349)}
-- Removes secret teleport to skybox.
for _, ent in pairs(ents.FindByClass("trigger_teleport")) do
ent:Remove()
end
local alt
for i, ent in ipairs(ents.FindByClass("info_player_terrorist")) do
alt = not alt
if alt then
ent:SetPos(SRL[i])
end
end
end)