Esempio n. 1
0
        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++;
            }
        }
Esempio n. 2
0
 public bool CheckForDormant()
 {
     return(MemUtils.ReadByte((IntPtr)(Entity + Signatures.m_bDormant)) == 0);
 }
Esempio n. 3
0
 public bool IsScoping()
 {
     return(MemUtils.ReadByte((IntPtr)(Entity + Netvars.m_bIsScoped)) == 1);
 }