@name penis hat
@inputs 
@outputs 
@persist I V:vector A
@persist Target:entity Color:vector RandomColor:vector Chip:vector
@trigger 
interval(10)


Me = owner()

#hologram 1
holoCreate(1)
holoModel(1,"sphere2")
holoScale(1,vec(1.5,1.5,1.5))
holoColor(1,(vec(255,100,255)))
holoPos(1,Me:pos()+vec(8,0,90))
holoAng(1,ang(A,A,A))

#hologram 2
holoCreate(2)
holoModel(2,("sphere2"))
holoScale(2,vec(1.5,1.5,1.5))
holoColor(2,(vec(255,100,255)))
holoPos(2,Me:pos()+vec(-2,10,90))
holoAng(2,ang(A,A,A))

#hologram 3
holoCreate(3)
holoModel(3,("cylinder"))
holoScale(3,vec(1,1,1))
holoColor(3,(vec(255,255,100)))
holoPos(3,Me:pos()+vec(0,0,90))
holoAng(3,ang(A,A,A))

#hologram 4
holoCreate(4)
holoModel(4,("cylinder"))
holoScale(4,vec(1,1,1))
holoColor(4,(vec(255,255,100)))
holoPos(4,Me:pos()+vec(0,0,100))
holoAng(4,ang(A,A,A))

#hologram 5
holoCreate(5)
holoModel(5,("cylinder"))
holoScale(5,vec(1,1,1))
holoColor(5,(vec(255,255,100)))
holoPos(5,Me:pos()+vec(0,0,110))
holoAng(5,ang(A,A,A))

#hologram 6
holoCreate(6)
holoModel(6,("cylinder"))
holoScale(6,vec(1,1,1))
holoColor(6,(vec(255,255,100)))
holoPos(6,Me:pos()+vec(0,0,120))
holoAng(6,ang(A,A,A)) 

#hologram 7
holoCreate(7)
holoModel(7,("sphere2"))
holoScale(7,vec(1.5,1.5,1.5))
holoColor(7,(vec(255,100,255)))
holoPos(7,Me:pos()+vec(0,0,130))
holoAng(7,ang(A,A,A))
    
if( chatClk(owner()) )
{
    local Ls = owner():lastSaid()
   
    if( Ls[1] == "!" )
    {
        Target = findPlayerByName( Ls:sub(2,-1) )
       
        hint( "Target " + Target:name() + " has been found.", 2 )
       
        hideChat(1)
    }
}
 
if( Target )
{
    holoPos( 1, Target:pos() + vec(30,0,100) )
}

if( chatClk(owner()) )
{
    local Ls = owner():lastSaid()
   
    if( Ls[2] == "!" )
    {
        Target = findPlayerByName( Ls:sub(2,-1) )
       
        hint( "Target " + Target:name() + " has been found.", 2 )
       
        hideChat(1)
    }
}
 
if( Target )
{
    holoPos( 2, Target:pos() + vec(15,0,100) )
}

if( chatClk(owner()) )
{
    local Ls = owner():lastSaid()
   
    if( Ls[3] == "!" )
    {
        Target = findPlayerByName( Ls:sub(2,-1) )
       
        hint( "Target " + Target:name() + " has been found.", 2 )
       
        hideChat(1)
    }
}
 
if( Target )
{
    holoPos( 3, Target:pos() + vec(0,0,100) )
}

if( chatClk(owner()) )
{
    local Ls = owner():lastSaid()
   
    if( Ls[4] == "!" )
    {
        Target = findPlayerByName( Ls:sub(2,-1) )
       
        hint( "Target " + Target:name() + " has been found.", 2 )
       
        hideChat(1)
    }
}
 
if( Target )
{
    holoPos( 4, Target:pos() + vec(-15,0,100) )
}

if( chatClk(owner()) )
{
    local Ls = owner():lastSaid()
   
    if( Ls[5] == "!" )
    {
        Target = findPlayerByName( Ls:sub(2,-1) )
       
        hint( "Target " + Target:name() + " has been found.", 2 )
       
        hideChat(1)
    }
}
 
if( Target )
{
    holoPos( 5, Target:pos() + vec(-35,0,100) )
}
