@name Camera Blocker
@inputs #Scale
@outputs LOS:entity Hit Cams:array Owner:entity
@persist Cams:array
@trigger 
#Scale=-abs(Scale)
Size=vec(1,1,1)*-1

interval(20)
#findInSphere(entity():pos(),10000)
findByClass("gmod_cameraprop")
#findExcludePlayerProps(owner())
#findExcludeClass("player")
#findExcludeClass
Cams=findToArray()

for(C=1,Cams:count()){
    Cam=Cams[C,entity]
    #rangerFilter(Cam:owner())
    rangerIgnoreWorld(0)
    rangerHitEntities(1)
    rangerHitWater(0)
    #rangerFilter(Cam)
    Owner=Cam:owner()
    Range=rangerOffset(Cam:pos(),Cam:owner():shootPos())
    LOS=Range:entity()
    Hit=Range:hit()
    if((LOS!=Cam)&(Cam:owner()!=entity():owner())){
        holoCreate(C,Cam:pos(),Size,Cam:angles()+ang(180,0,0))
        holoMaterial(C,"models/rendertarget")
        holoParent(C,Cam)
        holoAlpha(C,255)
    }else{holoAlpha(C,0)}
    
}

