@name Crow
@inputs Pod:wirelink
@outputs 
@persist 
@trigger 
runOnTick(1)

if (first()) {
    holoCreate(1)
    holoModel(1,"models/crow.mdl")
}

    Ranger = rangerOffset(10,holoEntity(1):pos()+vec(0,0,5),-holoEntity(1):up())
    Hit = Ranger:hit()
    Distance = Ranger:distance()
    
    holoPos(1,vec(holoEntity(1):pos():x(),holoEntity(1):pos():y(),Ranger:position():z() + 1))

local Seat = Pod["Entity",entity]
local Driver = Seat:driver()
local W = Driver:keyForward()
local A = Driver:keyLeft()
local S = Driver:keyBack()
local D = Driver:keyRight()
local R = Driver:keyReload()
local Alt = Driver:keyWalk()
local Mouse1 = Driver:keyAttack1()
local Mouse2 = Driver:keyAttack2()
local Shift = Driver:keySprint()
local Space = Driver:keyJump()
local Active = Driver:isPlayer()
local On = Active

if((changed(W)|changed(S)|changed(Shift)|changed(Space)|changed(Mouse1)|changed(Mouse2)&!W&!S&!Shift&!Space&!Mouse1&!Mouse2)) {
    holoAnim(1,1)
}
if (changed(W) & W) {
    holoAnim(1,2)
}
if (changed(Shift & W) & Shift & W) {
    holoAnim(1,3)
}
if (changed(S) & S) {
    holoAnim(1,2)
}
if (changed(Mouse1) & Mouse1) {
    holoAnim(1,4)
}
if (changed(Space) & Space) {
    holoAnim(1,7)
}
if (W) {holoPos(1,holoEntity(1):pos() +holoEntity(1):forward()*1)}
if (Shift & W) {holoPos(1,holoEntity(1):pos() +holoEntity(1):forward()*2)}
if (S) {holoPos(1,holoEntity(1):pos() -holoEntity(1):forward()*1)}
if (Shift & S) {holoPos(1,holoEntity(1):pos() -holoEntity(1):forward()*2)}
