void BombAbortPlant_Event(object sender, BombEventArgs e) { RoundBombPlantAttempt RoundBombAbortAttempt = CurrentRound.Players[e.Player.SteamID].BombPlantAttempts.LastOrDefault(); RoundBombAbortAttempt.EndTick = parser.CurrentTick; RoundBombAbortAttempt.EndTime = parser.CurrentTime; }
void BombPlanted_Event(object sender, BombEventArgs e) { RoundBombPlantAttempt RoundBombPlantAttempt = CurrentRound.Players[e.Player.SteamID].BombPlantAttempts.LastOrDefault(); RoundBombPlantAttempt.EndTick = parser.CurrentTick; RoundBombPlantAttempt.EndTime = parser.CurrentTime; RoundBombPlantAttempt.BombPlant = new RoundBombPlant { StartTick = parser.CurrentTick, StartTime = parser.CurrentTime, Player = CurrentRound.Players[e.Player.SteamID] }; lastBombPlanter = e.Player.SteamID; }