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

15 lines
330 B
Lua
Raw Permalink Normal View History

2014-10-02 08:49:54 +08:00
-- 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)