15 lines
330 B
Lua
15 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)
|