@name Bush
@inputs 
@outputs 
@persist 
@trigger 
runOnTick(1)

if (first()) {
    holoCreate(1)
    holoModel(1,"models/props/de_inferno/pot_big.mdl")
    holoAlpha(1,0)
    
    holoCreate(2)
    holoModel(2,"models/props/de_inferno/largebush02.mdl")
    holoAlpha(2,0)
    
    holoCreate(3)
    holoModel(3,"models/props/de_inferno/largebush02.mdl")
    holoAlpha(3,0)
    
    holoCreate(4)
    holoModel(4,"models/props/de_inferno/largebush02.mdl")
    holoAlpha(4,0)
    
    holoCreate(5)
    holoModel(5,"models/props/de_inferno/largebush02.mdl")
    holoAlpha(5,0)
    
    holoCreate(6)
    holoModel(6,"models/props/de_inferno/largebush02.mdl")
    holoAlpha(6,0)
    
    holoCreate(7)
    holoModel(7,"models/props/de_inferno/largebush02.mdl")
    holoAlpha(7,0)
}

if (owner():keyWalk()) {
    holoPos(1,owner():pos())
    holoPos(2,owner():pos()+vec(3,3,50))
    holoPos(3,owner():pos()+vec(-2,-2,50))
    holoPos(4,owner():pos()+vec(-1,-1,50))
    holoPos(5,owner():pos()+vec(-1,-1,50))
    holoPos(6,owner():pos()+vec(-1,-1,50))
    holoPos(7,owner():pos()+vec(-1,-1,50))
    
    holoAng(1,ang(0,-45,0))
    holoAng(2,ang(0,45,0))
    holoAng(3,ang(0,90,0))
    holoAng(4,ang(0,-90,0))
    holoAng(5,ang(0,180,0))
    holoAng(6,ang(0,180,0))
    holoAng(7,ang(0,0,0))
    
    holoAlpha(1,255)
    holoAlpha(2,255)
    holoAlpha(3,255)
    holoAlpha(4,255)
    holoAlpha(5,255)
    holoAlpha(6,255)
    holoAlpha(7,255)
} else {
    holoAlpha(1,0)
    holoAlpha(2,0)
    holoAlpha(3,0)
    holoAlpha(4,0)
    holoAlpha(5,0)
    holoAlpha(6,0)
    holoAlpha(7,0)
}

