@name Prop Hunt Prop Populator
@inputs 
@outputs Type:string PCount
@persist Props:array Props1:array Spawned:array
@trigger all
Easy=0 #difficulty setting 1 or 0, 0 is harder smaller props, easy has fewer but larger props
Removeit="clear props" #this removes this chip's spawned props

if(first()){
    C=1
    Props=array()
    String="models/props_c17/oildrum001.mdl"
Props[C,string]=String C++
    String="models/props_c17/oildrum001_explosive.mdl"
#Props[C,string]=String C++
#    String="models/Cranes/crane_frame.mdl"
Props[C,string]=String C++
    String="models/props_wasteland/gaspump001a.mdl"
Props[C,string]=String C++
#    String="models/props_c17/canister_propane01a.mdl"
#Props[C,string]=String C++
    String="models/props_c17/concrete_barrier001a.mdl"
Props[C,string]=String C++
    String="models/props_c17/display_cooler01a.mdl"
Props[C,string]=String C++
#    String="models/props_c17/fountain_01.mdl"
#Props[C,string]=String C++
    String="models/props_c17/FurnitureShelf001b.mdl"
Props[C,string]=String C++
    String="models/props_c17/shelfunit01a.mdl"
Props[C,string]=String C++
#    String="models/props_c17/signpole001.mdl"
#Props[C,string]=String C++
#    String="models/props_c17/utilitypole01a.mdl"
#Props[C,string]=String C++
#    String="models/props_c17/utilitypole01b.mdl"
#Props[C,string]=String C++
#    String="models/props_c17/utilitypole01d.mdl"
#Props[C,string]=String C++
#    String="models/props_c17/utilitypole02b.mdl"
#Props[C,string]=String C++
#    String="models/props_c17/utilitypole03a.mdl"
#Props[C,string]=String C++
    String="models/props_canal/bridge_pillar02.mdl"
Props[C,string]=String C++
#    String="models/props_c17/oildrum001.mdl"
#Props[C,string]=String C++
    String="models/props_wasteland/kitchen_fridge001a.mdl"
Props[C,string]=String C++
    String=""
Props[C,string]=String C++
    String="models/props_wasteland/kitchen_stove002a.mdl"
Props[C,string]=String C++
    String="models/props_wasteland/medbridge_post01.mdl"
Props[C,string]=String C++
     String="models/props_trainstation/trainstation_ornament001.mdl"
Props[C,string]=String C++
    String="models/props_lab/kennel_physics.mdl"
Props[C,string]=String C++
if(0){
    String="models/props_lab/securitybank.mdl"
Props[C,string]=String C++
    String="models/props_lab/servers.mdl"
Props[C,string]=String C++
    String=""
Props[C,string]=String C++
    String=""
Props[C,string]=String C++

}

C=1
    Props1=array()
    String="models/props_combine/breenchair.mdl"
Props1[C,string]=String C++
    String="models/props_combine/breendesk.mdl"
Props1[C,string]=String C++
    String="models/props_docks/dock01_cleat01a.mdl"
Props1[C,string]=String C++
    String="models/props_junk/sawblade001a.mdl"
Props1[C,string]=String C++
    String="models/props_junk/TrashDumpster02b.mdl"
Props1[C,string]=String C++
    String="models/props_c17/playground_carousel01.mdl"
Props1[C,string]=String C++
    String="models/props_lab/huladoll.mdl"
Props1[C,string]=String C++
    String="models/props_trainstation/traincar_seats001.mdl"
Props1[C,string]=String C++
   String="models/Combine_turrets/Floor_turret.mdl"
Props1[C,string]=String C++
    String="models/props_wasteland/kitchen_shelf001a.mdl"
Props1[C,string]=String C++
    String="models/props_wasteland/kitchen_stove001a.mdl"
Props1[C,string]=String C++
    String="models/props_borealis/mooring_cleat01.mdl"
Props1[C,string]=String C++
    String="models/props_wasteland/kitchen_shelf002a.mdl"
Props1[C,string]=String C++
    String="models/props_trainstation/trainstation_post001.mdl"
Props1[C,string]=String C++
    String="models/props_trainstation/trainstation_ornament002.mdl"
Props1[C,string]=String C++
    String="models/props_trainstation/trainstation_column001.mdl"
Props1[C,string]=String C++
    String="models/props_lab/blastdoor001b.mdl"
Props1[C,string]=String C++
    String="models/props_lab/blastdoor001c.mdl"
Props1[C,string]=String C++
    String="models/props_c17/chair_stool01a.mdl"
Props1[C,string]=String C++
    String="models/props_c17/computer01_keyboard.mdl"
Props1[C,string]=String C++
    String="models/props_c17/clock01.mdl"
Props1[C,string]=String C++
    String="models/props_c17/chair_office01a.mdl"
Props1[C,string]=String C++
    String="models/props_c17/consolebox01a.mdl"
Props1[C,string]=String C++
    String="models/props_c17/consolebox03a.mdl"
Props1[C,string]=String C++
    String="models/props_c17/consolebox05a.mdl"
Props1[C,string]=String C++
    String="models/props_c17/playground_jungle_gym01a.mdl"
Props1[C,string]=String C++
    String="models/props_c17/playground_swingset01.mdl"
Props1[C,string]=String C++
    String="models/props_c17/playgroundslide01.mdl"
Props1[C,string]=String C++
    String="models/props_c17/playgroundTick-tack-toe_post01.mdl"
Props1[C,string]=String C++
    String="models/props_c17/statue_horse.mdl"
Props1[C,string]=String C++
    String="models/props_c17/tools_wrench01a.mdl"
Props1[C,string]=String C++
    String="models/props_c17/pottery02a.mdl"
Props1[C,string]=String C++
    String="models/props_c17/pottery03a.mdl"
Props1[C,string]=String C++
    String="models/props_c17/pottery04a.mdl"
Props1[C,string]=String C++
    String="models/props_c17/pottery_large01a.mdl"
Props1[C,string]=String C++
    String="models/props_junk/glassjug01.mdl"
Props1[C,string]=String C++
    String="models/props_junk/terracotta01.mdl"
Props1[C,string]=String C++
    String="models/props_lab/citizenradio.mdl"
Props1[C,string]=String C++
    String="models/props_lab/crematorcase.mdl"
Props1[C,string]=String C++
    String="models/props_lab/huladoll.mdl"
Props1[C,string]=String C++
    String="models/props_lab/monitor02.mdl"
Props1[C,string]=String C++
    String="models/props_lab/tpplugholder_single.mdl"
Props1[C,string]=String C++
    String="models/props_lab/tpplugholder.mdl"
Props1[C,string]=String C++
    String="models/props_lab/workspace001.mdl"
Props1[C,string]=String C++
    String="models/props_lab/workspace003.mdl"
Props1[C,string]=String C++
    String="models/props_lab/workspace004.mdl"
Props1[C,string]=String C++
    String="models/props_trainstation/traincar_seats001.mdl"
Props1[C,string]=String C++
    String="models/props_bts/bts_clipboard.mdl"
Props1[C,string]=String C++
if(0){
    String=""
Props1[C,string]=String C++
    String=""
Props1[C,string]=String C++

}


Count=10
C=0
PCount=Props:count()


while(C<=Count){
Ran=round(random(1,PCount))
if(Easy){Type=Props[Ran,string]}else{Type=Props1[Ran,string]}
#print("Ran"+Ran)
D = random(0,360)
R = random(20,1500)
Z=entity():pos():z()
Spawn = entity():pos()-vec(R*cos(D),R*sin(D),0)
#print("Spawn: "+Spawn)

Spawned:pushEntity(propSpawn(Type,Spawn,0))

#print(Type)
C++
}
}
runOnChat(1)
Chat=entity():owner():lastSaid()
if(chatClk()&Chat:find(Removeit)){
for(C=1,Spawned:count()){Spawned[C,entity]:propDelete()}
selfDestruct()
}
