@name Entity Data - By Moglizorz
@persist LastEnt:entity OwnerAim:entity Count
runOnTick(1)
interval(1000)
OwnerAim = owner():aimEntity()
if ((OwnerAim!=noentity())&(LastEnt!=OwnerAim)) {
    LastEnt=OwnerAim
    if (!OwnerAim:isPlayer()) { 
        hint("--------- [Entity Stats] ---------",7)
        hint("Owner: "+OwnerAim:owner():name(),7) 
        } else {
        hint("--------- [Player Stats] ---------",7)
        hint("HP: "+OwnerAim:health(),7)
        hint("Armor: "+OwnerAim:armor(),7)
        Weapon=OwnerAim:weapon():model()
        Weapon=Weapon:replace("weapons/","")
        Weapon=Weapon:replace("models/","")
        Weapon=Weapon:replace(".mdl","")        
        hint("Weapon: "+Weapon,7)
        hint("Name:" + OwnerAim:name(),7)
        hint("SteamID: "+OwnerAim:steamID():replace("STEAM_",""),7)
    
    }
    
    hint("Model: "+OwnerAim:model(),7)
    if(OwnerAim:getMaterial()!=""){
        hint("Material: "+OwnerAim:getMaterial(),7)
    }
    hint("Type: "+OwnerAim:type(),7)
    hint("EntId: "+OwnerAim:id(),7)
    hint("Weight: "+toString(OwnerAim:mass()),7)
    hint("Position: "+toString(round(OwnerAim:pos():x()))+"x, "+toString(round(OwnerAim:pos():y()))+"y, "+toString(round(OwnerAim:pos():z()))+"z",7)
    hint("Angle: P: "+toString(round(OwnerAim:angles():pitch()))+", Y: "+toString(round(OwnerAim:angles():yaw()))+", R: "+toString(round(OwnerAim:angles():roll())),7)
}
if(clk()){
    Count++
    if(Count>6){
        Count=0
        LastEnt=noentity()
    }
}
