@name c42
@inputs 
@outputs 
@persist Entity:entity
@trigger 

Entity   = entity()
Material = "phoenix_storms/fender_white"
BaseCol  = vec(41, 128, 185)

function make_game() {
    local Index = 0
    
    local Gap    = 6
    local Height = (47.450004577637 + Gap) * 0.25
    local Width  = (47.450004577637 + Gap) * 0.25
    local Center = vec(0, -Width*6, -Height*5)/2
    
    Index++
    Base = holoCreate(Index), holoParent(Index, Entity), holoAlpha(Index, 15)
    
    for (H = 0, 7) {
        if (H <= 5) {
            for (W = 0, 6) {
                Index++
                
                holoCreate(Index)
                holoPos(Index, Base:toWorld(Center + vec(0, Width*W, Height*H)))
                holoAng(Index, Base:toWorld(ang(90, 0, 0)))
                holoModel(Index, "models/hunter/misc/platehole1x1a.mdl")
                holoScale(Index, vec(1, 1, 4) * 0.25)
                holoParent(Index, Base)
                holoMaterial(Index, Material)
                holoColor(Index, BaseCol)
            }
        }
        if (H <= 6) {
            Index++
            holoCreate(Index, Base:toWorld(vec(0, 0, Height*H - Height/2 + Center[3])))
            holoScale(Index, vec(3, Width*7 + 1.450004577637, 1.5)/12)
            holoParent(Index, Base)
            holoMaterial(Index, Material)
            holoColor(Index, BaseCol)
        }
        Index++
        holoCreate(Index, Base:toWorld(vec(0, Width*H - Width/2 + Center[2], 0)))
        holoScale(Index, vec(3, 1.5, Height*6)/12)
        holoParent(Index, Base)
        holoMaterial(Index, Material)
        holoColor(Index, BaseCol)
    }
}

make_game()
