Left 4 Dead 2

Left 4 Dead 2

592 ratings
Bots Avoid Mounted Machine Gun's Line of Fire
2
2
2
   
Award
Favorite
Favorited
Unfavorite
Game Content: Scripts
File Size
Posted
Updated
4.201 KB
9 Jul @ 3:15pm
11 Jul @ 4:37pm
2 Change Notes ( view )

Subscribe to download
Bots Avoid Mounted Machine Gun's Line of Fire

In 1 collection by tomaz
My L4D2 VScript Collection
19 items
Description
CURRENTLY UNLISTED because after recent discoveries, this only seems to do more harm than good.
This does not play very well with Left 4 Bots 2. If you have that and use this, their AI will reset back to their vanilla state after they move behind you/after you let go of the mounted machine gun, which means they won't pick up items and other stuff that Left 4 Bots 2 allows the bots to do.
If you don't use Left 4 Bots 2 then you might not be bothered by this, but this is a huge deal breaker for the vast amount of people that do use it, myself included. I don't know how to fix this or if there's a solution at all but until then, if you do use Left 4 Bots 2 then I recommend not using this for the time being.




Yeah, the title rolls of the tongue, doesn't it?

Sometimes the survivor bots seem to really like the taste of 50 caliber bullets and are very eager to stand in front of the mounted machine gun you're using.
This VScript attempts to make them move out of your way whenever you're using one.

NOTE:
  • Bots will take at most 1 second to start moving out of your way.
  • This hasn't been tested with more than 1 human player using a mounted machine gun and will most likely not work properly in that scenario. (Though you don't normally see 2 mounted machine guns close to each other I think)
  • If you have Left 4 Bots 2 (not yet tested with 1), after you let go of the mounted machine gun, their AI goes back to their default vanilla state and won't pick up items/give you items/etc as if you don't have Left 4 Bots 2 installed, until you transition to a new level.
  • This is VERY janky and might not work as intended.

Yeah, I know you can just use the "Go" command to make the bots go to wherever you point with Left 4 Bots 2, this is just an attempt at an automated solution

This is the first and probably the last time I'll ever make a VScript related to bots, it's simply something beyond my understanding.
If you're a VScript-head and you would like to improve upon my code and release an improved version, you are very welcome to do so.

This will only work in singleplayer or a locally hosted server.


I fully support & encourage edits of my mods. If you decide to upload your edit to the workshop or anywhere else, you are free to do so without needing to ask first, however please make sure that you credit me appropriately for the original work as well as any other authors that have contributed to the mod and provide a link to the mod that your edit is based on.
55 Comments
Algo simple pero útil la verdad, buen mod :health:
ᏕᏋᏒᎥᏬᏕ 30 Jul @ 7:57am 
Combat shotgun mod pls :steamsad:
jaytea 25 Jul @ 2:46pm 
That spas mod looks cool
Mark 20 Jul @ 9:46pm 
can you make the bots avoid your crosshair?
Shad3rEVO 20 Jul @ 5:32pm 
There's a really annoying bug that causes the bots to get stuck going back and forth in a spot and whenever I teleport them they will run back to the spot and get restuck.
Ghost👻 15 Jul @ 6:33pm 
zxc
nubi 15 Jul @ 6:28pm 
un muy buen mod
Mr Orrai 13 Jul @ 10:26pm 
ga
:steamhappy:
Duck><Moon 13 Jul @ 10:03am 
yup it's is important fix, that when the map have less supplies
🌻 Luucy 🌻 13 Jul @ 9:19am 
Insert Thank You from the Office gif