public Player(int id) { Id = id; Entity = GetEntity(id); Health = GetHealth(); //Armor = GetArmor(); Team = GetTeam(); Position = GetPosition(); IsValid = CheckForDormant() && Team != Team.None && Team != Team.Spectator; Name = GetName(); Name = System.Text.RegularExpressions.Regex.Replace(Name, @"\s+", ""); if (LittleOverlay.LocalPlayer != null) { IsAlly = Team == LittleOverlay.LocalPlayer.Team; } Printer.PrintInfo($"NewPlayer ({Id}) [{Name}] {Entity} {Health} {Team} {MemUtils.ReadByte((IntPtr)(Entity + Signatures.m_bDormant))}"); var counter = 0; foreach (var c in Name) { if (c.Equals(' ')) { Printer.PrintInfo($"Emplty#{counter}"); } counter++; } }
public bool CheckForDormant() { return(MemUtils.ReadByte((IntPtr)(Entity + Signatures.m_bDormant)) == 0); }
public bool IsScoping() { return(MemUtils.ReadByte((IntPtr)(Entity + Netvars.m_bIsScoped)) == 1); }