@name Pet Medic - By Croco
@inputs 
@outputs 
@persist H:entity Scale VertVelocity Ranger:ranger
@trigger 

runOnTick(1)

if(first()){
holoCreate(1)
holoModel(1,"models/player/medic.mdl")
holoAnim(1,"run_SECONDARY")
#holoSetPose(1,"move_x",1) 
holoSetPose(1,"move_scale",1)
holoCreate(2)
holoModel(2,"models/weapons/w_models/w_medigun.mdl")
holoPos(2,entity():pos() + vec(-8,-13,53))
#53
holoAng(2,ang(0,0,10))
holoParentAttachment(2,holoEntity(1),"flag")

H = propSpawn("models/weapons/w_models/w_baseball.mdl",entity():pos(),0)
H:setAlpha(0)
H:parentTo(holoEntity(1))
Scale = 100

}

holoPos(1,Ranger:pos())
Ranger=rangerOffset(0,entity():pos(),entity():up())
Distance=Ranger:distance()



findExcludeClass("*")
findIncludeClass("player")
findInSphere(H:pos(),Scale)

if(find()){
Y = findClosest(entity():pos())
NAME = Y:name()
User = findPlayerByName(NAME)

holoPos(1,vec(Y:pos():x(),Y:pos():y(),Y:pos():z() ) + vec(-100,0,0))

}
