示例#1
0
        void BombExploded_Event(object sender, BombEventArgs e)
        {
            RoundBombPlant RoundBombPlant = CurrentRound.Players[e.Player.SteamID].BombPlantAttempts.Last().BombPlant;

            RoundBombPlant.EndTick  = parser.CurrentTick;
            RoundBombPlant.EndTime  = parser.CurrentTime;
            RoundBombPlant.Exploded = true;
        }
示例#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;
        }