示例#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;
        }
示例#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;
        }