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; }
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; }