@name Mine
@persist E:entity B N Color
@model models/hunter/plates/plate025x025.mdl
interval(10)
if(first())
{
    E = entity()
    E:setColor(0,0,0,0)
    
    holoCreate(1)
    holoModel(1,"hq_rcylinder")
    holoScale(1,vec(1.1,1.1,0.3))
    holoColor(1,vec(50))
    holoParent(1,E)
    
    holoCreate(2,E:toWorld(vec(0,0,1.8)))
    holoModel(2,"hq_torus_thin")
    holoScale(2,vec(0.8))
    holoColor(2,vec(0,150,0))
    holoParent(2,1)
    holoDisableShading(2,1)
    
    holoCreate(3,E:toWorld(vec(0,0,1.6)))
    holoModel(3,"hq_sphere")
    holoScale(3,vec(0.725,0.725,0.2))
    holoColor(3,vec(50))
    holoParent(3,1)
    
    B = 1
}

if(B)
{
    if(findCanQuery())
    {
        findByClass("player")
        findSortByDistance(E:pos())
        if(find():pos():distance(E:pos())<55)
        {
            holoColor(2,vec(150,0,0))
            soundPlay("s",1.25,"radio/blow.wav")
            timer("b",1300)
            B = 0
        }
    }
}else
{
    if(clk("b"))
    {
        stoptimer("b")
        soundStop("s")
        propSpawn("models/props_phx/amraam.mdl",1):propBreak()
        selfDestruct()
    }
}
