@name Cyber Zoom
@inputs More Less
@outputs Dir:vector Pos:vector Activated Zoom 
@persist Zoom Trigger Delta
@trigger 
runOnTick(1)
#Own=owner()
Own=entity():isConstrainedTo():owner()
Delta=changed(Own:keyUse())
Trigger=Own:keyUse()&Delta
Dir=Own:eye()
Ang=Own:eyeAngles()
if(first()){Zoom=10}
R=20
Pos=Own:shootPos()+vec(R*cos(Ang:yaw()),R*sin(Ang:yaw()),0)
Weapon=Own:weapon():type()=="weapon_357"|Own:weapon():type()=="weapon_crossbow"|Own:weapon():type():find("physgun")
if(Weapon){
    if(Trigger){Activated=!Activated}
    if(Less&Zoom<30){Zoom+=1}
    if(More&Zoom>0){Zoom-=1}
    
}
if(!Weapon&Activated){Activated=0}
   
