@name Spook
@inputs 
@outputs
@persist T R Entity:entity I Model:string Z Limit C1 C2 C
@trigger all
if(first()){
    timer("Create",1)
    timer("Custom",1)
    C1=1
    C2=1
    Limit=9
    Model = "models/Combine_Helicopter/helicopter_bomb01.mdl"
    Entity = entity():owner()
    R = 200
    I = 1
    
}
if(clk("Create")){
holoCreate(C1) 
if(C1<Limit){C1++ timer("Create",1)}
}
if(clk("Custom")){
    holoCustomModel(C2,Model,1) 
    if(C2<Limit){C2++ timer("Custom",1)}
}
runOnTick(1)
#Th=T+(C*(360/Limit))
#Ang=-T-(C*-40)-90
    holoPos(1,Entity:pos() + vec(sin(T)*R,cos(T)*R,Z))
    holoPos(2,Entity:pos() + vec(sin(T+40)*R,cos(T+40)*R,Z))
    holoPos(3,Entity:pos() + vec(sin(T+80)*R,cos(T+80)*R,Z))
    holoPos(4,Entity:pos() + vec(sin(T+120)*R,cos(T+120)*R,Z))
    holoPos(5,Entity:pos() + vec(sin(T+160)*R,cos(T+160)*R,Z))
    holoPos(6,Entity:pos() + vec(sin(T+200)*R,cos(T+200)*R,Z))
    holoPos(7,Entity:pos() + vec(sin(T+240)*R,cos(T+240)*R,Z))
    holoPos(8,Entity:pos() + vec(sin(T+280)*R,cos(T+280)*R,Z))
    holoPos(9,Entity:pos() + vec(sin(T+320)*R,cos(T+320)*R,Z))

    holoAng(1,ang(0,-T-90,0))
    holoAng(2,ang(0,-T-40-90,0))
    holoAng(3,ang(0,-T-80-90,0))
    holoAng(4,ang(0,-T-120-90,0))
    holoAng(5,ang(0,-T-160-90,0))
    holoAng(6,ang(0,-T-200-90,0))
    holoAng(7,ang(0,-T-240-90,0))
    holoAng(8,ang(0,-T-280-90,0))
    holoAng(9,ang(0,-T-320-90,0))

    holoCustomModel(1,Model,1)
    holoCustomModel(2,Model,1)
    holoCustomModel(3,Model,1)
    holoCustomModel(4,Model,1)
    holoCustomModel(5,Model,1)
    holoCustomModel(6,Model,1)
    holoCustomModel(7,Model,1)
    holoCustomModel(8,Model,1)
    holoCustomModel(9,Model,1)

    T += I
    Self=entity():owner()
    Chat=Self:lastSaid()
    When=curtime() - entity():owner():lastSaidWhen()
    Bar1=Chat:explode("|"):string(1)
    Bar2=Chat:explode("|"):string(2)
if(Chat == "Ent" & When <= 0.2) {
    Entity = Self:aimEntity()
}
if(Chat == "Me") {
    Entity = Self
}
if(Bar1 == "I"){
    I = Bar2:toNumber()
}
if(Bar1 == "Z"){
    Z = Bar2:toNumber()
}
if(Bar1 == "R"){
    R = Bar2:toNumber()
}
if(Bar1 == "Model"){
    Model = Bar2
}

    
