Raised This Month: $51 Target: $400
 12% 

Left 4 Dead survivor bots not shooting


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sunyata
Senior Member
Join Date: Nov 2017
Location: Wherever I am
Old 05-24-2021 , 05:52   Left 4 Dead survivor bots not shooting
Reply With Quote #1

I have an ongoing issue on my server where the survivor bots will sometimes stop shooting and melee-ing the Infected, and then they will take continuous damage from the Infected until they end up incapacitated on the ground. The only solution to fix this particular issue is to reboot my server.

This intermittent problem happens much later in-game, usually, after either one or two players have been playing the second, third even fourth map. Although, it never seems to happen on the first map.

There is obviously a problem with one of my plugins, but which one it is I don't know. And bearing that this problem is intermittent, it is very hard for me to trace it. So, I'm wondering has anyone else had this ongoing issue with their bots on their servers too, and if so, perhaps can help me trace where this fault lies within the plugins.

Any pointers would be greatly appreciated,

Last edited by Sunyata; 05-24-2021 at 05:53.
Sunyata is offline
TomL.
Veteran Member
Join Date: Oct 2017
Location: Germany
Old 05-24-2021 , 06:09   Re: Left 4 Dead survivor bots not shooting
Reply With Quote #2

Please post the console output of sm plugins list.

Last edited by TomL.; 05-24-2021 at 06:09.
TomL. is offline
Sunyata
Senior Member
Join Date: Nov 2017
Location: Wherever I am
Old 05-24-2021 , 06:19   Re: Left 4 Dead survivor bots not shooting
Reply With Quote #3

Hi TomL,

Many of my plugins have been renamed by me, and I also have customized many of them too. But here is my plugin list anyway. Hopefully there's enough info here to perhaps pinpoint my issue:

Spoiler

Last edited by Sunyata; 05-25-2021 at 09:05.
Sunyata is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 05-24-2021 , 06:40   Re: Left 4 Dead survivor bots not shooting
Reply With Quote #4

AFAIK, this issue mostly happens whenever a pipe bomb projectile is spawned and stays active (i.e attached to another entity that serves as its body).

Last edited by cravenge; 05-24-2021 at 06:45.
cravenge is offline
Sunyata
Senior Member
Join Date: Nov 2017
Location: Wherever I am
Old 05-24-2021 , 07:14   Re: Left 4 Dead survivor bots not shooting
Reply With Quote #5

Hi Cravenge,

Interesting...I just tested a pipe-bomb ingame by extending the fuse length to 60 seconds. And you are right, the bots do stop shooting the Infected while the pipe is in count-down mode, However, once it detonates, the bots will start shooting again. So it hasn't resolved my particular issue. It appears that it doesn't just come from the use of a pipe bomb alone, as I can still play through a whole chapter and the bots will still not shoot back at the Infected - even when I'm not using any pipe-bombs. So, there must be something amiss somewhere else methinks.
Sunyata is offline
Sunyata
Senior Member
Join Date: Nov 2017
Location: Wherever I am
Old 05-24-2021 , 07:56   Re: Left 4 Dead survivor bots not shooting
Reply With Quote #6

@Cravenge,

Ah Yesssss!... I've located the problem. It is with the pipe bomb after all. It happens when a pipe-bomb gets thrown at end of a map while outside of a safe-room. So when a player throws a pipe-bomb, and a player then shuts the safe room door -- while the timer is still running and when the next map starts loading -- this is what is causing the bots to stop shooting - on the next map. So the question now is: how to negate the timer on the pipe-bomb just before the end safe-room door gets shut.

What is needed then is a piece of code to somehow address this particular issue at end of every map. Can anybody help fix this particular issue with a small plugin?

Last edited by Sunyata; 05-24-2021 at 07:59.
Sunyata is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 05-24-2021 , 12:03   Re: Left 4 Dead survivor bots not shooting
Reply With Quote #7

You can fix that bug by patching a function that constantly checks for any active pipe bombs. The only downside is that the bots will keep shooting common infected instead of letting the pipe bomb take care of them. The function is called in different places so I don’t know what other aspects of the game would be affected by the patch.
__________________
Psyk0tik is offline
Sunyata
Senior Member
Join Date: Nov 2017
Location: Wherever I am
Old 05-24-2021 , 12:14   Re: Left 4 Dead survivor bots not shooting
Reply With Quote #8

@Crasher,

I'm no coder, but is there not a place for such a function where the player crosses the threshold into the safe zone area - ie the demarcation line would be the doorway itself? Could not the safe zone act as a trigger for this function to work?

Last edited by Sunyata; 05-24-2021 at 12:15.
Sunyata is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 05-24-2021 , 15:15   Re: Left 4 Dead survivor bots not shooting
Reply With Quote #9

Yeah, you can apply the patch when a survivor enters the saferoom and then remove it on round_start of the next map.
__________________
Psyk0tik is offline
Sunyata
Senior Member
Join Date: Nov 2017
Location: Wherever I am
Old 05-25-2021 , 03:48   Re: Left 4 Dead survivor bots not shooting
Reply With Quote #10

That's worth knowing, Crasher.

So, is there a link to where this patch fix resides for this pipe function? Would be handy to have that relevant information put into this thread, just in case any coder may feel like making a fix for that particular function to work within the saferoom area.

Last edited by Sunyata; 05-25-2021 at 08:42.
Sunyata is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:02.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode