@name Spook
@inputs 
@outputs
@persist T R Entity:entity I Model:string Z
@trigger all
if(first()){
holoCreate(1)
holoCreate(2)
holoCreate(3)
holoCreate(4)
holoCreate(5)
holoCreate(6)
holoCreate(7)
holoCreate(8)
holoCreate(9)
Model = "models/Combine_Helicopter/helicopter_bomb01.mdl"
    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)
Entity = entity():owner()
R = 200
I = 1
}
interval(10)
    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
    
if(entity():owner():lastSaid() == "Ent" & curtime() - entity():owner():lastSaidWhen() <= 0.2) {
    Entity = entity():owner():aimEntity()
}
if(entity():owner():lastSaid() == "Me") {
    Entity = entity():owner()
}
if(entity():owner():lastSaid():explode("|"):string(1) == "I"){
    I = entity():owner():lastSaid():explode("|"):string(2):toNumber()
}
if(entity():owner():lastSaid():explode("|"):string(1) == "Z"){
    Z = entity():owner():lastSaid():explode("|"):string(2):toNumber()
}
if(entity():owner():lastSaid():explode("|"):string(1) == "R"){
    R = entity():owner():lastSaid():explode("|"):string(2):toNumber()
}
if(entity():owner():lastSaid():explode("|"):string(1) == "Model"){
    Model = entity():owner():lastSaid():explode("|"):string(2)
}

    
