自CS中引进图形化控制菜单(H键菜单)后,设置的修改就方便多了。cstrike\commandmenu.txt就是这个实现这个菜单的文件。可用记事本打开按格式修改。
下面是这个菜单的文件内容:
"1" "Personal Option I"
{
"1" "Switch Hands"
{
"1" "Left Hand" "cl_righthand 0"
“编号”“显示的文字”“执行的命令及参数”
"2" "Right Hand" "cl_righthand 1"
}
"2" "Sensitivity" "messagemode sensitivity"
"3" "Zoom Sensitivity" "messagemode zoom_sensitivity_ratio"
"4" "Change Name" "messagemode name"
"5" "Fastswitch"
{
"1" "ON" "hud_fastswitch 1"
"2" "OFF" "hud_fastswitch 0"
}
"1" "Personal Option I"
{
"1" "Switch Hands"
{
"1" "Left Hand" "cl_righthand 0"
“编号”“显示的文字”“执行的命令及参数”
"2" "Right Hand" "cl_righthand 1"
}
"2" "Sensitivity" "messagemode sensitivity"
"3" "Zoom Sensitivity" "messagemode zoom_sensitivity_ratio"
"4" "Change Name" "messagemode name"
"5" "Fastswitch"
{
"1" "ON" "hud_fastswitch 1"
"2" "OFF" "hud_fastswitch 0"
}
"6" "AutoWeaponSwitch"
{
"1" "ON" "_cl_autowepswitch 1"
"2" "OFF" "_cl_autowepswitch 0"
}
"7" "Vgui Menus"
{
"1" "Old style menus" "setinfo _vgui_menus 0"
"2" "VGUI menus" "setinfo _vgui_menus 1"
}
"8" "Dynamic Crosshair"
{
"1" "Dynamic" "cl_dynamiccrosshair 1"
"2" "Freeze" "cl_dynamiccrosshair 0"
}
"9" "Console"
{
"1" "ON" "console 1"
"2" "OFF" "console 0"
}
}
"2" "Personal Option II" "6" "AutoWeaponSwitch"
{
"1" "ON" "_cl_autowepswitch 1"
"2" "OFF" "_cl_autowepswitch 0"
}
"7" "Vgui Menus"
{
"1" "Old style menus" "setinfo _vgui_menus 0"
"2" "VGUI menus" "setinfo _vgui_menus 1"
}
"8" "Dynamic Crosshair"
{
"1" "Dynamic" "cl_dynamiccrosshair 1"
"2" "Freeze" "cl_dynamiccrosshair 0"
}
"9" "Console"
{
"1" "ON" "console 1"
"2" "OFF" "console 0"
}
}
"2" "Personal Option II"
注意:编号可为字母和数字,但是不是一位数字时将无法用数字键选择。
“messagemode+空格+命令”的功能是将在屏幕左上显示一个形如按“Y”键发信息一样的输入处,但是要注意命令是否适合用于这种方式。
注意层次、{、}的嵌套和换行,语句前的空白处最好用TAB而不是空格。
