void BombAbortDefuse_Event(object sender, BombDefuseEventArgs e) { RoundBombDefuseAttempt RoundBombDefuseAttempt = CurrentRound.Players[e.Player.SteamID].BombDefuseAttempts.LastOrDefault(); RoundBombDefuseAttempt.EndTick = parser.CurrentTick; RoundBombDefuseAttempt.EndTime = parser.CurrentTime; }
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; }