@name Holographic Portalgun
@inputs 
@outputs 
@persist 
@trigger 
C=1
Scale=1
Parent=entity()
Gray=vec(1,1,1)*60
Loc=vec(0,0,25)+entity():pos()

#base
holoCreate(C,Loc,vec(1.5,0.75,1)*Scale) 
holoParent(C,Parent)
holoModel(C,"hqicosphere") C++

#cannon
holoCreate(C,(Loc-vec(10,0,0.5))*Scale,-vec(0.4,0.4,1.5)*Scale,ang(90,0,0)) 
holoParent(C,Parent)
holoColor(C,Gray)
holoModel(C,"cylinder") C++

holoCreate(C,(Loc+vec(-4,0,-1)*Scale),vec(0.65,0.65,0.75)*Scale,ang(90,0,0))
holoParent(C,Parent)
holoColor(C,Gray)
holoModel(C,"hqcylinder") C++

holoCreate(C,(Loc+vec(-10,0,-1)*Scale),vec(0.2,0.2,1.5)*Scale,ang(90,0,0))
holoParent(C,Parent)
holoColor(C,vec(0,128,255))
holoModel(C,"hqcylinder") C++
#Blocker 1
holoCreate(C,(Loc+vec(-13,1,-1.6)*Scale),vec(1,0.25,0.01)*Scale,ang(0,0,50))
holoParent(C,Parent)
holoColor(C,Gray)
holoModel(C,"cube") C++
#Blocker 2
holoCreate(C,(Loc+vec(-13,-1,-1.6)*Scale),vec(1,0.25,0.01)*Scale,ang(0,0,-50))
holoParent(C,Parent)
holoColor(C,Gray)
holoModel(C,"cube") C++
#Blocker 3
holoCreate(C,(Loc+vec(-13,-1,0.6)*Scale),vec(1,0.25,0.01)*Scale,ang(0,0,50))
holoParent(C,Parent)
holoColor(C,vec(255,0,0))
holoModel(C,"cube") C++
