@name Hatahs gonna hate!
@inputs 
@outputs 
@persist R:ranger V:vector A:angle Z N Ar:array
@trigger 




if(first()){
holoCreate(1)
holoModel(1,"models/player/heavy.mdl")


holoCreate(2)
holoModel(2,"models/player/heavy.mdl")


holoCreate(3)
holoModel(3,"models/player/heavy.mdl")


holoCreate(4)
holoModel(4,"models/player/heavy.mdl")



holoCreate(5)
holoModel(5,"models/player/heavy.mdl")

holoEntity(1):soundPlay(100000,10000000,"vo/heavy_go01.wav")
  holoSetPose(1,"move_x",1)  
holoAnim(1,"run_melee")   

holoSetPose(2,"move_x",1)   
holoSetPose(3,"move_x",1)   
holoSetPose(4,"move_x",1)   
holoSetPose(5,"move_x",1)   
holoAnim(5,"run_melee")   
holoAnim(2,"run_melee")   
holoAnim(3,"run_melee")   
holoAnim(4,"run_melee")   
#holoSetPose(5,"move_scale",1)   
timer("Spawn",2000)
#holoAnim(4,"run_primary")   
}


while(perf(10)){
interval(1)

timer("A",300)
if(N<50&clk("A")) {
N++
Ar[N,vector]=entity():pos()+(randvec()*100):setZ(0)
Ar[N*1000,number]=random(1,3)
}
for(I=1,25) {
rangerHitWater(1)
R = rangerOffset(12,holoEntity(I*100):pos()+vec(0,0,6),vec(0,0,-1))
Ar[I,vector]=Ar[I,vector]+vec(0.71*Ar[I*1000,number],0,0)
Ar[I+100,angle]=Ar[I+100,angle]+ang(4*Ar[I*1000,number],0,0)
Z = cos(Ar[I+100,angle]:pitch()*4+180)*0.9+8
holoPos(I,Ar[I,vector]:setZ(Z+R:position():z()))
holoPos(I*100,Ar[I,vector]:setZ(R:position():z()))
}

}

