internal void RaiseDecoyEnd(DecoyEventArgs args) { if (DecoyNadeEnded != null) { DecoyNadeEnded(this, args); } }
internal void RaiseDecoyStart(DecoyEventArgs args) { if (DecoyNadeStarted != null) { DecoyNadeStarted(this, args); } if (NadeReachedTarget != null) { NadeReachedTarget(this, args); } }
internal void RaiseDecoyEnd(DecoyEventArgs args) { if (DecoyNadeEnded != null) DecoyNadeEnded(this, args); }
internal void RaiseDecoyStart(DecoyEventArgs args) { if (DecoyNadeStarted != null) DecoyNadeStarted(this, args); if (NadeReachedTarget != null) NadeReachedTarget(this, args); }
protected void HandleDecoyNadeEnded(object sender, DecoyEventArgs e) { if (!AnalyzePlayersPosition || !IsMatchStarted) return; DecoyEndedEvent decoyEndedEvent = new DecoyEndedEvent(Parser.IngameTick) { Thrower = Demo.Players.FirstOrDefault(player => player.SteamId == e.ThrownBy.SteamID) }; if (decoyEndedEvent.Thrower != null) { PositionPoint positionPoint = new PositionPoint { X = e.Position.X, Y = e.Position.Y, Player = Demo.Players.First(p => p.SteamId == e.ThrownBy.SteamID), Team = e.ThrownBy.Team, Event = decoyEndedEvent, Round = CurrentRound }; Demo.PositionsPoint.Add(positionPoint); } }
protected void HandleDecoyNadeEnded(object sender, DecoyEventArgs e) { if (!AnalyzePlayersPosition || !IsMatchStarted) return; PlayerExtended thrower = Demo.Players.FirstOrDefault(player => player.SteamId == e.ThrownBy.SteamID); DecoyEndedEvent decoyEndedEvent = new DecoyEndedEvent(Parser.IngameTick, Parser.CurrentTime) { ThrowerSteamId = thrower?.SteamId ?? 0, ThrowerName = thrower == null ? string.Empty : thrower.Name }; if (thrower != null) { PositionPoint positionPoint = new PositionPoint { X = e.Position.X, Y = e.Position.Y, PlayerSteamId = e.ThrownBy.SteamID, PlayerName = e.ThrownBy.Name, Team = e.ThrownBy.Team, Event = decoyEndedEvent, RoundNumber = CurrentRound.Number }; Demo.PositionsPoint.Add(positionPoint); } }