All pastes #754607 Raw Edit

Untitled

public text v1 · immutable
#754607 ·published 2007-10-30 03:08 UTC
rendered paste body
MapPropList = {}
function GM:GetMapProps()
	local Props = {}
	local MapProps = {}
	for k,v in pairs( ents.FindByClass("prop_*")) do
		if v:IsValid() and v != nil then
			table.insert(Props,v)
			//MapProps[k].Ent = v
			//MapProps[k].Pos = v:GetPos() + Vector(0,0,5)
			//MapProps[k].Ang = v:GetAngles()
			//Msg(tostring(v:GetPos())..tostring(v:GetAngles()))
		end
	end
	for k,v in pairs(Props) do
		MapProps[k].Ent = Props[k]
		MapProps[k].Pos = v:GetPos() + Vector(0,0,5)
		MapProps[k].Ang = v:GetAngles()
		Msg(tostring(v:GetPos())..tostring(v:GetAngles()))
	end
	return MapProps
end