Left 4 Dead 2

Left 4 Dead 2

Selective Fire
 This topic has been pinned, so it's probably important
READ BEFORE YOU SAY "IT DOESN'T WORK"
We are aware it does not work out-of-the-box. This is due to an update which intentionally broke this functionality.[www.l4d.com]

IT IS STILL POSSIBLE TO USE THIS MOD; HOWEVER THE END USER (read: you) WILL NEED TO DO SOME SETUP FOR IT TO WORK.

There's two ways to do this: there's the hard, proper way to do things, and there's the cheap, but easier way to do things. The former is recommended, as if the script is updated, you can update your local copy with ease.

The Hard, but Proper Way
YOU WILL NEED:

INSTRUCTIONS:

1. Download the addon as usual.

2. Run GCFScape.

3. Navigate to your Left 4 Dead 2 install directory. On Windows 64-bit systems with the default install, it's usually

C:\Program Files (x86)\Steam\SteamApps\Common\Left 4 Dead 2

3. Navigate to /left4dead2/addons/workshop/ and search for 154201435.vpk. Drag and drop the VPK into GCFScape's window.

4. Extract /cfg/autoexec.cfg (or autoexec.txt) to your desktop, or somewhere you can remember it.

5. Go back to the left4dead2/ folder, but this time go to ./cfg/

6. If you have an autoexec.cfg, either:
  1. copy and paste the selective fire script into the foot of the autoexec.cfg you already have, OR
  2. Rename the autoexec.cfg from the VPK to something you'll remember (e.g. "selfire"), move it into /cfg/, then add "exec selfire" (or whatever you named the cfg from the VPK) to the end of your autoexec.cfg.

7. Start the game if it is not running, then type "exec autoexec" into console. If you see the following in console:
This cfg allows Automatic, Semi-Automatic and Burst fire modes. Credits: By: LoadedAK47 , Alexandrovich , Gejsiv , Crowbait , GingaNinja , EvilJackCarver Keys: Fire Selector: O ; Safety: P

...then you have installed it correctly.

---

The Cheap but Easy Way
YOU WILL NEED:
  • A copy of the script, such as mine[pastebin.com]
  • Developer console

1. Navigate to your Left 4 Dead 2 install directory. Go into /left4dead2/cfg/.

2. If you DO NOT have a file named autoexec.cfg, create one.

3. Create a new file named selfire.cfg.

4. Open your autoexec.cfg file and add "exec selfire" to the bottom.

5. Copy and paste the contents of the copy of the script into selfire.cfg.

6. Start the game if it is not running, and type "exec autoexec" into console. If you use my version of the script, you should get the copyright text and keybinds as a result - if you see that, you've installed it correctly.

Last edited by EvilJackCarver; 6 Feb, 2018 @ 7:58am
< >
Showing 1-12 of 12 comments
LoadedAK47  [developer] 28 Nov, 2017 @ 5:50pm 
Wow thanks man, took a bit for me to realize and overlooking your pastebin, EvilJack, how you been? I appreciate your continued refinement of this mod. It truely has become a group effort (even though none of the others are around anymore...). Anyhow.

This is an excellent tutorial on extracting this mod and adding it to the autoexec.cfg

As an added note if the file is named autoexec.cfg the file will automaticly be run everytime you launch the game. If you have type "exec autoexec.cfg" into the conosle you only have to do this once. (unless this has changed due to another silly update.)

I do apologize for my own laziness. I didn't intend someone else to make this thread, I was just waiting for the apparent demand. I was going to paste the contents of this mod into my reply but I'm personally interested in how your refinement works in comparsion to mine. In other words if you want my version follow the Hard Way of the instructions. if you want the further refined one by R. Andreas Spitzer (EvilJackCarver, I know its you don't hide, lol jk) use the Easy Way.
EvilJackCarver 28 Nov, 2017 @ 6:41pm 
It's not me, I swear!

Wait, crap. I blew my own cover. Yeah, I set my name to this for Hallowe'en and never set it back.

The part about typing "exec autoexec" is just to ensure that it's been added correctly: The further refinement, as you put it, was a very minor edit of the last version I posted, with the team_say stuff commented out.

Honestly, the main reason I'm posting this is I'm hoping to ward off some of the seemingly endless "it doesn't work!!!!!1!1!eleven" out of my inbox. It gets tiring telling people to read the last x pages of comments time and time again.
LoadedAK47  [developer] 28 Nov, 2017 @ 7:40pm 
Thx, I also was getting tired of people saying it doesn't work. I stop using my joke, "what doesn't work, your computer?" cause it was getting old.... repeating the same thing over and over was going to get annoying

So I appricate your help. An edit of any degree in a positive direction is progress to me, So in that case you really do have V3. I wonder who will make/progress to V4. I also added a PSA in the description in hopes people come to this thread in case your comment gets buried like before.

Happy Holidays and hey we may play sometime idk.
Last edited by LoadedAK47; 28 Nov, 2017 @ 7:45pm
EvilJackCarver 28 Nov, 2017 @ 8:53pm 
If I ever get into 4 Dead 2 again; I stopped a good while ago sadly.
LoadedAK47  [developer] 28 Nov, 2017 @ 9:04pm 
Same unfortunately...
Shad3rEVO 11 Jul, 2023 @ 3:44am 
How do I create a new file?
I wish I was joking.
Last edited by Shad3rEVO; 11 Jul, 2023 @ 3:44am
EvilJackCarver 11 Jul, 2023 @ 11:24pm 
Judging by your game library, I'd guess that you're on a system running Windows 10.

Go to your Left 4 Dead 2 install directory (you can easily do this by right-clicking the game in your library, hitting Properties, then Local Data > Browse) and navigate to /cfg/. Once there, verify you have file extensions turned on (View tab in Windows Explorer, then "File name extensions" - needs to be checked for this to work).

Then, right-click, New > Text Document, and set the name as necessary. Note that most Source games' config files use the extension .cfg, not .txt, so you'll need to change that.




If I mis-judged and you're on Windows 7 or 8, turning on file extensions is a little bit more in-depth, and I've sadly forgotten a lot of it, but you need to press F10 to display the menu bar, then find the button that opens the Folder Options window (probably be under 'view'). From there, go to the View tab, and in the options box, make sure "Hide extensions for known file types" is UNchecked.
Last edited by EvilJackCarver; 11 Jul, 2023 @ 11:27pm
Shad3rEVO 13 Jul, 2023 @ 9:42am 
It's not giving me the option to make a cfg file.
EvilJackCarver 13 Jul, 2023 @ 11:55am 
If you're getting a prompt that reads "If you change a file name extension, the file might become unusable", you need to hit "yes". If you're not, then double-check that you have your file extensions enabled.
Shad3rEVO 13 Jul, 2023 @ 3:32pm 
Got it, thanks for the help.
Ars3ny 22 Aug, 2024 @ 9:49am 
"Can't use cheat cvar sb_friendlyfire in multiplayer, unless the server has sv_cheats set to 1."
Cheap way
EvilJackCarver 2 Sep, 2024 @ 2:34am 
Originally posted by Ars3ny:
"Can't use cheat cvar sb_friendlyfire in multiplayer, unless the server has sv_cheats set to 1."
Cheap way
There's nothing that calls sb_friendlyfire in either copy of the script. If this is still happening, might want to check your keybinds and scripts, verify there's nothing else that could be calling that.

You can do a simple Ctrl-F for it in your scripts, and you can search through your binds for it with
key_findbinding friendlyfire
(or list all bound keys with the command
key_listboundkeys
).
< >
Showing 1-12 of 12 comments
Per page: 1530 50