Left 4 Dead 2

Left 4 Dead 2

Yeterli oy yok
How to hide the crosshair when scoping in with a sniper
Joruri-P.U.N.K. QuotedTF Melody tarafından
Just a quick list of binds to put in your autoexec.cfg, in order to hide the crosshair when using the scope and to show it again once you're done sniping.
   
Ödül
Favorilere Ekle
Favorilere Eklendi
Favorilerden Çıkar
How to locate autoexec.cfg, and/or create one
Your autoexec.cfg is located in
C:\Program Files (x86)\Steam\SteamApps\common\Left 4 Dead 2\left4dead2\cfg.
Another way to locate this folder is to right-click on Left 4 Dead 2, from your Steam library, click "Properties...", then going to the "Local files" tab and clicking "Browse local files". From there, it shouldn't be hard to locate your left4dead2\cfg folder.

If you already have a file named autoexec.cfg in your cfg folder, just skip to the next step. Otherwise, keep reading.

Open your notepad, and paste in all the strings from the next section. After that, click "Save as", choose "All files" from the drop-down menu at the bottom of the save window, name it autoexec.cfg, and save it in your cfg folder (see path above for reference).
The script
This is what you have to paste in your autoexec.cfg file.

bind "MOUSE3" "+nxhsON"

alias "+nxhsON" "+zoom; wait 5; -zoom; cl_crosshair_alpha 0; wait 5; bind MOUSE3 -nxhsOFF"
alias "-nxhsOFF" "+zoom; wait 5; -zoom; cl_crosshair_alpha 255; wait 5; bind MOUSE3 +nxhsON"

bind "MOUSE2" "nxhsmelee"

alias "nxhsmelee" "spec_prev; +attack2; wait 3; -attack2; cl_crosshair_alpha 255; bind MOUSE3 +nxhsON"

bind "r" "nxhsreload"

alias "nxhsreload" "+reload; wait 3; -reload; cl_crosshair_alpha 255; bind MOUSE3 +nxhsON"

bind "SPACE" "nxhsjump"

alias "nxhsjump" "spec_mode; +jump; wait 3; -jump; cl_crosshair_alpha 255; bind MOUSE3 +nxhsON"

bind "1" "nxhsslot1"

alias "nxhsslot1" "slot1; cl_crosshair_alpha 255; bind MOUSE3 +nxhsON"

bind "2" "nxhsslot2"

alias "nxhsslot2" "slot2; cl_crosshair_alpha 255; bind MOUSE3 +nxhsON"

bind "MWHEELUP" "nxhsprev"

alias "nxhsprev" "invprev; cl_crosshair_alpha 255; bind MOUSE3 +nxhsON"

bind "MWHEELDOWN" "nxhsnext"

alias "nxhsnext" "invnext; cl_crosshair_alpha 255; bind MOUSE3 +nxhsON"

bind "q" "nxhslast"

alias "nxhslast" "lastinv; cl_crosshair_alpha 255; bind MOUSE3 +nxhsON"

Once you've done that, just start up Left 4 Dead 2 and you're good to go!
Screenshots, for no real reason
Questions nobody asked yet, but that some of you folks may have
This script should be affecting just the zoom button. Why is it modifying other binds as well?
There are several ways to unscope when using a sniper. The first, and most obvious one, is to click Mouse3 again. However, you can also unscope by meleeing, reloading, jumping, and switching to another weapon/item: this script makes sure you get your crosshair back, no matter how you unscope.

What if I don't use the default binds?
Just change all instances of mouse buttons/keys ("MOUSE2", "r"...) with the button you're currently using.

Can I edit my autoexec.cfg once i save it?
Yes, .cfg files can be opened with notepad.

Can i use this online?
Yes, you should be able to. I've had problems in some competitive servers (might be due to sv_consistency set to 2, or some other anti-cheat on the server) where it deicded to unbind the melee, reload, etc. keys; if that happens to you, just restore your default controls from the Options menu. Once you're done playing on that server, just quit: autoexec.cfg is run every time you start the game; or (if you don't want to quit) open the developer console and type in exec autoexec.

What scope mod is that?
The professional scope[www.gamemaps.com], by Red Schism/Omogot/Frankwest[www.gamemaps.com]. If you're using a 1366x768 or 1768x992 resolution, then click here[www.gamemaps.com] to download a version (by the same person) that accommodates for that.
Credits, and other stuff
The first two lines of this script do not belong to me, i got them from this page[l4d2.gamebanana.com] and were created by AWSM[gamebanana.com]. I wrote the rest of the script.

So yeah, that's about it. Feel free to leave a comment if you have any questions.
5 Yorum
Übel 27 Oca @ 7:34 
thanks bro i only want the snipe while scope in third person
This is really helpfull
Tino 31 Ara 2020 @ 9:09 
Works very well, but there is one problem: I can't heal anyone using a medkit. I can give pills and adrenaline, but healing someone else with a medkit does not work. I'm assuming it's got something to do with the wait command in the script, but I don't know how to fix it myself. If you could help me I'd greatly appreciate it, because I love the script otherwise
yeivy 21 Ara 2020 @ 21:11 
Thank you so much for the script.
Joruri-P.U.N.K. QuotedTF Melody  [yaratıcı] 23 Mar 2018 @ 5:10 
Restore default controls (either from the options or "exec config_default" from console) and remove the script from autoexec.cfg.
catsphalt 21 Mar 2018 @ 17:54 
How do I undo?