Esempio n. 1
0
        void BombAbortDefuse_Event(object sender, BombDefuseEventArgs e)
        {
            RoundBombDefuseAttempt RoundBombDefuseAttempt = CurrentRound.Players[e.Player.SteamID].BombDefuseAttempts.LastOrDefault();

            RoundBombDefuseAttempt.EndTick = parser.CurrentTick;
            RoundBombDefuseAttempt.EndTime = parser.CurrentTime;
        }
Esempio n. 2
0
        void BombDefused_Event(object sender, BombEventArgs e)
        {
            RoundBombDefuseAttempt RoundBombDefused = CurrentRound.Players[e.Player.SteamID].BombDefuseAttempts.LastOrDefault();

            RoundBombDefused.EndTick = parser.CurrentTick;
            RoundBombDefused.EndTime = parser.CurrentTime;

            RoundBombPlant RoundBombPlant = CurrentRound.Players[lastBombPlanter].BombPlantAttempts.LastOrDefault().BombPlant;

            RoundBombPlant.EndTick = parser.CurrentTick;
            RoundBombPlant.EndTime = parser.CurrentTime;
            RoundBombPlant.Defused = true;

            CurrentRound.BombDefused = true;
        }