Left 4 Dead 2

Left 4 Dead 2

Not enough ratings
Firemode Selector
By Bringer of The Amputation
Enhance your Left 4 Dead 2 experience by having the option of semi auto, burst fire and full auto.
   
Award
Favorite
Favorited
Unfavorite
Basics
If you know how to create configuration files and where to put them, skip this portion.

Right click Left 4 Dead 2 in your library. Manage, Browse Local Files.

Open: left4dead2/cfg.

Create a new text file, make sure to change its file type to .cfg from .txt.

As an example, my text file is named "firemode.cfg"
Fire Selector
Copy and Paste the following Code into your text file:

alias attack_on "+attack; alias toggleattack attack_off" alias attack_off "-attack; alias toggleattack attack_on" alias plus_attack "attack_on; wait 10; attack_off" attack_off bind mouse1 plus_attack alias burst_attack "+attack; wait 40; -attack" alias firemode_auto "bind mouse1 +attack; echo "Auto"; alias selectorswitch firemode_single" alias firemode_burst "bind mouse1 burst_attack; echo "Burst"; alias selectorswitch firemode_auto" alias firemode_single "bind mouse1 plus_attack; echo "Single"; alias selectorswitch firemode_burst" firemode_single bind x "selectorswitch"

This will all you to switch between the various fire modes using x. It defaults to semi automatic, which means you'll have to be careful to not hold the key unless you want your gun to not fire. If you desire it to default to something else instead, change the line "firemode_single" to "firemode_burst" or "firemode_auto."

If you do not wish to have to switch to full auto to heal or fire mounted guns, you can bind a secondary attack key.

bind z "+attack"

Simply change "z" to whatever key you'd like to use.
Activation
Within the folder where you've just created your text file, there should be another one called "autoexec.cfg"

If it does not exist, create it.

Enter that file and add the line:

exec firemode.cfg

Replacing "firemode.cfg" with the name of your text file.

This will cause the config to load when the game starts, allowing it to be used.

Alternatively you could type that same command into the console at each startup if you just like being inefficient or have OCD or something.
Conclusion
There are a few things to remember when using this script.

1. You do not queue your next shot like in the base game, if you don't take your finger off the mouse button your gun will not fire a second time.

2. You need to switch to full auto or use the secondary attack key for healing, but only with medkits or defibs. Basically anything that requires you to hold down attack requires you to be on full auto.

3. The burst timings are the same across weapons. The AK47 fires two round bursts, SMGs fire three to four and the M16 fires 3. It is a guaranteed kill per burst on advanced.

4. It's not possible to make the SCAR different using a config script, it is set to always fire three bullets per trigger pull in its weapon script, you'll need a mod to change that if you want to.

If all that is understood, then have fun being able to tap fire without spewing extra rounds or having a proper burst M16 instead of a frankenstein horror.