zombiesurvival-evolved/gamemodes/zombiesurvival/gamemode/maps/zm_airport_panic_bobpoblo2.lua
2014-10-01 20:49:54 -04:00

14 lines
330 B
Lua

-- This profile gets rid of exploitable doors and teleporters.
hook.Add("InitPostEntityMap", "Adding", function()
for _, door in pairs(ents.FindByClass("func_door_rotating")) do
door:Fire("open", "", 0)
door:Fire("kill", "", 1)
end
for _, ent in pairs(ents.FindByClass("trigger_teleport")) do
ent:Remove()
end
end)