@name Prop Breaker
@model models/hunter/plates/plate.mdl
@outputs [EE Me]:entity Max List:array
runOnTick(1)
 entity():setColor(hsv2rgb((curtime()*10)%360,1,1))
if(first()){
    EE=entity()
    
    entity():setMaterial("debug/debugdrawflat")
    
  # EE:setText("This E2 Breaks Things")
#EE:setTextColor(hsv2rgb((curtime()*10)%360,1,1))

    Me=owner()
    EE:setMass(50000)
}
findInSphere(owner():pos(), 300)
findIncludeModel("models/props_c17/oildrum001_explosive.mdl")
findIncludeModel("models/props_phx/oildrum001_explosive.mdl")
findIncludeModel("models/props_junk/garbage_coffeemug001a.mdl")
findIncludeModel("models/props_c17/FurnitureDrawer002a.mdl")
findIncludeModel("models/props_junk/garbage_plasticbottle003a.mdl")
findIncludeModel("models/props_phx/construct/wood/wood_angle360.mdl")
findIncludeModel("models/props_phx/construct/glass/glass_plate4x4.mdl")
findIncludeModel("models/props/cs_militia/wndw01.mdl")
findIncludeModel("models/Items/item_item_crate.mdl")
findIncludeModel("models/props_phx/torpedo.mdl")
findIncludeModel("models\props/cs_office/Bookshelf1.mdl")
findIncludeModel("models/props_phx/construct/wood/wood_wire1x2.mdl")
findIncludeModel("models/props_phx/construct/wood/wood_wire2x2.mdl")
findIncludeModel("models/props_junk/terracotta01.mdl")
findIncludeModel("models/props_c17/FurnitureShelf001b.mdl")
findIncludeModel("models/props_c17/FurnitureTable001a.mdl")
findIncludeModel("models/props_c17/FurnitureTable002a.mdl")
findIncludeModel("models/props_phx/mk-82.mdl")
findIncludeModel("models/props_interiors/Furniture_Couch02a.mdl")
findIncludeModel("models/props_interiors/Furniture_Couch01a.mdl")
findIncludeModel("models/props_interiors/Furniture_Vanity01a.mdl")
findIncludeModel("models/props_junk/cardboard_box001b.mdl")
findIncludeModel("models/props_junk/cardboard_box002a_gib01.mdl")
findIncludeModel("models/props_junk/cardboard_box002b.mdl")
findIncludeModel("models/props_junk/cardboard_box003a.mdl")
findIncludeModel("models/props_wasteland/wood_fence02a.mdl")
findIncludeModel("models/props_c17/FurnitureDrawer001a.mdl")
findIncludeModel("models/props_c17/FurnitureDrawer001a_Chunk01.mdl")
findIncludeModel("models/props_c17/FurnitureDrawer001a_Chunk02.mdl")
findIncludeModel("models/props_c17/FurnitureDrawer001a_Chunk03.mdl")
findIncludeModel("models/props_c17/FurnitureDrawer001a_Chunk04.mdl")
findIncludeModel("models/props_c17/FurnitureDrawer001a_Chunk05.mdl")
findIncludeModel("models/props_c17/FurnitureDrawer001a_Chunk06.mdl")
findIncludeModel("models/props_phx/ball.mdl")
findIncludeModel("models/props_phx/ww2bomb.mdl")
findIncludeModel("models/props_phx/misc/flakshell_big.mdl")
findIncludeModel("models/props_c17/oildrum001_explosive.mdl")
findIncludeModel("models/props_combine/breenbust.mdl")
findIncludeModel("models/props_c17/bench01a.mdl")
findIncludeModel("models/props_c17/FurnitureCupboard001a.mdl")
findIncludeModel("models/props_c17/shelfunit01a.mdl")
findIncludeModel("models/props_junk/wood_crate001a.mdl")
findIncludeModel("models/props_junk/wood_crate002a.mdl")
findIncludeModel("models/props_junk/wood_pallet001a.mdl")
findIncludeModel("models/props_wasteland/wood_fence01a.mdl")
findIncludeModel("models/props_wasteland/cafeteria_bench001a.mdl")
findIncludeModel("models/props_wasteland/cafeteria_table001a.mdl")
findIncludeModel("models/props_junk/propane_tank001a.mdl")
findIncludeModel("models/props_junk/gascan001a.mdl")
findIncludeModel("models/props_interiors/Furniture_shelf01a.mdl")
findIncludeModel("models/props_interiors/Furniture_Desk01a.mdl")
findIncludeModel("models/props_c17/FurnitureShelf001b.mdl")
findIncludeModel("models/props_c17/FurnitureChair001a.mdl")
findIncludeModel("models/props_phx/construct/wood/wood_boardx1.mdl")
findIncludeModel("models/props_phx/construct/wood/wood_boardx2.mdl")
findIncludeModel("models/props_phx/construct/wood/wood_boardx4.mdl")
findIncludeModel("models/props_phx/construct/wood/wood_panel1x1.mdl")
findIncludeModel("models/props_phx/construct/wood/wood_panel1x2.mdl")
findIncludeModel("models/props_phx/construct/wood/wood_panel2x2.mdl")
findIncludeModel("models/props_phx/construct/wood/wood_panel2x4.mdl")
findIncludeModel("models/props_phx/construct/wood/wood_panel4x4.mdl")
findIncludeModel("models/props_phx/construct/glass/glass_angle180.mdl")
findIncludeModel("models/props_phx/construct/glass/glass_angle360.mdl")
findIncludeModel("models/props_phx/construct/glass/glass_plate1x1.mdl")
findIncludeModel("models/props_phx/construct/glass/glass_plate1x2.mdl")
findIncludeModel("models/props_phx/construct/glass/glass_plate2x4.mdl")
findIncludeModel("models/props_phx/construct/glass/glass_dome360.mdl")
findIncludeModel("models/props_phx/wheels/wooden_wheel1.mdl")
findIncludeModel("models/props_phx/wheels/breakable_tire.mdl")
findIncludeModel("models/props_phx/misc/egg.mdl")
findIncludeModel("models/effects/combineball.mdl")
findIncludeModel("models/Items/item_item_crate.mdl")
findIncludeModel("models/props_phx/amraam.mdl")
findIncludeModel("models/props_c17/FurnitureShelf001a.mdl")
findIncludeModel("models/props_junk/wood_crate001a_damaged.mdl")
findIncludeModel("models/props_trainstation/bench_indoor001a.mdl")
findIncludeModel("models/props_c17/FurnitureDresser001a.mdl")
findIncludeModel("models/props_c17/FurnitureCupboard001a.mdl")
findIncludeModel("models/props_phx/construct/wood/wood_angle180.mdl")
findIncludeModel("models/props_phx/construct/wood/wood_dome180.mdl")
findIncludeModel("models/props_phx/construct/wood/wood_curve90x2.mdl")
findIncludeModel("models/props_phx/construct/wood/wood_curve90x1.mdl")
findIncludeModel("models/props_c17/FurnitureDrawer003a.mdl")
findDisallowClass("gmod_thruster")
findByClass("prop_physics")
findSortByDistance(owner():pos())
if(Max!=findToArray():count()){
    List=findToArray()
    Max=List:count()
}
if(Max==0){
    EE:applyForce(((Me:shootPos()+vec(0,0,85)-EE:pos())*40-EE:vel())*EE:mass())
}else{
   EE:applyForce(((List[1,entity]:massCenter()+vec(0,0,sin(curtime()*500000)*50)-EE:pos())*90-EE:vel())*EE:mass())
}


