- UID
- 1014651
- 主题
- 0
- 阅读权限
- 30
- 帖子
- 410
- 精华
- 0
- 积分
- 205
- 金钱
- 478
- 荣誉
- 0
- 人气
- 0
- 在线时间
- 0 小时
- 评议
- 0
- 帖子
- 410
- 精华
- 0
- 积分
- 205
- 金钱
- 478
- 荣誉
- 0
- 人气
- 0
- 评议
- 0
|
将下面的代码保存为文件autoexec.lua
放到游戏安装目录目录下
比如 C:\Program Files\THQ\Company of Heroes\
修改游戏快捷方式,在命令行最后增加 -dev 参数
进入游戏后可以使用以下快捷键
鼠标中键 - 切换操作面板(不再同时隐藏指示标记)
F7 - 切换游戏画面上的指示标记
F8 - 切换FPS显示(游戏内部的FPS graph,比外挂软件准确)
Ctrl+W - 切换框架渲染模式
Ctrl+B - 切换大头模式
Ctrl+Up - 加速一倍,如果是减速状态,直接恢复为默认速度
Ctrl+Down - 减速一倍,如果是加速状态,直接恢复为默认速度
Ctrl+Left - 稍微减速
Ctrl+Right - 稍微加速
Ctrl+F - 镜头跟随选择单位移动
Ctrl+S - 超级抓屏(可以抓图4倍精度的截图)
File: autoexec.lua
- g_bShowTaskbar = 1
- g_bShowGameUI = 1
- function UpdateTaskbarAndGameUI()
- if (g_bShowTaskbar == 1) then
- taskbar_show()
- message_show()
- else
- taskbar_hide()
- message_hide()
- end
- if (g_bShowGameUI == 1) then
- game_showui()
- else
- game_hideui()
- end
- end
- function ToggleShowTaskbar()
- if (g_bShowTaskbar == 0) then
- g_bShowTaskbar = 1
- else
- g_bShowTaskbar = 0
- end
- UpdateTaskbarAndGameUI()
- end
- function ToggleShowGameUI()
- if (g_bShowGameUI == 0) then
- g_bShowGameUI = 1
- else
- g_bShowGameUI = 0
- end
- UpdateTaskbarAndGameUI()
- end
- g_bShowFPS = 0
- function ToggleShowFPS()
- if (g_bShowFPS == 0) then
- g_bShowFPS = 1
- statgraph_set_visible(1)
- statgraph_channel_set_enabled("fps",1)
- else
- g_bShowFPS = 0
- statgraph_channel_set_enabled("fps",0)
- statgraph_set_visible(0)
- end
- end
- function GameSpeed_Slower()
- if (getsimrate() > 3) then
- setsimrate(getsimrate() - 3)
- else
- setsimrate(1)
- end
- end
- function GameSpeed_Faster()
- if (getsimrate() < 197) then
- setsimrate(getsimrate() + 3)
- else
- setsimrate(200)
- end
- end
- function GameSpeed_Half()
- if (getsimrate() > 8) then
- setsimrate(8)
- else
- if (getsimrate() > 2) then
- setsimrate(getsimrate() / 2)
- else
- setsimrate(1)
- end
- end
- end
- function GameSpeed_Double()
- if (getsimrate() < 8) then
- setsimrate(8)
- else
- if (getsimrate() < 1000) then
- setsimrate(getsimrate() * 2)
- else
- setsimrate(2000)
- end
- end
- end
- function TakeSuperScreenShot()
- taskbar_hide()
- message_hide()
- Misc_SuperScreenshot()
- UpdateTaskbarAndGameUI()
- end
- bind("MouseMiddle", "ToggleShowTaskbar()")
- bind("F7", "ToggleShowGameUI()")
- bind("F8", "ToggleShowFPS()")
- bind("Control+B", "ee_bigheadmode()")
- bind("Control+W", "VIS_Wireframe()")
- bind("Control+X", "VIS_Overdraw()")
- bind("Control+Left", "GameSpeed_Slower()")
- bind("Control+Right", "GameSpeed_Faster()")
- bind("Control+Down", "GameSpeed_Half()")
- bind("Control+Up", "GameSpeed_Double()")
- bind("Control+F", "Camera_FollowSelection()")
- bind("Control+S", "TakeSuperScreenShot()")
复制代码
[ 本帖最后由 crt2005 于 2006-9-26 17:16 编辑 ] |
-
总评分: 金钱 + 15
查看全部评分
|