@name mine
@inputs 
@outputs 
@persist E:entity Mode:string
@trigger 
@model models/props_combine/combine_mine01.mdl

if (first())
{ if (concmd("wire_expression2_extension_enable propcore")==0) { hint("wire_expression2_concmd must be activated !",5) selfDestructAll() } Mode="incendiary" #mode is "incendiary" or "explosive"
}

interval(10)

findExcludeClass("pr")
if (Mode=="explosive") {findInSphere(entity():pos(),150)}
else {findInSphere(entity():pos(),80)}

if (find()!=noentity())
{ if (Mode=="explosive") {E=propSpawn("models/props_c17/oildrum001_explosive.mdl",entity():pos()+entity():up()*100,entity():angles(),0)} else {E=propSpawn("models/props_junk/gascan001a.mdl",entity():pos()+entity():up()*100,entity():angles(),0)} E:propBreak() selfDestruct()
}
