L4D Scripts
Catagory :
Left 4 Dead Scripts
Left 4 dead allows the use of custom scripts. With these you can autoload key bindings and other preferances every time you load left 4 dead. They reside in a file called autoexec.cfg in C:\Program Files (x86)\Steam\steamapps\common\left 4 dead\left4dead\cfg by default.
Some examples of what can be done in the file are
one touch walking
bind "shift" "+speeding" //change the bind to whatever key you use here
alias "+speeding" "+speed";
alias "-speeding" "speeding.switch";
alias "speeding.switch" "-speed; alias +speeding +speed; alias -speeding +speed; wait 20; alias +speeding +speed; alias -speeding speeding.switch";
or the one touch crouching
bind "ctrl" "+ducking"; //change the bind to whatever key you use here
alias "+ducking" "+duck";
alias "-ducking" "ducking.switch";
alias "ducking.switch" "-duck; alias +ducking +duck; alias -ducking +duck; wait 20; alias +ducking +duck; alias -ducking ducking.switch";
Source for Scripts
There is a great thread on the offical left 4 dead forums with scripts information and links. You can access the thread here
thirdpersonshoulder accuracy fix
Bind "insertkeyhere" thirdpersonshoulder;
c_thirdpersonshoulderoffset 0;
c_thirdpersonshoulderaimdist 720;
c_thirdpersonshoulderheight 10;
cam_ideallag 0;
This centers the wrong aim camera for the thirdpersonshoulder view mode, has to be input to autoexec.cfg.
Enhanced red crosshair: (sv_cheats 0)
cl_crosshair_alpha "100" (default 255)
cl_crosshair_red "255" (default 138)
cl_crosshair_green "0" (default 182)
cl_crosshair_blue "0" (default 220)
cl_crosshair_thickness "1" (default 2)
cl_crosshair_dynamic "1" (accuracy/recoil autosizing - default 1)
This setting WILL stick on game reset. Feel free to edit the colors to your liking ofc.
Scoreboard with NetGraph: (sv_cheats 0)
bind "TAB" "+sb";
alias "+sb" "+showscores; net_graph 5";
alias "-sb" "-showscores; net_graph 0";
This will toggle a net_graph 5 / net_graph 0 command on TAB press.
Also has to be used in autoexec.cfg or else, otherwise the alias binds will be lost on game reset.
Joining your OWN/SPECIFIC server: (sv_cheats 1->0)
sv_cheats 1; ms_force_dedicated_server "server_ip:server_port";
or
sv_search_key "<yourserverkey>";
Usable in lobby by a Lobby Leader. Don't worry that the first command is a cheat, it is a client cheat only and will not affect the server played on.
or
connect "server_ip:server_port";
to join a game in progress.
Single player Campaign Infected play: (sv_cheats 1)
sv_cheats 1;
director_force_versus_start;
director_no_human_zombies 0;
sb_all_bot_team 1;
Then press the default "M" key to switch to Infected. Bots will progress normally through the level and you can own them to your liking. Keep in mind that single player campaign maps don't have zombie ladders. Noclip is your friend here. With "z_spawn" special and normal infected
Single player VS Infected play: (sv_cheats 1)
sv_cheats 1;
sb_all_bot_team 1;
changelevel ; (console offers you level name hints, VS maps start with l4d_vs_)
Press default "M" to join Infected.
Hunter Walljump single player training: (sv_cheats 1)
sv_cheats 1;
director_force_versus_start;
director_no_human_zombies 0;
director_no_death_check 1;
sb_all_bot_team 1;
jointeam 3;
Select SP Campaign map of your choosing in the game menu (No Mercy 1 is a good map to train, thanks to the tall building next to the Hotel) and input these vars in. All NPCs will become latent and you will spawn as a default Smoker. Then input:
nb_delete_all;
z_spawn hunter;
give health;
to spawn as a fixed Hunter.
Price - $ 117.5 US
Time Left: - 1 hour 19 seconds
Price - $ 300.0 US
Time Left: - 35 minutes 11 seconds
Price - $ 329.51 US
Time Left: - 47 minutes 48 seconds