@name Top Hat - By Croco
@inputs 
@outputs 
@persist V:vector
@trigger 

runOnTick(1)
if(first()){
    Head="anim_attachment_head"
    
    for(I=1,1){
        holoCreate(I)
        holoPos(I,owner():attachmentPos(Head))
        holoAng(I,owner():attachmentAng(Head))
       holoPos(I,holoEntity(I):toWorld(vec(0,2,-2+(-I*-5))))
       holoAng(I,holoEntity(I):toWorld(ang(0,0,(-I*10)-10)))
        holoParentAttachment(I,owner(),Head)
        holoModel(I,"models/props_phx/construct/metal_angle360.mdl")
        holoMaterial(1,"models/props_pipes/pipeset_metal")
        holoScale(I,vec(0.16,0.16,0.2))

    }
}

if(first()){
    Head="anim_attachment_head"
    
    for(I=1,1){
        holoCreate(2)
        holoPos(2,owner():attachmentPos(Head))
       holoAng(2,owner():attachmentAng(Head))
       holoPos(2,holoEntity(2):toWorld(vec(0,2,-2+(-I*-7))))
       holoAng(2,holoEntity(2):toWorld(ang(0,0,(-I*0)-120)))
        holoParentAttachment(2,owner(),Head)
        holoModel(2,"models/XQM/cylinderx1.mdl")
        holoMaterial(2,"models/props_pipes/pipeset_metal")
        holoScale(2,vec(0.4,0.4,1))


    }
}
