@name Holo God
@persist N Mx R
@persist [E O B]:entity
if(first())
{
    runOnTick(1)
    
    E = entity()
    O = owner()
    
    Mx = 15
    R = 360/Mx
    
    N = 1
    B = holoCreate(1, O:pos()+vec(0,0,0))
    holoAlpha(1,0)
}

if(N<Mx)
{
    while(holoCanCreate() & perf())
    {
        N++
        holoCreate(N,B:pos()+vec(cos(R*N)*Mx*10,sin(R*N)*Mx*10,0))
        holoAng(N,ang(0,R*N,0))
        holoModel(N,"models/player/skeleton.mdl")
        holoAnim(N,"ACT_GMOD_TAUNT_DANCE")
        holoParent(N,B)
    }
    
    holoColor(2,vec(255,0,0))
    timer("holo",holoAnimLength(2)*1000)
}else
{
    holoPos(1,O:pos()+vec(0,0,0))
    holoAng(1,B:toWorld(ang(0,5*Mx,0)))
    if(clk("holo"))
    {
        stoptimer("holo")
        for(I=2,Mx+1)
        {
            holoAnim(I,"ACT_GMOD_TAUNT_LAUGH")
        }
        timer("holo",holoAnimLength(2)*1000)
    }
}
