@name Holo Cloner - By Moglizorz
@persist Ents:array I H:entity
runOnTick(1)
runOnChat(1)

if(first()){
    Ents=owner():aimEntity():getConstraints()
    holoCreate(0)
    holoAng(0,ang())
    holoAlpha(0,0)
}
while((I<Ents:count())&(holoCanCreate())&(opcounter()<maxquota())){
    I++
    holoCreate(I)
    holoModel(I,Ents[I,entity]:model())
    holoMaterial(I,Ents[I,entity]:getMaterial())
    holoPos(I,(holoEntity(0):toLocal(Ents[I,entity]:pos())+owner():pos()):setZ(Ents[I,entity]:pos():z()))
    holoColor(I,Ents[I,entity]:getColor())
    holoAng(I,Ents[I,entity]:angles())
    holoAnim(1,161)
}

if((chatClk(owner()))&(owner():lastSaid()=="!an")){
    reset()
}
