@inputs 
@outputs H
@persist Y Ent:entity Ents:array Limit

interval(200)
if (first()) {Y = 1 Limit = 2 H = 0}



if (owner():keyReload()) {
if (Y <= Limit) {
Ent = propSpawn("models/props_phx/misc/egg.mdl",1)



Y++
}
Ent:setMass(50000)
Ents[Y,entity] = Ent
Ent:setPos(owner():pos() + vec(0,25,75) + entity():forward()*24)
Ent:setAng(ang(90,0,80) + owner():angles())
Ent:propFreeze(0)
Ent:applyForce(owner():eyeAngles():forward()*100000000*Ent:mass())
Ent:applyAngForce(-Ent:angles() + ang(0,curtime()*10000000,900)*Ent:mass())
#Ent:parentTo(owner())
holoCreate(1)
holoParent(1,Ent)


}
if(changed(Ent:pos())){H++ Y = 0}


SSpeed=Ent:vel():length()
if(SSpeed<0){print("test")}
if (owner():keyAttack2()) {
Ents:propDelete()
Y = 1
}
if(Limit == 1){
    Ents:propDelete()
Y = 1}

owner():weapon():setColor(0,0,0,0)
 
if(H > 2){
P = Ent:health()
if(P ==0){
    print("HIT!")
        E = propSpawn("models/hunter/misc/cone1x05.mdl",holoEntity(1):pos(),1)
    
H = 0}}
