@name Battle Field Cleaner
@inputs 
@outputs  
@persist O:array C
@trigger all
@model models/props_junk/PopCan01a.mdl
interval(1)
findInSphere(vec(0,0,0),30000)
findIncludeClass("weapon")
findIncludeClass("swep")
findIncludeClass("item")
findExcludeClass("resupply")
findIncludeClass("gmod_tool")
findIncludeClass("gmod_camera")
findExcludeClass("gmod_cameraprop")
O = findToArray()
if (first()) {C = 1}
Obj = O:entity(C)
if (O:count()>0) {Obj:setPos(entity():owner():pos()+vec(0,0,entity():owner():height()/2))}
else {print("Map has no weapons, items, or gmod tools to give you.")}

C+=1
if (C>O:count()) {C=1}
if (entity():owner():id()==0) {selfDestruct()}
