@ -40,4 +40,16 @@ function Quantum.Server.Zone.GetCurrentZone( vec )
return zone
end
function Quantum.Server.Zone.GetDoors( zoneid )
local zone = Quantum.Server.Zone.Get( zoneid )
local entInZone = {}
for i, ent in pairs( ents.FindInBox( zone.vec1, zone.vec2 ) ) do
if( Quantum.Server.DoorClasses[ ent:GetClass() ]) then
entInZone[i] = ent
return entInZone
@ -9,4 +9,12 @@ Quantum.Server.DefaultNodeHealth = 10
Quantum.Server.DefaultNodeRespawnTimer = 30
Quantum.Server.DefualtPropertyPrice = 5000
Quantum.Server.DoorClasses = {
["func_door"] = true,
["func_door_rotating"] = true,
["prop_door_rotating"] = true,
["func_movelinear"] = true,
["prop_dynamic"] = true
}