@name metal_gear_mk_ii_head
@persist [P2H_Mdl P2H_Clr P2H_Pos P2H_Ang P2H_Mat]:array P2H_Int P2H_Ready
if(first())
{
    runOnTick(1)
    P2H_Mdl = array("models/sprops/rectangles/size_1_5/rect_6x12x3.mdl","models/sprops/rectangles_thin/size_1/rect_3x6x1_5.mdl","models/sprops/cylinders/size_2/cylinder_3x3.mdl","models/sprops/cylinders/size_2/cylinder_3x3.mdl","models/sprops/rectangles_thin/size_1/rect_3x6x1_5.mdl","models/sprops/rectangles/size_1_5/rect_6x12x3.mdl","models/sprops/rectangles/size_1_5/rect_6x12x3.mdl","models/sprops/rectangles/size_1/rect_3x12x3.mdl")
    P2H_Clr = array(vec4(162,189,200,255),vec4(88,88,88,255),vec4(129,255,139,255),vec4(255,129,129,255),vec4(88,88,88,255),vec4(162,189,200,255),vec4(162,189,200,255),vec4(162,189,200,255))
    P2H_Pos = array(vec(-3.2619,1.4583,0.0186),vec(3.5091,0.63,0.3174),vec(3.0164,-0.7479,-0.9834),vec(2.971,0.4843,1.4619),vec(3.5091,-0.87,0.3174),vec(-3.2409,-0.87,0.3174),vec(-3.2409,0.63,0.3174),vec(-3.2619,-0.7142,-1.7676))
    P2H_Ang = array(ang(0,0,-75),ang(90,-0.0001,0),ang(90,0.0001,0),ang(90,0.0016,0),ang(90,-0.0001,0),ang(0,0.0005,-89.9998),ang(0,0.0005,-89.9998),ang(0,-0.0001,0.0002))
    P2H_Mat = array("phoenix_storms/mrref2","phoenix_storms/mrref2","phoenix_storms/mrref2","phoenix_storms/mrref2","phoenix_storms/mrref2","phoenix_storms/mrref2","phoenix_storms/mrref2","phoenix_storms/mrref2")
}

if(!P2H_Ready)
{
    while(P2H_Int < P2H_Mdl:count())
    {
        P2H_Int++
        local Offset = 0
        local TI = P2H_Int + Offset
        local E = entity()
        holoCreate(TI,E:toWorld(P2H_Pos[P2H_Int,vector]),vec(1),E:toWorld(P2H_Ang[P2H_Int,angle]))
        holoModel(TI,P2H_Mdl[P2H_Int,string])
        holoColor(TI,P2H_Clr[P2H_Int,vector4])
        holoMaterial(TI,P2H_Mat[P2H_Int,string])
        holoParent(TI,E)
    }
    P2H_Ready = P2H_Int == P2H_Mdl:count()
}
