Esempio n. 1
0
        public void Reset(int tick)
        {
            AverageHealthDamagePerPlayer = 0;
            BombDefused           = null;
            BombDefusedCount      = 0;
            BombExploded          = null;
            BombExplodedCount     = 0;
            BombPlanted           = null;
            BombPlantedCount      = 0;
            CrouchKillCount       = 0;
            DamageArmorCount      = 0;
            DamageHealthCount     = 0;
            DecoyThrownCount      = 0;
            EntryHoldKillEvent    = null;
            EntryKillEvent        = null;
            EquipementValueTeamCt = 0;
            EquipementValueTeamT  = 0;
            FiveKillCount         = 0;
            FourKillCount         = 0;
            IncendiaryThrownCount = 0;
            JumpKillCount         = 0;
            KillCount             = 0;
            MolotovThrownCount    = 0;
            OneKillCount          = 0;
            SideTrouble           = Side.None;
            SmokeThrownCount      = 0;
            TeamTroubleName       = string.Empty;
            ThreeKillCount        = 0;
            TradeKillCount        = 0;
            Tick         = tick;
            Type         = RoundType.NORMAL;
            TwoKillCount = 0;
            WinnerName   = string.Empty;
            WinnerSide   = Side.None;

            ExplosiveGrenadesExploded.Clear();
            FlashbangsExploded.Clear();
            Kills.Clear();
            PlayersHurted.Clear();
            SmokeStarted.Clear();
            WeaponFired.Clear();
        }
Esempio n. 2
0
 public void ResetStats(bool resetTeams = true)
 {
     DispatcherHelper.CheckBeginInvokeOnUI(delegate
     {
         AverageHealthDamage   = 0;
         AverageHltvRating     = 0;
         AverageEseaRws        = 0;
         AssistPerRound        = 0;
         DeathPerRound         = 0;
         KillPerRound          = 0;
         DamageHealthCount     = 0;
         DamageArmorCount      = 0;
         MvpCount              = 0;
         KillCount             = 0;
         KnifeKillCount        = 0;
         TeamKillCount         = 0;
         HeadshotCount         = 0;
         AssistCount           = 0;
         DeathCount            = 0;
         SmokeThrownCount      = 0;
         FlashbangThrownCount  = 0;
         HeadshotCount         = 0;
         DecoyThrownCount      = 0;
         MolotovThrownCount    = 0;
         IncendiaryThrownCount = 0;
         HitCount              = 0;
         WeaponFiredCount      = 0;
         AssistPerRound        = 0;
         DeathPerRound         = 0;
         OneKillCount          = 0;
         TwoKillCount          = 0;
         ThreeKillCount        = 0;
         FourKillCount         = 0;
         FiveKillCount         = 0;
         ScoreTeam1            = 0;
         ScoreTeam2            = 0;
         ScoreFirstHalfTeam1   = 0;
         ScoreFirstHalfTeam2   = 0;
         ScoreSecondHalfTeam1  = 0;
         ScoreSecondHalfTeam2  = 0;
         Rounds.Clear();
         WeaponFired.Clear();
         Kills.Clear();
         Overtimes.Clear();
         PositionPoints.Clear();
         MolotovsFireStarted.Clear();
         DecoyStarted.Clear();
         BombPlanted.Clear();
         BombDefused.Clear();
         BombExploded.Clear();
         BombPlanted.Clear();
         BombDefused.Clear();
         BombExploded.Clear();
         ClutchCount           = 0;
         ClutchLostCount       = 0;
         ClutchWonCount        = 0;
         EntryKillCount        = 0;
         MostBombPlantedPlayer = null;
         MostEntryKillPlayer   = null;
         MostHeadshotPlayer    = null;
         MostKillingWeapon     = null;
         HasCheater            = false;
         PlayersHurted.Clear();
         PlayerBlinded.Clear();
         Winner    = null;
         Surrender = null;
         if (resetTeams)
         {
             Players.Clear();
             TeamCT.Clear();
             TeamT.Clear();
         }
         else
         {
             foreach (Player playerExtended in Players)
             {
                 playerExtended.ResetStats();
             }
         }
     });
 }