@name BestGunShop
@inputs S:wirelink 
@outputs 
@persist [Prop Prop2 Prop3]:entity 
@trigger 
interval(100)
runOnChat(1)

if (first()) {
    Prop = propSpawn("models/hunter/tubes/tube2x2x1.mdl",1)
    Prop:setMaterial("phoenix_storms/glass")
    Prop:setPos(entity():toWorld(vec(0,0,67)))
    Prop:setAng(ang(0,0,90))
    
    Prop2 = propSpawn("models/hunter/tubes/circle2x2.mdl",1)
    Prop2:setPos(entity():toWorld(vec(0,24,67)))
    Prop2:setAng(ang(0,0,90))
    Prop2:setAlpha(0)
    
    Prop3 = propSpawn("models/hunter/tubes/circle2x2.mdl",1)
    Prop3:setPos(entity():toWorld(vec(0,-24,67)))
    Prop3:setAng(ang(0,0,90))
    Prop3:setAlpha(0)
    
    holoCreate(0)
    holoModel(0,"hq_cylinder")
    holoPos(0,entity():toWorld(vec(0,0,60)))
    holoAng(0,ang(0,0,90))
    holoScale(0,vec(1,1,3.95))
    
    holoCreate(1)
    holoModel(1,"models/weapons/w_rif_m4a1.mdl")
    holoPos(1,entity():toWorld(vec(0,3,100)))
    holoParent(1,0)
    
    holoCreate(2)
    holoModel(2,"models/weapons/w_snip_scout.mdl")
    holoPos(2,entity():toWorld(vec(36,1,60)))
    holoParent(2,0)
    
    holoCreate(3)
    holoModel(3,"models/weapons/w_rif_ak47.mdl")
    holoPos(3,entity():toWorld(vec(-36,1,60)))
    holoParent(3,0)
    
    holoCreate(4)
    holoModel(4,"models/weapons/w_shot_xm1014.mdl")
    holoPos(4,entity():toWorld(vec(0,0,20)))
    holoParent(4,0)
    
    holoCreate(5)
    holoModel(5,"models/weapons/w_rif_galil.mdl")
    holoPos(5,entity():toWorld(vec(-26,2,33)))
    holoParent(5,0)
    
    holoCreate(6)
    holoModel(6,"models/weapons/w_rif_famas.mdl")
    holoPos(6,entity():toWorld(vec(26,6,30)))
    holoParent(6,0)
    
    holoCreate(7)
    holoModel(7,"models/weapons/w_smg_mac10.mdl")
    holoPos(7,entity():toWorld(vec(-26,0,82)))
    holoParent(7,0)
    
    holoCreate(8)
    holoModel(8,"models/weapons/w_smg_mp5.mdl")
    holoPos(8,entity():toWorld(vec(26,-2,80)))
    holoParent(8,0)
    
    holoCreate(9)
    holoModel(9,"hq_cylinder")
    holoMaterial(9,"phoenix_storms/fender_white")
    holoPos(9,entity():toWorld(vec(0,24,67)))
    holoAng(9,ang(0,0,90))
    holoScale(9,vec(7.87,7.87,0.1))
    
    holoCreate(10)
    holoModel(10,"hq_cylinder")
    holoMaterial(10,"phoenix_storms/fender_white")
    holoPos(10,entity():toWorld(vec(0,-24,67)))
    holoAng(10,ang(0,0,90))
    holoScale(10,vec(7.87,7.87,0.1))
    
    S:egpClear()
    S:egpBox(1,vec2(256,256),vec2(512,512))
    S:egpColor(1,vec(240,240,240))
    
    S:egpRoundedBox(2,vec2(256,256),vec2(500,500))
    S:egpColor(2,vec(200,200,200))
}

holoAng(0,holoEntity(0):angles()+ang(-4,0,0))

holoAng(1,ang(0,90,0))
holoAng(2,ang(0,90,0))
holoAng(3,ang(0,90,0))
holoAng(4,ang(0,90,0))
holoAng(5,ang(0,90,0))
holoAng(6,ang(0,90,0))
holoAng(7,ang(0,90,0))
holoAng(8,ang(0,90,0))

if (chatClk(owner()) & owner():lastSaid():find("!r")) {
    hideChat(1)
    Prop:propDelete()
    Prop2:propDelete()
    Prop3:propDelete()
}
