Left 4 Dead 2

Left 4 Dead 2

517 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
13 items
Description
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)
  • This was briefly tested with Left 4 Bots 2 and for the most part it seems to work, but I've noticed that sometimes the bots kinda go back and forth between where you were using the mounted machine gun and where you're currently are.
  • 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.
54 Comments
ʟʏɴᴅᴀ 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
Shad3rEVO 13 Jul @ 12:10am 
Could you possibly make a mod that removes the static flashlight?
So in order to have a flashlight you need to have a weapon that has a flashlight on it.