@name TankTop
@inputs 
@outputs 
@persist 
@trigger 
runOnTick(1)

if (first()) {
    holoCreate(6)
    holoPos(6,entity():toWorld(vec(0,4,-0.25)))
    holoAng(6,ang(0,0,0))
    holoScale(6,vec(2,4,0.25))
    holoParent(6,entity())
    
    holoCreate(1)
    holoModel(1,"hq_cylinder")
    holoPos(1,entity():toWorld(vec(0,0,2.5)))
    holoScale(1,vec(2,2,0.5))
    holoParent(1,6)
    
    holoCreate(2)
    holoModel(2,"hq_cylinder")
    holoPos(2,entity():toWorld(vec(0,15,2.5)))
    holoAng(2,ang(0,0,90))
    holoScale(2,vec(0.3,0.3,2))
    holoParent(2,1)
    
    holoCreate(3)
    
    holoCreate(4)
    holoModel(4,"hq_hdome")
    holoPos(4,entity():toWorld(vec(0,0,5)))
    holoAng(4,ang(0,0,0))
    holoScale(4,vec(1.6,1.6,1))
    holoParent(4,1)
    
    holoCreate(5)
    holoModel(5,"hq_cubinder")
    holoPos(5,entity():toWorld(vec(0,-4,6)))
    holoAng(5,ang(0,0,180))
    holoScale(5,vec(1,1,0.5))
    holoParent(5,1)
    
    holoCreate(7)
    holoModel(7,"right_prism")
    holoPos(7,entity():toWorld(vec(0,-26,-0.25)))
    holoAng(7,ang(0,-90,0))
    holoScale(7,vec(1,2,0.25))
    holoParent(7,entity())
    
    holoCreate(8)
    holoPos(8,entity():toWorld(vec(0,4,-3.25)))
    holoAng(8,ang(0,0,0))
    holoScale(8,vec(2,4,0.25))
    holoParent(8,entity())
    
    holoCreate(9)
    holoPos(9,entity():toWorld(vec(0,-26,-3.25)))
    holoAng(9,ang(0,0,0))
    holoScale(9,vec(2,1,0.25))
    holoParent(9,entity())
    
    holoCreate(10)
    holoPos(10,entity():toWorld(vec(0,4,-6.25)))
    holoAng(10,ang(0,0,0))
    holoScale(10,vec(2,4,0.25))
    holoParent(10,entity())
    
    holoCreate(11)
    holoModel(11,"right_prism")
    holoPos(11,entity():toWorld(vec(0,-26,-6.25)))
    holoAng(11,ang(0,-90,180))
    holoScale(11,vec(1,2,0.25))
    holoParent(11,entity())
    
    holoCreate(12)
    holoModel(12,"models/sprops/misc/alphanum/alphanum_equal.mdl")
    holoPos(12,entity():toWorld(vec(-14,0,-6)))
    holoAng(12,ang(0,90,0))
    holoScale(12,vec(4,1,2))
    holoParent(12,entity())
    
    holoCreate(13)
    holoModel(13,"models/sprops/misc/alphanum/alphanum_equal.mdl")
    holoPos(13,entity():toWorld(vec(14,0,-6)))
    holoAng(13,ang(0,90,0))
    holoScale(13,vec(4,1,2))
    holoParent(13,entity())
}

Ranger = rangerOffset(9999,holoEntity(1):pos(),-holoEntity(1):right())
holoPos(3,Ranger:pos())

Ang = owner():eyeAngles():yaw()

holoAng(1,ang(0,Ang-90,0))

