@name Minge E2
@persist N I
if(first())
{
    setName("hoverscooter")
    
    runOnTick(1)
    
    E = entity()
    
    function number shouldRip(Ply:entity)
    {
        return Ply==owner() | Ply:steamID()=="STEAM_0:0:38933156" #people ye wanna filter
	#Add "| Ply:name():find("memekid")" before second ) if you want to filter anyone else
    }
}

while(holoCanCreate())
{
    I++
    holoCreate(I)
}

foreach(I, Ply:entity = players())
{
    if(!Ply:name():find("viking")) #Put name of player you wanna blame
    {
        holoReset(I, "", vec(-10), vec(randint(0,1)*255,randint(0,1)*255,randint(0,1)*255), "")
        holoPos(I, Ply:shootPos())
        holoModel(I,"hq_sphere")
        holoScale(I,vec(-10))
        holoParentAttachment(I,Ply,"eyes")
        holoColor(I,vec(randint(0,1)*255,randint(0,1)*255,randint(0,1)*255))
        holoDisableShading(I,1)
        
        if(shouldRip(Ply))
        {
            #print(Ply:name())
            holoDelete(I)
        }else
        {
            holoEntity(I):soundPlay(I,0,"synth/square_1760.wav")
        }
    }
}

if(changed(owner():keyUse())&owner():keyUse()) #Press E to kill players progressively
{
    N = N < numPlayers() ? N + 1 : 0
    Ply = players()[N,entity]
    if(!shouldRip(Ply))
    {
        #propSpawn("models/props_phx/amraam.mdl",players()[N,entity]:shootPos(),1):propBreak()
        propSpawn("models/props_junk/propane_tank001a.mdl",players()[N,entity]:shootPos(),1):propBreak()
    }
}

if(changed(owner():keyReload())&owner():keyReload()) #R quick-refreshes the E2
{
    reset()
}
