@name stadium_v4_Generated
@persist E:entity HOLO_INDEX
@trigger all

## FUNCTIONS ##
if(first() || duped()){

   function void createHolo(Model:string,Scl:vector,Pos:vector,Ang:angle,Color:vector,Mat:string){

         holoCreate(HOLO_INDEX)
         holoModel(HOLO_INDEX,Model)
         holoPos(HOLO_INDEX,Pos)
         holoAng(HOLO_INDEX,Ang)
         holoScale(HOLO_INDEX,Scl)
         holoParent(HOLO_INDEX,E)
         holoColor(HOLO_INDEX,Color)
         holoMaterial(HOLO_INDEX,Mat)

         if(holoEntity(HOLO_INDEX):model() != Model){
               holoAlpha(HOLO_INDEX,0)
         }
         HOLO_INDEX+=1
   }
}

if(first() || duped()){
   E = entity()
  
   local INI = holoRemainingSpawns()
    
   ### GENERATED CODE ###
   createHolo("",vec(1),E:toWorld(vec(2786.64,4495.65,12427.54)),E:toWorld(ang(0,0,0)),vec(0,0,0),"")
   createHolo("models/hunter/plates/plate5x16.mdl",vec(1),E:toWorld(vec(-1.12,-15.84,20.99)),E:toWorld(ang(0,-90,0)),vec(255,255,255),"phoenix_storms/concrete0")
   createHolo("models/hunter/blocks/cube1x2x05.mdl",vec(1),E:toWorld(vec(-677.28,90.93,18.06)),E:toWorld(ang(90,90,180)),vec(255,255,255),"phoenix_storms/metal_plate")
   createHolo("models/hunter/blocks/cube075x1x075.mdl",vec(1),E:toWorld(vec(383.37,-377.49,12.04)),E:toWorld(ang(0,-88.11,90)),vec(255,255,255),"phoenix_storms/metal_plate")
   createHolo("models/hunter/blocks/cube075x6x075.mdl",vec(1),E:toWorld(vec(592.1,-15.93,6.2)),E:toWorld(ang(0,-0.01,0)),vec(255,255,255),"phoenix_storms/pack2/metalbox2")
   createHolo("models/hunter/blocks/cube075x6x075.mdl",vec(1),E:toWorld(vec(-617.97,-15.83,6.2)),E:toWorld(ang(0,-180,0)),vec(255,255,255),"phoenix_storms/pack2/metalbox2")
   createHolo("models/hunter/blocks/cube2x4x05.mdl",vec(1),E:toWorld(vec(651.43,-15.94,18.06)),E:toWorld(ang(0,-0.01,0)),vec(255,255,255),"phoenix_storms/trains/track_plateside")
   createHolo("models/hunter/blocks/cube075x1x075.mdl",vec(1),E:toWorld(vec(-409.3,-377.42,12.04)),E:toWorld(ang(0,-91.9,-90)),vec(255,255,255),"phoenix_storms/metal_plate")
   createHolo("models/hunter/blocks/cube2x4x05.mdl",vec(1),E:toWorld(vec(-677.28,-15.83,18.06)),E:toWorld(ang(0,-180,0)),vec(255,255,255),"phoenix_storms/trains/track_plateside")
   createHolo("models/hunter/blocks/cube075x1x075.mdl",vec(1),E:toWorld(vec(-618.3,129.38,12.13)),E:toWorld(ang(0,160.01,90)),vec(255,255,255),"phoenix_storms/metal_plate")
   createHolo("models/hunter/blocks/cube6x6x05.mdl",vec(1),E:toWorld(vec(426.03,-15.9,12.13)),E:toWorld(ang(0,-0.01,0)),vec(63,133,66),"phoenix_storms/concrete0")
   createHolo("models/hunter/blocks/cube075x6x075.mdl",vec(1),E:toWorld(vec(484.17,244.23,6.2)),E:toWorld(ang(0,44.98,0)),vec(255,255,255),"phoenix_storms/pack2/metalbox2")
   createHolo("models/weapons/w_models/w_drg_ball.mdl",vec(1),E:toWorld(vec(337.39,428.7,-371.58)),E:toWorld(ang(34.37,138.82,130.59)),vec(255,255,255),"")
   createHolo("models/hunter/blocks/cube075x1x075.mdl",vec(1),E:toWorld(vec(592.46,129.28,12.13)),E:toWorld(ang(0,19.98,-90)),vec(255,255,255),"phoenix_storms/metal_plate")
   createHolo("models/hunter/blocks/cube075x1x075.mdl",vec(1),E:toWorld(vec(592.39,-161.14,12.13)),E:toWorld(ang(0,-20.01,90)),vec(255,255,255),"phoenix_storms/metal_plate")
   createHolo("models/hunter/blocks/cube6x6x05.mdl",vec(1),E:toWorld(vec(-392.53,-158.53,12.13)),E:toWorld(ang(0,135,0)),vec(63,133,66),"phoenix_storms/concrete0")
   createHolo("models/hunter/blocks/cube075x1x075.mdl",vec(1),E:toWorld(vec(-409.36,345.69,12.04)),E:toWorld(ang(0,91.91,90)),vec(255,255,255),"phoenix_storms/metal_plate")
   createHolo("models/hunter/blocks/cube075x6x075.mdl",vec(1),E:toWorld(vec(-509.97,-275.97,6.2)),E:toWorld(ang(0,-135,0)),vec(255,255,255),"phoenix_storms/pack2/metalbox2")
   createHolo("models/hunter/blocks/cube1x2x05.mdl",vec(1),E:toWorld(vec(651.41,-122.7,18.06)),E:toWorld(ang(90,89.99,180)),vec(255,255,255),"phoenix_storms/metal_plate")
   createHolo("models/hunter/blocks/cube075x6x075.mdl",vec(1),E:toWorld(vec(484.06,-276.05,6.2)),E:toWorld(ang(0,-45.01,0)),vec(255,255,255),"phoenix_storms/pack2/metalbox2")
   createHolo("models/hunter/blocks/cube075x1x075.mdl",vec(1),E:toWorld(vec(383.54,345.63,12.04)),E:toWorld(ang(0,88.08,-90)),vec(255,255,255),"phoenix_storms/metal_plate")
   createHolo("models/hunter/blocks/cube6x6x05.mdl",vec(1),E:toWorld(vec(-451.9,-15.83,12.13)),E:toWorld(ang(0,-180,0)),vec(63,133,66),"phoenix_storms/concrete0")
   createHolo("models/hunter/blocks/cube075x1x075.mdl",vec(1),E:toWorld(vec(-618.28,-161.05,12.13)),E:toWorld(ang(0,-160,-90)),vec(255,255,255),"phoenix_storms/metal_plate")
   createHolo("models/hunter/blocks/cube6x6x05.mdl",vec(1),E:toWorld(vec(366.69,126.8,12.13)),E:toWorld(ang(0,44.99,0)),vec(63,133,66),"phoenix_storms/concrete0")
   createHolo("models/hunter/blocks/cube1x2x05.mdl",vec(1),E:toWorld(vec(651.44,90.82,18.06)),E:toWorld(ang(90,89.99,180)),vec(255,255,255),"phoenix_storms/metal_plate")
   createHolo("models/hunter/blocks/cube6x6x05.mdl",vec(1),E:toWorld(vec(-392.53,126.87,12.13)),E:toWorld(ang(0,135,0)),vec(63,133,66),"phoenix_storms/concrete0")
   createHolo("models/hunter/blocks/cube6x6x05.mdl",vec(1),E:toWorld(vec(366.64,-158.59,12.13)),E:toWorld(ang(0,44.99,0)),vec(63,133,66),"phoenix_storms/concrete0")
   createHolo("models/hunter/blocks/cube075x6x075.mdl",vec(1),E:toWorld(vec(-510,244.31,6.2)),E:toWorld(ang(0,135.01,0)),vec(255,255,255),"phoenix_storms/pack2/metalbox2")
   createHolo("models/hunter/blocks/cube1x2x05.mdl",vec(1),E:toWorld(vec(-677.28,-122.6,18.06)),E:toWorld(ang(90,90,180)),vec(255,255,255),"phoenix_storms/metal_plate")

   print(INI - holoRemainingSpawns())
}
