@name Nuke Particle
@persist IsCrowbar Holos [Size Color TrailColor]:vector TrailAlpha Radius Height [HoloModel TrailModel]:string TrailStart TrailEnd TrailLength SpinSpeed ElevSpeed
if(first())
{
    Holos=4
    Size=vec(1,1,1)
    Color=vec(255,255,255)
    Radius=300
    SpinSpeed=30
    runOnTick(1)
    for(I=1,Holos)
    {
        holoCreate(I,vec(),Size,ang(),Color)
        holoModel(I,"cube")
    }
    timer("remove",2000)
}


AttackKey=owner():keyAttack2()

if(owner():weapon():type()=="weapon_crowbar" & !IsCrowbar){ 
    #owner():weapon():type()=="weapon_crowbar|
    IsCrowbar = 1
}

elseif(owner():weapon():type()!="weapon_crowbar" & IsCrowbar) {
    IsCrowbar = 0
}

for(I=1,Holos){
    Ht=1
    Pos=vec(sin(curtime()*SpinSpeed+I*360/Holos)*Radius,cos(curtime()*SpinSpeed+I*360/Holos)*Radius,Ht)
    holoPos(I,entity():pos()+vec(sin(I*360/Holos)*Radius,cos(I*360/Holos)*Radius,Ht))
    particle("cinefx_goldrush",holoEntity(I))
    holoAlpha(I,0)
}
holoCreate(5)
particle("cinefx_goldrush",holoEntity(5))
holoAlpha(5,0)

if(clk("remove")){selfDestruct()}
