@name Lawnmower
@model models/hunter/plates/plate1x1.mdl
@persist [P2H_Mod P2H_Color P2H_Mat P2H_Pos P2H_Ang]:array P2H_Int P2H_Offset P2H_Ready
if(first())
{
    P2H_Int = 0
    P2H_Offset = 0
    P2H_Mod = array("models/sprops/rectangles/size_2_5/rect_18x18x3.mdl","models/sprops/trans/wheel_a/t_wheel45.mdl","models/sprops/rectangles/size_2_5/rect_18x18x3.mdl","models/sprops/rectangles/size_2_5/rect_18x18x3.mdl","models/sprops/rectangles/size_2_5/rect_18x18x3.mdl","models/engines/v8s.mdl","models/sprops/cylinders/size_2/cylinder_3x12.mdl","models/sprops/cylinders/size_2/cylinder_3x12.mdl","models/sprops/cylinders/size_2/cylinder_3x66.mdl","models/sprops/cylinders/size_2/cylinder_3x66.mdl","models/sprops/cylinders/size_2/cylinder_3x6.mdl","models/sprops/cylinders/size_2/cylinder_3x12.mdl","models/sprops/geometry/sphere_3.mdl","models/sprops/cylinders/size_2/cylinder_3x12.mdl","models/sprops/geometry/sphere_3.mdl","models/sprops/cylinders/size_2/cylinder_3x6.mdl")
    P2H_Color = array(vec4(0,140,0,255),vec4(0,140,0,255),vec4(0,140,0,255),vec4(0,140,0,255),vec4(0,140,0,255),vec4(127,127,127,255),vec4(113,113,113,255),vec4(113,113,113,255),vec4(113,113,113,255),vec4(113,113,113,255),vec4(113,113,113,255),vec4(113,113,113,255),vec4(113,113,113,255),vec4(113,113,113,255),vec4(113,113,113,255),vec4(113,113,113,255))
    P2H_Mat = array("sprops/trans/wheels/wheel_d_rim1","sprops/trans/wheels/wheel_d_rim1","sprops/trans/wheels/wheel_d_rim1","sprops/trans/wheels/wheel_d_rim1","sprops/trans/wheels/wheel_d_rim1","sprops/trans/wheels/wheel_d_rim1","sprops/trans/wheels/wheel_d_rim1","sprops/trans/wheels/wheel_d_rim1","sprops/trans/wheels/wheel_d_rim1","sprops/trans/wheels/wheel_d_rim1","sprops/trans/wheels/wheel_d_rim1","sprops/trans/wheels/wheel_d_rim1","sprops/trans/wheels/wheel_d_rim1","sprops/trans/wheels/wheel_d_rim1","sprops/trans/wheels/wheel_d_rim1","sprops/trans/wheels/wheel_d_rim1")
    P2H_Pos = array(vec(9,-9,-0.2021),vec(0,0,4.2979),vec(9,9,-0.2022),vec(-9,9,-0.2022),vec(-9,-9,-0.2021),vec(0.5671,0.0001,7.0596),vec(-42.1782,-5.7332,35.9981),vec(-42.1782,5.7338,35.998),vec(-36.8123,12.4824,30.6327),vec(-36.8123,-12.4819,30.6329),vec(-61.0557,-10.0235,55.4678),vec(-62.5051,-2.3573,57.5938),vec(-62.4905,-8.461,57.5889),vec(-62.5051,2.3582,57.5937),vec(-62.4905,8.4619,57.5888),vec(-61.0557,10.0244,55.4687))
    P2H_Ang = array(ang(0,-0.0001,-0.0004),ang(0,0,-90.0004),ang(0,0,-0.0005),ang(0,180,0.0005),ang(0,-179.9999,0.0004),ang(0,-0.0005,-0.0005),ang(-45,179.9995,90.0006),ang(-45,179.9995,-89.9994),ang(-45,2.5004,-0.0006),ang(-45,-2.4996,-0.0006),ang(-45.0003,-47.4389,-0.0005),ang(-89.9995,-89.9998,0),ang(0,0,-0.0004),ang(-89.9995,89.9998,0),ang(0,0,-0.0004),ang(-44.9997,47.4395,-0.0003))
}

if(!P2H_Ready)
{
    while(holoCanCreate() & perf() & P2H_Int < P2H_Mod:count())
    {
        P2H_Int++
        local P2H_TempInt = P2H_Int+P2H_Offset
        holoCreate(P2H_TempInt,entity():toWorld(P2H_Pos[P2H_Int,vector]),vec(1),entity():toWorld(P2H_Ang[P2H_Int,angle]))
        holoColor(P2H_TempInt,P2H_Color[P2H_Int,vector4])
        holoModel(P2H_TempInt,P2H_Mod[P2H_Int,string])
        holoMaterial(P2H_TempInt,P2H_Mat[P2H_Int,string])
        holoParent(P2H_TempInt,entity())
    }
    P2H_Ready = P2H_Int >= P2H_Mod:count()
}
