|
|
|
游戏中要打开BF2的控制台,只要按'~'键就可以了(就是按TAB上面那个键)。# i( q$ _, Y. k. L
打开后,要看命令的分类,可以按TAB两次。要看特别详细的子分类,进入该命令还是按两次TAB。例如进入renderer,然后按两次TAB,可以看到render的子分类命令。
" f5 Z6 }( L% V# G7 q3 J: W3 n 下面是控制台命令的列表(不一定全):: U5 f! D K/ K" m% ~) S6 I4 p
Renderer Commands+ c( B: `3 C/ D2 b
renderer.drawHud [0,1] - 设置 (HUD)开或关.4 w7 s- F0 E! z: B
renderer.drawConsole [0,1] - 如果设置为0,在游戏中不能进入控制台.
% `6 m' L, y) {renderer.drawFps [0,1] - 在左上角显示当前的帧频率(FPS、帧/每秒) .
2 ]) q; N0 ~/ S8 xGame Commands2 u4 ?( t W0 U
game.sayAll [string] - 对所有人说话(是不是和J键功能一样啊?)& h* `+ Z, l D& e. K0 D
game.sayTeam [number] [string] - 和队友说话(K键?)
3 b9 _, o; B" Q" R* i- @: [# zgame.lockFps [framerate] - 锁定帧频率到指定的数值
9 P# ]' G- a4 rgame.allowToggleFullscreen [0,1] - 如果设置为1,可以允许在全屏模式和窗口模式之间切换。(如果这样,是不是就可以一边打游戏,一边QQ聊天呢?)
: k7 W n- r, @' Y) d4 r- k- qgame.toggleFullscreen - 在全屏模式和窗口模式直接切换(是不是和alt+enter的功能一样呢?)
2 F' u- |$ |, j4 H: T/ zDemo Commands
. {) k0 |$ |+ G) c( gdemo.recordDemo [demoname] - 开始记录当前游戏并保存为文件 demoname.bf2demo。目录在[游戏安装的驱动器 ]\Program Files\EA Games\Battlefield 2\mods\bf2\Demos directory
6 N1 h% I( K7 ?2 a) Sdemo.stopRecording - 停止记录
+ W# T2 E' H8 d( Idemo.ShutdownDemo - 关闭记录7 A4 y H% B6 q3 R7 W, E
Localprofile Commands1 |3 A1 F2 J: O" K
localProfile.save -
; @* Q8 k+ E/ q; _localProfile.addDemoBookmark [ ] -
1 Y/ u9 t" k0 I( I# iGlobalsettings Commands
. k# F& b, V: t8 HSv Commands8 [; u+ v9 r! V5 x; {& l
sv.allowNATNegotiation [0,1] -, i2 x5 h9 f; {" Y! S
sv.interface -& B" q! ^$ }6 ^1 V- D. `! M1 Y
sv.timeBeforeRestarting [0,1] -
0 K- t9 [, [' e, O7 a+ y2 g6 tsv.autoBalanceTeam [0,1] -3 {& u. s ^' o# h' W, e
sv.teamRatioPercent [0,1] -
4 P2 `3 r0 E, msv.autoRecord [0,1] -
. T$ ~+ g' l) Xsv.demoIndexURL [address] -: B% J+ \! U( M( Q! q, a
sv.demoDownloadURL [address] -
3 B6 K$ n4 T6 Z+ l9 ~9 j) {; jsv.autoDemoHook -3 Z1 C! w' p2 s& q$ Z2 c
sv.demoQuality -
& f' Q' ~0 \. D+ y' ? Gsv.adminScript -6 U7 @/ E% J0 ?! q
sv.sponsorText -! Q' f, v! A3 L% ?
sv.sponsorLogoURL [address] -% s6 C$ f+ U+ _- g
sv.radioSpamInterval -
$ o$ s6 h1 ]0 ] c7 ?5 [: f/ Rsv.radioMaxSpamFlagCount -
3 ?8 J$ C1 A1 S4 \# j1 }0 Fsv.radioBlockedDurationTime [seconds] -" e+ x# ^ E/ @. K3 e
sv.useGlobalRank [0,1] -
: T. z8 C% |6 z, w+ V& Nsv.useGlobalUnlocks [0,1] -
$ c- Y7 d0 p0 |. tGamelogic Commands; b4 w/ @5 N" ^) p7 q6 V
gameLogic.togglePause - 暂停游戏.
0 _/ L; w1 p" m7 ESettingsmanager Commands
! u' d8 z2 @: o" ]% r下面这些命令比较专业,好像是调试程序的,最好别试了。. y3 N: j% G2 n; b5 T6 W
SettingsManager.stringSet -
7 O0 T% _( v/ g! o/ OSettingsManager.boolSet -! [- j: I W6 J6 P$ W3 l- @, b
SettingsManager.IntSet -/ |; L. O8 C% z4 Q0 m
SettingsManager.floatSet -
6 n5 u P; M" X; d1 ?1 ]SettingsManager.u32Set -
& _7 A5 j9 j0 XSettingsManager.stringGet -
, r9 o7 i" h, K6 nSettingsManager.boolGet -8 l* N- p# V9 u" }1 U" E) q
SettingsManager.intGet -+ L! N$ r: B; ^# l7 g
SettingsManager.foatGet -0 s6 D; J0 Q* P e$ G) y3 D
SettingsManager.U32Get -* N8 e* m2 Q! ?
Inputdevices Commands) ^; Y+ f' D+ M! l' s, N9 o# N
Controlmap Commands+ e+ f3 K: O6 g N
controlMap.deleteControlMap -
! A0 ~2 q5 O% I. m; |; x/ LcontrolMap.dump -
' k b' _4 p0 X9 c$ fcontrolMap.SetButtonFallTime -
! E- v% P: |. vcontrolMap.SetDoubleTapTime -/ x+ T( R- e; ^% j& h# `) C
controlMap.addAxisToAxisMapping [string] -
# y- Q3 ?0 \ s9 d1 F/ u6 ccontrolMap.addButtonsToAxisMapping [string] -3 \% Z) k2 p" [
controlMap.addKeyAndButtonToAxisMapping [string] -3 O; B n# u R. }9 I4 `/ r, h
controlMap.addKeysToAxisMapping [string] -: M7 e$ K, Z( k5 P3 t4 [- d# @
controlMap.addButtonToTriggerMapping [string] -4 x& C' L! w0 P# M
controlMap.AddKeyToTriggerMapping [string] -9 j3 B( ?6 G4 ]5 @: r5 s
controlMap.addAxisToTriggerMapping -
0 o4 m5 l# y9 [1 c5 xcontrolMap.InvertMouse [0,1] - 1为鼠标反向,0为正常9 y7 N; _3 Q$ F1 V' u+ h1 Z
controlMap.mouseSensitivity [number] - 鼠标的灵敏度
6 ^- f3 f `4 U/ hcontrolMap.keyboardSensitivity [number] -键盘的灵敏度
3 K* U" X0 W- X- p ^Maplist Commands x8 m5 R9 |, d: U5 _4 r
下面这些命令提供给服务器的管理员来管理地图列表。
/ Q3 m1 [5 ^7 ~# V eThese commands are used to manage lists of maps by server administrators.' V! L! R3 q% O) ?
mapList.list - 列出地图的ID,地图名,游戏模式和玩家数量等等。
# Q# a0 V5 w" C+ ?mapList.mapCount - 显示当前地图列表中的地图数量
" R* v, k: O& H* j% MmapList.currentMap - 显示当前正在玩的地图的ID
/ d. {* e# H9 I3 QmapList.clear - 清理当前地图列表/ j' N/ V0 v, R2 P a p0 L
mapList.remove [map ID number] - 从列表中删除指定的地图
; p8 }* V# l \5 b4 UmapList.append [map name] [game mode] [number of players] - 添加一个新地图到当前列表中,必须指定游戏模式和玩家数量。
9 T9 C4 A- D& P2 j* omapList.insert [map ID number] [map name] [game mode] [number of players] - 和append相似,不过是ID指定的地图前插入。- r+ L2 M- ?$ F1 A! q" |- g
Admin Commands
8 n) X2 Z% d8 v' F5 h" W服务器管理员使用
2 V9 E6 X$ s/ Radmin.listPlayers - 列出当前连接到服务器的玩家,包括他们的名称和IP2 ?$ |# l" q7 O( \6 l
admin.runNextLevel - 强行终止当前回合,开始下一个地图
* p: |0 t, q/ R/ wadmin.currentLevel - 显示当前玩的地图名称" t3 {7 }# n, F6 h# ]
admin.nextLevel - 显示下一地图的名称1 z) |6 h2 @# B3 Q* p* p
admin.restartMap -重新开始当前地图% [5 n* t8 a4 g8 }
admin.banPlayer [player ID number] [timeout] - 禁止某玩家,输入玩家的ID,和禁止的时间。通过IP来识别的,即在指定的时间内,该玩家不能进入服务器了。时间的单位是秒,180即180秒,三分钟。6 L' K5 Q+ P- M6 x9 v8 @
admin.banPlayerKey [player ID number] [timeout] - 也是禁止玩家,不过是通过cdkey来识别。该cdkey的玩家在指定的时间内不能进入,哪怕他换了IP,换了马甲。
' }9 W3 y" A0 J& oadmin.addAddressToBanList [IP address] [timeout] - 直接封IP( W. I+ [4 ^- K; p4 S4 z
admin.addKeyToBanList [CD key hash] [timeout] -直接指定cdkey来封。
8 g! I( \; f9 ]4 @7 q* Y$ O, ]admin.removeAddressFromBanList [IP address] - 发慈悲,可以用这个命令把某玩家从禁止列表别删除,指定IP。
8 }% J' x# s. A- \3 Badmin.removeKeyFromBanList [CD key hash] - 通过CDKey来解除。
1 X& a) [. Q# h' n; D# [- r2 badmin.clearBanList - 大赦,所有被封的玩家都被赦免。; [7 O5 p8 m: |
admin.listBannedAddresses - 列出被封的IP地址列表.
8 U% X: V% R" B& F; W1 l7 radmin.listBannedKeys - 列出被封的CDKEY列表.
* L1 x! v' U& o6 M& Nadmin.kickPlayer [player ID number] - 踢人" y# P4 K n9 L% F. f1 _! c
命令行
; m4 ?. d1 b7 ?0 m1 B1 a, n在Windows中怎样设置游戏的启动命令,或者如何使用命令行,我就不多说了,不会的看一下windows的基础吧。8 V0 K9 [0 m- [0 f, g8 ]9 S7 |
例如,要指定游戏以1280 ×1024的分辨率运行,可以在快捷连接中这样设置:3 J0 P1 P7 j" Q
"C:\Program Files\EA Games\Battlefield 2\BF2.exe" +menu 1 +fullscreen 1 +szx 1280 +szy 1024
7 h3 p/ Q- ^# X2 F% k( R1 Y3 ]% R9 [下面是其他一些参数4 [. Z, Z* Z1 t
+dedicated - 开启纯服务器模式' E) U' i- p% i' O* G7 w
+multi - 立刻进入多人游戏, z2 w( T5 g! }3 o% Y6 a* r7 @9 T
+joinserver - 加入一个服务器,要指定服务器的IP或者服务器名3 ]$ |5 L; C; P- ~; e
+playername - 设定玩家的名称: r% E9 n8 v3 t+ [: c; y
+password - 如果设置登录服务器的密码* v/ O Y1 x9 p
+lowpriority - 游戏以低有限度运行(可能是让出更多的资源给其他程序吧?还没有搞明白)
, V+ @: O3 _ o. {+ g" ]; X1 A9 }+loadLevel - 装载的地图
4 o6 n, P# Y8 C, a, ?+wx - 指定游戏窗口的位置,x轴1 f1 R& d7 G# p: R( e: y
+wy - 指定游戏窗口的位置,y轴7 g4 W2 \7 ]2 P- o9 c) o# _
+szx - 指定分辨率的宽度
, p( X5 x! B9 ^/ B; o+szy - 指定分辨率的高度
) z; ?. M. ^- E" z9 {+fullscreen - 全屏运行- s( q0 G$ _8 [8 e
+nosound - 无声无息地游戏
# J; N6 o1 M+ C! u( {+maxPlayers - 指定最大的玩家数量& e# e% d! `1 c: N- ?* [
+gameMode - 指定游戏模式" c, _- x$ N0 {$ ~
+modPath - 指定mod的路径 (默认是 /mods/bf2)
2 ?1 j- s; z& X; ]+help - 显示帮助
- |8 k2 k* F' a# E1 U0 O2 ]& I: d+playerPassword - 指定玩家帐号的密码% H( T1 f& r5 |, D
+playNow - Use PlayNow functionality
" O; Y& s* z1 l, _+port - Specifies the network port to be used
" D! V! @! S1 A+pbPath - Set the path to use for PunkBuster on multi-instance configs- J: _5 Y( y+ f- p; ^' I) M
+hostServer -8 ^9 ? y& {- I! H! W( p! l4 n
+checkForAvailablePatch -
/ X; U @( N& H; {& \( g+checkForPatch -
" K" W+ j+ {1 p( g; N! ^9 k& r! }+ai -
- n* _+ F2 n" d) V9 t- d所有武器解锁
, h: @0 t8 j! C2 ?1 w4 s8 e# E到目录 \Program Files\EA Games\Battlefield 2\python\bf2\stats 目录打开unlocks.py .
6 h9 b. p* r, t3 B9 G3 b找到: defaultUnlocks = [0, 0, 0, 0, 0, 0, 0]1 a0 H, U: S, w$ ~
修改为: defaultUnlocks = [1, 1, 1, 1, 1, 1, 1] u3 Q( ?" F+ N7 U! i0 v
截图3 r* G9 O2 A% ]1 J: [
很简单,按PRTSCN (Print Screen) 键就可以了,文件存在 \Documents and Settings\[username]\My Documents\Battlefield 2\Screenshots\ 中% \& x: p8 Z& ^9 T# ~: R7 M; _3 Z
" C" s! e, \3 r L0 W
|
|