@name EGP Hud
@inputs Scr:wirelink
@persist [Players List]:array NumPlayers
entity():setAlpha(0)
Scr:entity():setAlpha(0)
runOnTick(1)
Players=players()
NumPlayers=Players:count()
if (changed(NumPlayers) | changed(Scr) | first()) {
    Scr:egpClear()
}
for (I=1, Players:count()) {
    Index=I*5
    Scr:egp3DTracker(Index,Players[I,entity]:pos()+vec(0,0,Players[I,entity]:aabbSize():z()/2))
    Scr:egpCircle(Index+1,vec2(0,0),vec2(10,10))
    Scr:egpAlpha(Index+1,128)
    Scr:egpParent(Index+1,Index)
    #[    Scr:egpText(4,"0",vec2(0,40))
    Scr:egpParent(4,1)
    Scr:egpAlign(4,1,1)
    Scr:egpText(5,"Weapon",vec2(0,35))
    ]#
    Scr:egpText(Index+2,"HP: "+(Players[I,entity]:health()),vec2(0,40))
    Scr:egpText(Index+3,""+(Players[I,entity]:weapon():type()),vec2(0,60))
    Scr:egpAlign(Index+2,1,1)
    Scr:egpAlign(Index+3,1,1)
    Scr:egpAlpha(Index+2,128)
    Scr:egpAlpha(Index+3,128)
    Scr:egpParent(Index+2,Index)
    Scr:egpParent(Index+3,Index)
}
