Bot ignored player

Report bugs of MFPS 2.0 here
Post Reply
User avatar
haskoman
Contributor
Contributor
Posts: 94
Joined: Wed Aug 22, 2018 1:57 pm

Hi Lovatto,

Bots not attack player, you need attack first and after bot work and attack, can you help me please,

Its strange this bug and no error ;(
User avatar
Lovatto
Admin
Admin
Posts: 1834
Joined: Sun Dec 07, 2014 3:18 pm
Contact:

Which MFPS version are you using?
Happens in all game modes?
How to find your Invoice Number: Here
How to find your Order Number: Here
User avatar
haskoman
Contributor
Contributor
Posts: 94
Joined: Wed Aug 22, 2018 1:57 pm

i have the last update 1.7.5, is work good on TDM but no for FFA ;(
User avatar
Lovatto
Admin
Admin
Posts: 1834
Joined: Sun Dec 07, 2014 3:18 pm
Contact:

I check this and I find an easy solution for this:

in bl_AIShooterAgent.cs -> RandomPatrol(bool precision) ->
Add these lines:

Code: Select all

 if (agentBehave == AIAgentBehave.Agressive && Target == null)
            {
                Target = GetNearestPlayer;
            }
after these lines:

Code: Select all

      else
            {
                SetDebugState(25);
                AgentState = agentBehave == AIAgentBehave.Agressive ? AIAgentState.Following : AIAgentState.Searching;
                precisionArea = 8;
            }
        }
        else
        {
            SetDebugState(26);
            AgentState = AIAgentState.Patroling;
So it should look like this:
Image
Let me know if this works for you.
How to find your Invoice Number: Here
How to find your Order Number: Here
User avatar
haskoman
Contributor
Contributor
Posts: 94
Joined: Wed Aug 22, 2018 1:57 pm

woooooooooooooow now is work 1000000% you need update asset i think this bug is for all have buy MFPS, thanks my friend
Post Reply