@name Holo Cam Sphere
@inputs PodController:wirelink 
@outputs CamAng:angle CamPos:vector
@persist X Y
@trigger 
runOnTick(1)

W = PodController["W",number]
A = PodController["A",number]
S = PodController["S",number]
D = PodController["D",number]
Shift = PodController["Shift",number]
Pod = PodController["Entity",entity]




if(first()) {
    
    holoCreate(1)
    holoModel(1, "models/player/combine_soldier.mdl")
    holoPos(1, entity():toWorld(vec(0,0,50)))
    
    holoCreate(2)
    holoScale(2)
    holoPos(2, holoEntity(1):toWorld(vec(10,0,0)))
    holoParent(2, 1)
}

if ( { {(W)(X=1) 
if (S)(X=-1) 
if (A)(Y=1) 
if (D)(Y=-1) 
if (!W&!S)(X=0) 
if (!A&!D)(Y=0) 
if (Shift &W)(X=10) 
 
}



holoPos(1, holoEntity(1):toWorld(vec(X,Y,0)))
holoAng(1, Pod:driver():eyeAngles())

CamAng=holoEntity(1):angles()
CamPos=holoEntity(1):toWorld(vec(-40,0,10))
