protected void HandleExplosiveNadeExploded(object sender, GrenadeEventArgs e) { if (!isMatchStarted || e.ThrownBy == null || currentRoundNumber > stopRoundNumber) { return; } sbNade.AppendLine(parser.CurrentTick + "," + e.ThrownBy.SteamID + "," + e.ThrownBy.Name + "," + (int)e.NadeType + "," + (int)ActionEnum.HurtByNade + "," + e.Position.X + "," + e.Position.Y + "," + e.Position.Z); }
private void HandleExplosiveNadeExploded(object sender, GrenadeEventArgs e) { ExplosiveNadeExplodedEvent newEvent = new ExplosiveNadeExplodedEvent() { ThrownBySteamID = e.ThrownBy.SteamID, NadeType = (Models.EquipmentElement)((int)e.NadeType), Position = new Models.Vector(e.Position.X, e.Position.Y, e.Position.Z) }; CurrentTick.Events.Add(newEvent); }
void HandleExplosiveNadeExploded(object sender, GrenadeEventArgs e) { if (e.ThrownBy == null) { return; } if (e.ThrownBy.Team == Team.CounterTerrorist) { CTNades.AddPoint(MapPoint(e.Position, e.ThrownBy)); } else { TNades.AddPoint(MapPoint(e.Position, e.ThrownBy)); } }
void ExplosiveNadeExploded_Event(object sender, GrenadeEventArgs e) { if (e.ThrownBy != null) { CurrentRound.Players[e.ThrownBy.SteamID].PlayerRoundGrenade.Grenades.Add(new Grenade { StartTick = parser.CurrentTick, StartTime = parser.CurrentTime, Type = (int)e.NadeType }); if (MatchData.Players[e.ThrownBy.SteamID].Team == 0) { CurrentRound.Team1.GrenadesThrown += 1; } else { CurrentRound.Team2.GrenadesThrown += 1; } } }
private void CurrentDemoParser_ExplosiveNadeExploded(object sender, GrenadeEventArgs e) { SteamController.LogToConsole(e.NadeType + " that was thrown by " + (e.ThrownBy != null ? e.ThrownBy.Name : "nobody") + " exploded at " + e.Position); }