求生之路2(L4D2)配置文件简要说明
柏拉圖式的白學
编辑于 2022年08月31日 19:54

前言

本文仅对 L4D2 常用且玩家可能关心的配置做简要说明,希望能对诸位玩家有所帮助。

本文大部分参考 https://github.com/theletterjwithadot/Ultimate-Config-for-L4D2

autoexec.cfg 文件一般位于 steam 安装盘的 ...\steamapps\common\Left 4 Dead 2\left4dead2\cfg 目录

文末附本人从 Github 截取的较为常用的配置,或者请直接参考 Github 原文。

在对 autoexec.cfg 文件进行修改之前,请务必事先备份

在对 autoexec.cfg 文件进行修改之前,请务必事先备份

在对 autoexec.cfg 文件进行修改之前,请务必事先备份


自定义字体

安装字体 mod 后(如从 steam 创意工坊订阅),安装字体文件,并在 autoexec.cfg 文件中添加 如下两行并保存,分辨率请自行替换为自己游戏的分辨率。

代码块
CSS
自动换行
复制代码
mat_setvideomode 1920 1080 1

mat_setvideomode 1920 1080 1
复制成功

更详细的修改字体方法请参考 求生之路(L4D2)更改字体 - 哔哩哔哩 (bilibili.com)​

准星设置

代码块
CSS
自动换行
复制代码
cl_colorblind                                   1

cl_crosshair_alpha                              255

cl_crosshair_dynamic                            0    //# 0 代表静态准星

cl_crosshair_thickness                          2    //# 准星粗细度

alias "red"                                     "cl_colorblind 0; cl_crosshair_alpha 255; cl_crosshair_red 255; cl_crosshair_green 0; cl_crosshair_blue 0" 

//# 准星颜色
复制成功

如上文,游戏中 ~ 键(ESC 下方)呼出控制台,键入 red 并回车则游戏中准星颜色变为红色。

可自行添加自己喜欢的颜色并 alias 指令。

键位绑定

代码块
CSS
自动换行
复制代码
bind "F1"                                       "Vote Yes"

bind "F2"                                       "Vote No"

bind "F3"                                       "askconnect_accept"

// bind "F4"                                        ""

bind "F5"                                       "recordfix"     //# For the pesky invisible SI, "cannot see Tank", survivor "stuck in saferoom" bugs, etc

// bind "F6"                                        ""

// bind "F7"                                        ""

// bind "F8"                                        ""

// bind "F9"                                        ""

bind "F10"                                      "disconnect"

// bind "F11"                                       ""

// bind "F12"                                       ""



//# For competitive mods

bind "["                                        "sm_unready"

bind "]"                                        "sm_ready; recordfix"

bind "i"                                        "sm_mvp"

bind "l"                                        "sm_spechud"

bind "o"                                        "sm_current; sm_boss; sm_health"

bind "p"                                        "sm_pause"

bind "\"                                        "toggle cl_viewmodelfovsurvivor 51 81"
复制成功

#// \ 键快速调整手臂长度,数值请替换为自己习惯的长度。

net_graph 设置

代码块
CSS
自动换行
复制代码
net_graph                                       0

net_graphheight                                 0

net_graphpos                                    320

net_graphproportionalfont                       1

net_graphshowinterp                             0

net_graphshowlatency                            0

net_graphsolid                                  0

net_graphtext                                   1

net_scale                                       999

//# Show detailed net_graph when TAB is pressed and basic net_graph when not pressed

alias "+showscores_custom"                      "+showscores; net_graph 4"

alias "-showscores_custom"                      "-showscores; net_graph 0"

bind "TAB"
复制成功

Lerp 设置

代码块
JavaScript
自动换行
复制代码
cl_interp_ratio 0
cl_interp 0.0167

//# Lerps
alias "lerp0"									"cl_interp 0"
alias "lerp16"									"cl_interp 0.0167"

//# Rates
alias "rate100"									"rate 100000; cl_cmdrate 100; cl_updaterate 100"
alias "rate60"									"rate 60000; cl_cmdrate 60; cl_updaterate 60"
alias "rate30"									"rate 30000; cl_cmdrate 30; cl_updaterate 30"

//# 此处请参考服务器 rate值来进行适配

//# Interp ratio
alias "interp0"									"cl_interp_ratio 0"
alias "interp1"									"cl_interp_ratio 1"
alias "interp2"									"cl_interp_ratio 2"

//# Shortcut to set competitive settings
alias "comp"									"lerp0; rate100; interp0"

//# Shortcut to set Valve server settings
alias "valve"									"lerp100; rate30; interp1"
复制成功

Video 设置

代码块
JavaScript
自动换行
复制代码
mat_monitorgamma								2.2		//# Brightest 1.6 - Darkest 2.6
mat_monitorgamma_tv_enabled						1		//# Set to 0 if the game is too bright for you

budget_show_history								0
cl_detail_avoid_force							0
cl_detail_avoid_recover_speed					0
cl_detail_max_sway								0
cl_perf_wizard_enable							0
cl_phys_timescale								1.0
cl_ragdoll_limit								0
func_break_max_pieces							0
mat_bloom_scalefactor_scalar					0
mat_grain_scale_override						0
r_ambientfraction								0.2
r_cheapwaterend									1
r_cheapwaterstart								1
r_dynamic										1
r_eyemove										0
r_eyeshift_x									0
r_eyeshift_y									0
r_eyeshift_z									0
r_eyesize										0
r_PhysPropStaticLighting						0

fps_max											300
//# 参考玩家电脑性能设置
复制成功


若说明有不充分或不恰当之处,请于评论区指出。

文末附本人从 Github 截取的较为常用的配置,或者请直接参考 Github 原文。

链接: https://pan.baidu.com/s/1L7LRdR0uYmrqqlO6WJ1BcQ?pwd=5257 

提取码: 5257