@name metal_gear_mk_ii_body
@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/cuboids/height06/size_2/cube_12x12x6.mdl","models/sprops/cuboids/height06/size_2/cube_12x18x6.mdl","models/sprops/cuboids/height06/size_1/cube_6x12x6.mdl","models/sprops/cuboids/height06/size_2/cube_12x18x6.mdl","models/sprops/cuboids/height06/size_2/cube_12x12x6.mdl","models/sprops/cuboids/height12/size_1/cube_12x12x12.mdl","models/sprops/cuboids/height06/size_1/cube_6x12x6.mdl")
    P2H_Clr = array(vec4(162,189,200,255),vec4(162,189,200,255),vec4(162,189,200,255),vec4(162,189,200,255),vec4(162,189,200,255),vec4(162,189,200,255),vec4(162,189,200,255))
    P2H_Pos = array(vec(7.5451,0,-4.5586),vec(4.2507,0,3.3438),vec(10.5451,0,-1.5586),vec(-1.1483,0,0.7715),vec(-2.9813,0,-2.6064),vec(-8.0438,0,4.4414),vec(-10.1678,0,0.167))
    P2H_Ang = array(ang(0,90,0.0001),ang(30,0,0),ang(0,90,0),ang(15,0,0),ang(21,0,-180),ang(0,89.9998,0),ang(0,90,21))
    P2H_Mat = array("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()
}
