Skip to content
View in the app

A better way to browse. Learn more.

主视角中国

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

控制台命令

Featured Replies

#1 [翻译]BF2 控制台命令

控制台命令:

游戏中要打开BF2的控制台,只要按'~'键就可以了(就是按TAB上面那个键)。

打开后,要看命令的分类,可以按TAB两次。要看特别详细的子分类,进入该命令还是按两次TAB。例如进入renderer,然后按两次TAB,可以看到render的子分类命令。

下面是控制台命令的列表(不一定全):

Renderer Commands

renderer.drawHud [0,1] - 设置 (HUD)开或关.

renderer.drawConsole [0,1] - 如果设置为0,在游戏中不能进入控制台.

renderer.drawFps [0,1] - 在左上角显示当前的帧频率(FPS、帧/每秒) .

Game Commands

game.sayAll [string] - 对所有人说话(是不是和J键功能一样啊?)

game.sayTeam [number] [string] - 和队友说话(K键?)

game.lockFps [framerate] - 锁定帧频率到指定的数值

game.allowToggleFullscreen [0,1] - 如果设置为1,可以允许在全屏模式和窗口模式之间切换。(如果这样,是不是就可以一边打游戏,一边QQ聊天呢?)

game.toggleFullscreen - 在全屏模式和窗口模式直接切换(是不是和alt+enter的功能一样呢?)

Demo Commands

demo.recordDemo [demoname] - 开始记录当前游戏并保存为文件 demoname.bf2demo。目录在[游戏安装的驱动器 ]\Program Files\EA Games\Battlefield 2\mods\bf2\Demos directory

demo.stopRecording - 停止记录

demo.ShutdownDemo - 关闭记录

Localprofile Commands

localProfile.setName [name] - 设置当前帐号的名称

localProfile.setNick [nick] - 设置当前帐号的昵称

localProfile.setGamespyNick [GameSpyNick] - 设置Gamespy的登录名

localProfile.setEmail [email account] - 设置当前帐号的email地址

localProfile.setPassword [password] - 设置当前帐号的密码

localProfile.setNumTimesLoggedIn [number] - 设置当前帐号的登录次数

localProfile.setTotalPlayedTime [seconds] - 设置当前帐号的总游戏时间(作弊?)

localProfile.save -

localProfile.addDemoBookmark [ ] -

Globalsettings Commands

globalSettings.setDefaultUser [number] - 设置当前使用的配置(profile), 例如使用第一个配置,设置为0001, 第二个则是 0002 ,如此类推。.

Sv Commands

下面这些命令调整服务器的设置,特别是设置 Serversettings.con 文件,该文件在 \Documents and Settings\[username]\My Documents\Battlefield 2\Profiles\[profile]\ directory.

sv.allowNATNegotiation [0,1] -

sv.interface -

sv.timeBeforeRestarting [0,1] -

sv.autoBalanceTeam [0,1] -

sv.teamRatioPercent [0,1] -

sv.autoRecord [0,1] -

sv.demoIndexURL [address] -

sv.demoDownloadURL [address] -

sv.autoDemoHook -

sv.demoQuality -

sv.adminScript -

sv.sponsorText -

sv.sponsorLogoURL [address] -

sv.communityLogoURL [address] -

sv.radioSpamInterval -

sv.radioMaxSpamFlagCount -

sv.radioBlockedDurationTime [seconds] -

sv.useGlobalRank [0,1] -

sv.useGlobalUnlocks [0,1] -

Gamelogic Commands

gameLogic.togglePause - 暂停游戏.

Settingsmanager Commands

下面这些命令比较专业,好像是调试程序的,最好别试了。

SettingsManager.stringSet -

SettingsManager.boolSet -

SettingsManager.IntSet -

SettingsManager.floatSet -

SettingsManager.u32Set -

SettingsManager.stringGet -

SettingsManager.boolGet -

SettingsManager.intGet -

SettingsManager.foatGet -

SettingsManager.U32Get -

Inputdevices Commands

InputDevices.setInvertAxis -

InputDevices.setAxisScale -

Controlmap Commands

下面这些设置会使用到 Controls.con 文件,该文件位于 \Documents and Settings\[username]\My Documents\Battlefield 2\Profiles\[profile]\ directory.

controlMap.deleteControlMap -

controlMap.dump -

controlMap.setButtonRiseTime -

controlMap.SetButtonFallTime -

controlMap.SetDoubleTapTime -

controlMap.addAxisToAxisMapping [string] -

controlMap.addButtonsToAxisMapping [string] -

controlMap.addKeyAndButtonToAxisMapping [string] -

controlMap.addKeysToAxisMapping [string] -

controlMap.addButtonToTriggerMapping [string] -

controlMap.AddKeyToTriggerMapping [string] -

controlMap.setAxisScale -

controlMap.setYawFactor -

controlMap.setPitchFactor -

controlMap.addAxisToTriggerMapping -

controlMap.InvertMouse [0,1] - 1为鼠标反向,0为正常

controlMap.mouseSensitivity [number] - 鼠标的灵敏度

controlMap.keyboardSensitivity [number] -键盘的灵敏度

Maplist Commands

下面这些命令提供给服务器的管理员来管理地图列表。

These commands are used to manage lists of maps by server administrators.

mapList.list - 列出地图的ID,地图名,游戏模式和玩家数量等等。

