@name Vision Blocker
@persist [E, Target]:entity Vec:vector
@model models/props_c17/lampShade001a.mdl
if(first()|duped()){
    #Hide the chip
    runOnTick(1)
    runOnChat(1)
    #Set the chip to scan for vision blockers
    timer("scan",1)
    Vec=vec()
    Target=noentity() 
}
#Move to the targets view pos
if(Target!=noentity()){
    Dest = Target:shootPos()
        Vec=(Dest-E:pos())*E:mass()*10
        E:applyForce(Vec+$Vec*50)
}
#If the owner says something is chat
if(chatClk(owner())){
    Exploded = lastSaid():explode(" ")
    Said = Exploded[2,string]
    #Check to see if the first part is "!follow "
    if(Exploded[1,string]=="!follow"){
        hideChat(1)
        #Then find the players name the has been typed. It can be only part of the name.
        Target = findPlayerByName(Said)
        if(Target!=noentity()){hint("Targeting: ",3)}
        else{hint("Not Valid Target!",3)}
    }
}
#Scan for monitor and play with the selected ones properties
if(clk("scan")){
    findByModel("models/props_lab/monitor02.mdl")
    E=findClosest(entity():pos())
    if(E!=noentity()){
        hint("The fucking Prop Was found!",3)
        E:setTrails(130,0,0.2,"trails/electric",vec(255,255,255),255)
        E:setMaterial("models/alyx/emptool_glow")
        E:setColor(vec4(0,0,0,0))
    }
    else{timer("scan",1000)}
}
