@name darklow_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(5125.6,-7343.69,12749.6)),E:toWorld(ang(0,0,0)),vec(0,0,0),"")
   createHolo("models/props_gameplay/bottle001.mdl",vec(1),E:toWorld(vec(0.19,0.23,2.73)),E:toWorld(ang(0.01,-126.4,0)),vec(255,255,255),"")
   createHolo("models/player/items/medic/fwk_medic_stahlhelm.mdl",vec(1),E:toWorld(vec(3.08,0.38,8.56)),E:toWorld(ang(-12.59,-177.35,3.44)),vec(255,255,255),"")
   createHolo("models/gibs/wood_gib01e.mdl",vec(1),E:toWorld(vec(-1.36,1.66,-11.76)),E:toWorld(ang(82.12,78.39,67.89)),vec(255,255,255),"")
   createHolo("models/gibs/wood_gib01e.mdl",vec(1),E:toWorld(vec(-0.29,5.72,2.17)),E:toWorld(ang(45,-79.81,88.26)),vec(255,255,255),"")
   createHolo("models/gibs/wood_gib01e.mdl",vec(1),E:toWorld(vec(-0.02,-2.56,-11.37)),E:toWorld(ang(81.48,-101.24,72.65)),vec(255,255,255),"")
   createHolo("models/gibs/wood_gib01e.mdl",vec(1),E:toWorld(vec(0.18,-5.02,2.22)),E:toWorld(ang(45.01,89.37,-90.01)),vec(255,255,255),"")
   createHolo("models/player/items/medic/summer_shades.mdl",vec(1),E:toWorld(vec(1.83,-0.22,6.49)),E:toWorld(ang(-18.75,-179.28,1.72)),vec(255,255,255),"")
}