mapList.configFile [new location for file] - 指定 _mapList.con 文件的位置. 默认位于 \My Documents\Battlefield 2\ServerConfigs\

mapList.load - 重新装载 _mapList.con

mapList.save -保存地图列表文件 _mapList.con

mapList.mapCount - 显示当前地图列表中的地图数量

mapList.currentMap - 显示当前正在玩的地图的ID

mapList.clear - 清理当前地图列表

mapList.remove [map ID number] - 从列表中删除指定的地图

mapList.append [map name] [game mode] [number of players] - 添加一个新地图到当前列表中,必须指定游戏模式和玩家数量。

mapList.insert [map ID number] [map name] [game mode] [number of players] - 和append相似,不过是ID指定的地图前插入。

Admin Commands

服务器管理员使用

admin.listPlayers - 列出当前连接到服务器的玩家,包括他们的名称和IP

admin.runNextLevel - 强行终止当前回合,开始下一个地图

admin.currentLevel - 显示当前玩的地图名称

admin.nextLevel - 显示下一地图的名称

admin.restartMap -重新开始当前地图

admin.banPlayer [player ID number] [timeout] - 禁止某玩家,输入玩家的ID,和禁止的时间。通过IP来识别的,即在指定的时间内,该玩家不能进入服务器了。时间的单位是秒,180即180秒,三分钟。

admin.banPlayerKey [player ID number] [timeout] - 也是禁止玩家,不过是通过cdkey来识别。该cdkey的玩家在指定的时间内不能进入,哪怕他换了IP,换了马甲。

admin.addAddressToBanList [iP address] [timeout] - 直接封IP

admin.addKeyToBanList [CD key hash] [timeout] -直接指定cdkey来封。

admin.removeAddressFromBanList [iP address] - 发慈悲,可以用这个命令把某玩家从禁止列表别删除,指定IP。

admin.removeKeyFromBanList [CD key hash] - 通过CDKey来解除。

admin.clearBanList - 大赦,所有被封的玩家都被赦免。

admin.listBannedAddresses - 列出被封的IP地址列表.

admin.listBannedKeys - 列出被封的CDKEY列表.

admin.kickPlayer [player ID number] - 踢人

命令行

在Windows中怎样设置游戏的启动命令,或者如何使用命令行,我就不多说了,不会的看一下windows的基础吧。

例如,要指定游戏以1280 ×1024的分辨率运行,可以在快捷连接中这样设置:

"C:\Program Files\EA Games\Battlefield 2\BF2.exe" +menu 1 +fullscreen 1 +szx 1280 +szy 1024

下面是其他一些参数

+dedicated - 开启纯服务器模式

+multi - 立刻进入多人游戏

+joinserver - 加入一个服务器,要指定服务器的IP或者服务器名

+playername - 设定玩家的名称

+password - 如果设置登录服务器的密码

+config - 指定ServerSettings.con的路径

+maplist - 指定 MapList.con文件的路径

+lowpriority - 游戏以低有限度运行(可能是让出更多的资源给其他程序吧?还没有搞明白)

+loadLevel - 装载的地图

+wx - 指定游戏窗口的位置,x轴

+wy - 指定游戏窗口的位置,y轴

+szx - 指定分辨率的宽度

+szy - 指定分辨率的高度

+fullscreen - 全屏运行

+nosound - 无声无息地游戏

+maxPlayers - 指定最大的玩家数量

+gameMode - 指定游戏模式

+modPath - 指定mod的路径 (默认是 /mods/bf2)

+help - 显示帮助

+playerPassword - 指定玩家帐号的密码

+playNow - Use PlayNow functionality

+port - Specifies the network port to be used

+pbPath - Set the path to use for PunkBuster on multi-instance configs

+hostServer -

+checkForAvailablePatch -

+checkForPatch -

+ai -

所有武器解锁

到目录 \Program Files\EA Games\Battlefield 2\python\bf2\stats 目录打开unlocks.py .

找到: defaultUnlocks = [0, 0, 0, 0, 0, 0, 0]

修改为: defaultUnlocks = [1, 1, 1, 1, 1, 1, 1]

截图

很简单,按PRTSCN (Print Screen) 键就可以了,文件存在 \Documents and Settings\[username]\My Documents\Battlefield 2\Screenshots\ 中

其他提示

1 Nvidia卡用户在游戏的时候发现地面贴图不对,请安装游戏自带的77.30驱动。ATI卡用户如果进不去游戏请检查是不是把DXT纹理压缩关闭了。

2 对于大多数显存只128MB的用户,把Texture(纹理)打到中比较合适。

3 如果你觉得游戏进入前的Logo和版权声明太多了,闲它浪费时间,你可以mods\bf2\Movies下除了modsbf2Movies,menu_loggedin.bik,noise.bik以外的文件改名就可以。

----如果要转载,请说明出自www.xforces.cn啊,谢谢-----

Create an account or sign in to comment

Account

Navigation

搜索

搜索

设置浏览器推送通知

Chrome(安卓)
  1. 点击地址栏旁边的锁形图标。
  2. 点击 权限 → 通知
  3. 根据需要调整通知设置。
Chrome(桌面)
  1. 点击地址栏中的锁形图标。
  2. 选择 网站设置
  3. 找到 通知,然后根据需要调整设置。