@name HoloDrone
@inputs W A S D
@outputs TarPos:vector
@persist Pos:vector Bullet
@trigger 

if(first()){
    holoCreate(1)
    holoPos(1, entity():pos()+vec(0,0,10))
    holoModel(1, "models/props_c17/FurnitureWashingmachine001a.mdl")
    
    holoCreate(2)
    holoPos(2, holoEntity(1):pos()+vec(0,0,18))
    holoModel(2, "models/props_vehicles/tire001c_car.mdl")
    holoAng(2, ang(vec(90,0,0)))
    
    holoCreate(3)
    holoPos(3, holoEntity(1):pos()+vec(0,0,25))
    holoModel(3, "models/Combine_Helicopter/helicopter_bomb01.mdl")
    holoScale(3, vec(0.7,0.7,0.7))
    
    holoCreate(4)
    holoPos(4, holoEntity(3):pos()+vec(0,0,5))
    holoModel(4, "models/props_c17/signpole001.mdl")
    holoScale(4, vec(1,1,0.4))
    #holoParent(4, 3)
    
    holoCreate(5)
    holoModel(5, "icosphere3")
    holoScale(5, vec(1,1,1))
    }

runOnTick(1)
holoAng(3, owner():eyeAngles())
holoAng(4, owner():eyeAngles()+ang(vec(75,0,0)))
holoPos(5, holoEntity(3):aimPos())

if(owner():keyAttack2()){Prop = propSpawn("models/Gibs/HGIBS.mdl",holoEntity(4):forward(),owner():eyeAngles(),0), Prop:applyForce(owner():aimPos()*1000000) }

