コード例 #1
0
        protected void HandleFreezetimeEnded(object sender, FreezetimeEndedEventArgs e)
        {
            if (!isMatchStarted)
            {
                return;
            }

            isFreezetime = false;

            if (showDetailInfo)
            {
                txtResult.AppendText("The Freeze Time is end and the tick is " + parser.IngameTick);
                txtResult.AppendText(Environment.NewLine);

                foreach (Player player in parser.PlayingParticipants)
                {
                    txtResult.AppendText("Player equipments after the freeze time; " + parser.CurrentTick + "; " + parser.CurrentTime + "; " + currentRoundNumber.ToString() + "; " + parser.Map);
                    txtResult.AppendText("; " + player.SteamID + "; " + player.Name);

                    foreach (Equipment weapon in player.Weapons)
                    {
                        txtResult.AppendText("; " + weapon.Weapon.ToString() + ",");
                    }

                    txtResult.AppendText(Environment.NewLine);
                }
            }
        }
コード例 #2
0
    private void OnFreezetimeEnded(object sender, FreezetimeEndedEventArgs args)
    {
        // Console.WriteLine($"Round {roundNumber} started, tick " + currentTick);

        roundNumber++;
        isBombPlanted = false;
        bombPlantTotalElapsedTicks = 0;
        isRoundOver = false;
    }
コード例 #3
0
 protected new void HandleFreezetimeEnded(object sender, FreezetimeEndedEventArgs e)
 {
     IsFreezetime = false;
     base.HandleFreezetimeEnded(sender, e);
 }
コード例 #4
0
 protected new void HandleFreezetimeEnded(object sender, FreezetimeEndedEventArgs e)
 {
     IsFreezetime       = false;
     _matchStartedCount = 0;
     base.HandleFreezetimeEnded(sender, e);
 }
コード例 #5
0
		protected new void HandleFreezetimeEnded(object sender, FreezetimeEndedEventArgs e)
		{
			IsFreezetime = false;
			_matchStartedCount = 0;
			base.HandleFreezetimeEnded(sender, e);
		}
コード例 #6
0
 private static void Parser_FreezetimeEnded(object sender, FreezetimeEndedEventArgs e)
 {
     _rountTickTimeStart = _parser.CurrentTick;
 }
コード例 #7
0
		protected void HandleFreezetimeEnded(object sender, FreezetimeEndedEventArgs e)
		{
			if (!IsMatchStarted) return;

			IsFreezetime = false;
		}
コード例 #8
0
 private void CurrentDemoParser_FreezetimeEnded(object sender, FreezetimeEndedEventArgs e)
 {
     SteamController.LogToConsole("Freeze time ended");
 }
コード例 #9
0
		protected void HandleFreezetimeEnded(object sender, FreezetimeEndedEventArgs e)
		{
			if (!IsMatchStarted) return;

			IsFreezetime = false;

			// TODO Players can buy after the end of the freezetime, must find an other way
			CurrentRound.EquipementValueTeam1 = Parser.Participants.Where(a => a.Team == Team.CounterTerrorist).Sum(a => a.CurrentEquipmentValue);
			CurrentRound.EquipementValueTeam2 = Parser.Participants.Where(a => a.Team == Team.Terrorist).Sum(a => a.CurrentEquipmentValue);
		}
コード例 #10
0
ファイル: Heatmap.cs プロジェクト: StatsHelix/HeatmapWebsite
 void parser_FreezetimeEnded(object sender, FreezetimeEndedEventArgs e)
 {
     afterFirstKill = false;
     roundStartTick = parser.CurrentTick;
 }
コード例 #11
0
ファイル: Mnifier.cs プロジェクト: joshdixon/DemoMinifier
        private void HandleFreezetimeEnded(object sender, FreezetimeEndedEventArgs e)
        {
            BaseEvent newEvent = new BaseEvent(EventType.FreezetimeEnded);

            CurrentTick.Events.Add(newEvent);
        }