@name cakemon_arena_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()

   ### GENERATED CODE ###
   createHolo("",vec(1),E:toWorld(vec(1637.02,-3032.24,15479.89)),E:toWorld(ang(0,0,0)),vec(0,0,0),"")
   createHolo("models/hunter/blocks/cube8x8x05.mdl",vec(1),E:toWorld(vec(-193.83,-165.02,8.48)),E:toWorld(ang(0,-90,0)),vec(66,146,70),"sprops/textures/sprops_metal5")
   createHolo("models/hunter/blocks/cube1x2x05.mdl",vec(1),E:toWorld(vec(-668.38,95.95,14.41)),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(392.27,-372.47,8.39)),E:toWorld(ang(0,-88.11,90)),vec(255,255,255),"phoenix_storms/metal_plate")
   createHolo("models/hunter/blocks/cube075x1x075.mdl",vec(1),E:toWorld(vec(-400.39,-372.4,8.39)),E:toWorld(ang(0,-91.9,-90)),vec(255,255,255),"phoenix_storms/metal_plate")
   createHolo("models/hunter/blocks/cube1x2x05.mdl",vec(1),E:toWorld(vec(660.31,-117.68,14.41)),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(227.23,-372.57,2.55)),E:toWorld(ang(0,-89.97,0)),vec(255,255,255),"phoenix_storms/pack2/metalbox2")
   createHolo("models/hunter/blocks/cube8x8x05.mdl",vec(1),E:toWorld(vec(185.74,-165.06,8.48)),E:toWorld(ang(0,-90.01,0)),vec(66,146,70),"sprops/textures/sprops_metal5")
   createHolo("models/hunter/blocks/cube075x6x075.mdl",vec(1),E:toWorld(vec(-501.06,-270.94,2.55)),E:toWorld(ang(0,-135,0)),vec(255,255,255),"phoenix_storms/pack2/metalbox2")
   createHolo("models/hunter/blocks/cube075x1x075.mdl",vec(1),E:toWorld(vec(392.45,350.65,8.39)),E:toWorld(ang(0,88.08,-90)),vec(255,255,255),"phoenix_storms/metal_plate")
   createHolo("models/hunter/blocks/cube8x8x05.mdl",vec(1),E:toWorld(vec(178.17,143.4,8.48)),E:toWorld(ang(0,-90,0)),vec(66,146,70),"sprops/textures/sprops_metal5")
   createHolo("models/hunter/blocks/cube1x2x05.mdl",vec(1),E:toWorld(vec(660.35,95.84,14.41)),E:toWorld(ang(90,89.99,180)),vec(255,255,255),"phoenix_storms/metal_plate")
   createHolo("models/hunter/blocks/cube8x8x05.mdl",vec(1),E:toWorld(vec(-193.83,143.4,8.48)),E:toWorld(ang(0,-90,0)),vec(66,146,70),"sprops/textures/sprops_metal5")
   createHolo("models/hunter/blocks/cube075x6x075.mdl",vec(1),E:toWorld(vec(492.96,-271.03,2.55)),E:toWorld(ang(0,-45.01,0)),vec(255,255,255),"phoenix_storms/pack2/metalbox2")
   createHolo("models/hunter/blocks/cube2x4x05.mdl",vec(1),E:toWorld(vec(-668.38,-10.81,14.41)),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(-116.82,349.84,8.48)),E:toWorld(ang(0,90,90)),vec(255,255,255),"phoenix_storms/metal_plate")
   createHolo("models/hunter/blocks/cube075x1x075.mdl",vec(1),E:toWorld(vec(601.36,134.3,8.48)),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(-609.4,134.4,8.48)),E:toWorld(ang(0,160.01,90)),vec(255,255,255),"phoenix_storms/metal_plate")
   createHolo("models/hunter/blocks/cube075x1x075.mdl",vec(1),E:toWorld(vec(61.79,-372.13,8.89)),E:toWorld(ang(0,-89.99,-90)),vec(255,255,255),"phoenix_storms/metal_plate")
   createHolo("models/hunter/blocks/cube6x6x05.mdl",vec(1),E:toWorld(vec(375.54,-153.57,8.48)),E:toWorld(ang(0,44.99,0)),vec(66,146,70),"sprops/textures/sprops_metal5")
   createHolo("models/hunter/blocks/cube075x1x075.mdl",vec(1),E:toWorld(vec(-400.45,350.71,8.39)),E:toWorld(ang(0,91.91,90)),vec(255,255,255),"phoenix_storms/metal_plate")
   createHolo("models/hunter/blocks/cube075x1x075.mdl",vec(1),E:toWorld(vec(601.29,-156.12,8.48)),E:toWorld(ang(0,-20.01,90)),vec(255,255,255),"phoenix_storms/metal_plate")
   createHolo("models/weapons/w_models/w_drg_ball.mdl",vec(1),E:toWorld(vec(346.29,433.72,-375.23)),E:toWorld(ang(34.37,138.82,130.59)),vec(255,255,255),"")
   createHolo("models/hunter/blocks/cube075x1x075.mdl",vec(1),E:toWorld(vec(-609.38,-156.02,8.48)),E:toWorld(ang(0,-160,-90)),vec(255,255,255),"phoenix_storms/metal_plate")
   createHolo("models/hunter/blocks/cube075x6x075.mdl",vec(1),E:toWorld(vec(493.08,249.25,2.55)),E:toWorld(ang(0,44.98,0)),vec(255,255,255),"phoenix_storms/pack2/metalbox2")
   createHolo("models/hunter/blocks/cube1x2x05.mdl",vec(1),E:toWorld(vec(-668.38,-117.57,14.41)),E:toWorld(ang(90,90,180)),vec(255,255,255),"phoenix_storms/metal_plate")
   createHolo("models/hunter/blocks/cube075x6x075.mdl",vec(1),E:toWorld(vec(-609.07,-10.81,2.55)),E:toWorld(ang(0,-180,0)),vec(255,255,255),"phoenix_storms/pack2/metalbox2")
   createHolo("models/hunter/blocks/cube6x6x05.mdl",vec(1),E:toWorld(vec(-442.99,-10.81,8.48)),E:toWorld(ang(0,-180,0)),vec(66,146,70),"sprops/textures/sprops_metal5")
   createHolo("models/hunter/blocks/cube075x1x075.mdl",vec(1),E:toWorld(vec(61.73,350.52,8.89)),E:toWorld(ang(0,90,90)),vec(255,255,255),"phoenix_storms/metal_plate")
   createHolo("models/hunter/blocks/cube075x6x075.mdl",vec(1),E:toWorld(vec(-271.03,349.84,2.55)),E:toWorld(ang(0,90,0)),vec(255,255,255),"phoenix_storms/pack2/metalbox2")
   createHolo("models/hunter/blocks/cube6x6x05.mdl",vec(1),E:toWorld(vec(-383.63,131.89,8.48)),E:toWorld(ang(0,135,0)),vec(66,146,70),"sprops/textures/sprops_metal5")
   createHolo("models/hunter/blocks/cube075x6x075.mdl",vec(1),E:toWorld(vec(601.01,-10.91,2.55)),E:toWorld(ang(0,-0.01,0)),vec(255,255,255),"phoenix_storms/pack2/metalbox2")
   createHolo("models/hunter/blocks/cube075x1x075.mdl",vec(1),E:toWorld(vec(-116.76,-371.48,8.48)),E:toWorld(ang(0,-89.99,-90)),vec(255,255,255),"phoenix_storms/metal_plate")
   createHolo("models/hunter/blocks/cube075x3x075.mdl",vec(1),E:toWorld(vec(-21.86,-371.46,2.55)),E:toWorld(ang(0,-89.99,0)),vec(255,255,255),"phoenix_storms/pack2/metalbox2")
   createHolo("models/hunter/blocks/cube2x4x05.mdl",vec(1),E:toWorld(vec(660.33,-10.92,14.41)),E:toWorld(ang(0,-0.01,0)),vec(255,255,255),"phoenix_storms/trains/track_plateside")
   createHolo("models/hunter/blocks/cube6x6x05.mdl",vec(1),E:toWorld(vec(434.93,-10.88,8.48)),E:toWorld(ang(0,-0.01,0)),vec(66,146,70),"sprops/textures/sprops_metal5")
   createHolo("models/hunter/blocks/cube075x6x075.mdl",vec(1),E:toWorld(vec(227.17,350.98,2.55)),E:toWorld(ang(0,89.98,0)),vec(255,255,255),"phoenix_storms/pack2/metalbox2")
   createHolo("models/hunter/blocks/cube6x6x05.mdl",vec(1),E:toWorld(vec(375.59,131.83,8.48)),E:toWorld(ang(0,44.99,0)),vec(66,146,70),"sprops/textures/sprops_metal5")
   createHolo("models/hunter/blocks/cube6x6x05.mdl",vec(1),E:toWorld(vec(-383.63,-153.51,8.48)),E:toWorld(ang(0,135,0)),vec(66,146,70),"sprops/textures/sprops_metal5")
   createHolo("models/hunter/blocks/cube075x3x075.mdl",vec(1),E:toWorld(vec(-21.92,349.84,2.55)),E:toWorld(ang(0,90,0)),vec(255,255,255),"phoenix_storms/pack2/metalbox2")
   createHolo("models/hunter/blocks/cube075x6x075.mdl",vec(1),E:toWorld(vec(-270.98,-371.51,2.55)),E:toWorld(ang(0,-89.99,0)),vec(255,255,255),"phoenix_storms/pack2/metalbox2")
   createHolo("models/hunter/blocks/cube075x6x075.mdl",vec(1),E:toWorld(vec(-501.1,249.33,2.55)),E:toWorld(ang(0,135.01,0)),vec(255,255,255),"phoenix_storms/pack2/metalbox2")
}
