@name Landmine - By Croco
@persist Array:array Distance Result:string Times Damage HoloDist Circle X Y
@model models/hunter/plates/plate05x05.mdl
E = entity()
E:setColor(vec(0,0,0))
holoCreate(1)
holoModel(1,"models/hunter/tubes/circle2x2.mdl")
holoScale(1, vec(0.4,0.4,0.7))
holoParent(1,E)
holoMaterial(1,"models/props_combine/metal_combinebridge001")

holoCreate(2)
holoModel(2,"models/hunter/tubes/circle2x2.mdl")
holoScale(2, vec(0.2,0.2,1.1))
holoParent(2,E)
holoMaterial(2,"models/props_c17/furniturefabric002a")

holoCreate(3)
holoModel(3,"models/hunter/tubes/circle2x2.mdl")
holoScale(3, vec(0.1,0.1,1.3))
holoParent(3,E)
holoMaterial(3,"models/error/new light1")

entity():setAlpha(1)

runOnTick(1)
timer("check",160)
Distance = 12
Result = ""
Times = 100
Damage = 20
interval(2000)
if (clk("check")) {
    findInSphere(entity():pos(), Distance)
    Array = findToArray()
    for(I=1,Array:count()) {
        if(Array[I,entity]:isPlayer()) {
            if(Array[I,entity]:isAlive()) {
                if (Result != "whip") {                  
Ent = propSpawn("models/props_c17/oildrum001_explosive.mdl",200)
Ent:propBreak() 
Ent:setPos(entity():pos() + vec(0,25,75))
selfDestructAll()
}}}}}

                    
