@name 
@inputs 
@outputs 
@persist Fall Jump T TARGET:string E:entity GG
@trigger 
interval(1)
if(first()){
    E = propSpawn("models/sprops/rectangles/size_4/rect_36x42x3.mdl",entity():pos() + vec(0,0,50),0)
    holoCreate(1)
    holoPos(1,E:pos() - vec(0,0,60))
   T = 0
GG=0
    E:parentTo(holoEntity(1))
    
}
if(owner():keyReload() & owner():keyReload()){
T++
}
if(owner():keyAttack1() & owner():keyAttack1()){
GG++  
}
if(GG==1){
E:setAlpha(0)  }
if(GG==2){
E:setAlpha(255) 
GG = 0} 
TARGET = "artik"
if(T==1){
holoPos(1,findPlayerByName(TARGET):pos() + vec(0,0,50))}
if(T==2){
T =0}
Ranger = rangerOffset(500000000,holoEntity(1):pos()+vec(0,0,15),-holoEntity(1):up())
G = rangerOffsetHull(holoEntity(1):toWorld(vec(0,0,50)),holoEntity(1):toWorld(vec(0,0,-3)),vec(-10,-10,1),vec(10,10,1))

if(!G:hit()){

    if(!Fall){Fall = 1}
    if (Jump==0){
    Fall+=0.15
    Fall = clamp(Fall,-25,25)
    holoPos(1,holoEntity(1):pos()-vec(0,0,Fall))
}
}
if(G:hit()){Fall = 0 holoPos(1,G:position())
    }

if(Ranger:pos():z()>holoEntity(1):pos():z()){
    holoPos(1,Ranger:pos())
}

if(!holoEntity(1):pos():isInWorld()){
 holoPos(1,holoEntity(1):toWorld(vec(-50,0,0)))
}
