the Game freeze at the end of the game (Free For All BUG)

Report bugs of MFPS 2.0 here
Post Reply
User avatar
PolipoGaming2020
Member
Member
Posts: 11
Joined: Thu May 14, 2020 9:13 pm

Hi, as already written in the title, the game crashes at the end of the game.

This only happens in Free For All mode.

I attach a couple of screens to help you understand the problem:

Image
Image

Best regards
User avatar
PolipoGaming2020
Member
Member
Posts: 11
Joined: Thu May 14, 2020 9:13 pm

UP
User avatar
Lovatto
Admin
Admin
Posts: 1834
Joined: Sun Dec 07, 2014 3:18 pm
Contact:

Hi,

Please try the following:
in bl_AIManager.cs, replace the function GetBotWithMoreKills()
with this:

Code: Select all

public BotsStats GetBotWithMoreKills()
    {
        if(BotsStatistics == null || BotsStatistics.Count <= 0)
        {
            BotsStats bs = new BotsStats()
            {
                Name = "None",
                Kills = 0,
                Team = Team.None,
                Score = 0,
            };
            return bs;
        }
        int high = 0;
        int id = 0;
        for (int i = 0; i < BotsStatistics.Count; i++)
        {
            if (BotsStatistics[i].Kills > high)
            {
                high = BotsStatistics[i].Kills;
                id = i;
            }
        }
        return BotsStatistics[id];
    }
Let me know if that fixes the issue for you.
How to find your Invoice Number: Here
How to find your Order Number: Here
Post Reply