@name Holo Disguise
@inputs 
@outputs 
@persist 
@trigger 
runOnTick(1)
O=owner()
Size=vec(1,1,1)*5

Color=vec(1,1,1)*255
Pos=O:pos()+vec(0,0,32)
Alpha=O:weapon():getAlpha()
#Mat="phoenix_storms/wood"
Mat="models/screenspace"
#Mat="phoenix_storms/future_vents"
if(O:isCrouch()){
    if(Alpha!=0){O:weapon():setAlpha(0)}
    if(!holoEntity(1)){
        
        holoCreate(1,Pos,Size,ang(),Color)
        holoMaterial(1,Mat)
        holoCreate(2,Pos,-Size,ang(),Color)
        holoMaterial(2,Mat)
        holoAlpha(2,64)
        #holoModel(1,
    }else{
        holoPos(1,Pos)
        holoPos(2,Pos)
    }
}else{
    if(holoEntity(1)){
        holoDelete(1)
        holoDelete(2)
    }
    if(Alpha!=255){O:weapon():setAlpha(255)}
}
