Left 4 Dead 2

Left 4 Dead 2

884 ratings
Bots Avoid Mounted Machine Gun's Line of Fire
3
2
2
   
Award
Favorite
Favorited
Unfavorite
Game Content: Scripts
File Size
Posted
Updated
6.635 KB
Jul 9, 2024 @ 3:15pm
Dec 24, 2024 @ 8:33am
7 Change Notes ( view )

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

In 1 collection by tomaz
My L4D2 VScript Collection
32 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-2 seconds 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 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.
61 Comments
Slasher Apr 24 @ 11:18am 
what is the minigun sound mod ?
CanZEd Mar 13 @ 12:38am 
cool, useful, but I want them also use mounted guns
Solar Jan 27 @ 1:54pm 
we need a mod that makes bots not shoot through player entities
EMF Reader Jan 20 @ 1:45pm 
"first and probably last"
-guy who makes 30 more after that
Crabby Cakes Nov 28, 2024 @ 2:07pm 
Kinda wish there was smth like this for regular fire
joemarshlljmp Oct 21, 2024 @ 3:23pm 
This had the opposite effect, ?????????????????????????????????:steamsad:
Ⓡⓨⓤⓚ Ⓡⓜⓖⓤⓝ Aug 1, 2024 @ 6:21pm 
Algo simple pero útil la verdad, buen mod :health:
Lynda Jul 30, 2024 @ 7:57am 
Combat shotgun mod pls :steamsad:
jaytea Jul 25, 2024 @ 2:46pm 
That spas mod looks cool
Market Pluh Jul 20, 2024 @ 9:46pm 
can you make the bots avoid your crosshair?