战地2142怎么添加电脑人
非要在官方模组上加bot,要改代码。
在2142游戏目录里找到mods文件夹→bf2142→AI,把aidefault.ai原始文件复制粘贴一份作为备份(可以给备份改个名字)。打开aidefault.ai,然后全选里边的内容把下边代码粘贴进去,保存。
echo *****************************************************************************************
echo AIDefault.ai ****************************************************************************
echo *****************************************************************************************
aiSettings.setNSides 2
aiSettings.setAutoSpawnBots 1
aiSettings.setMaxNAutoControllers 64
aiSettings.maxBotsIncludeHumans 1
aiSettings.setMaxNBots 64
aiSettings.setBotSkill 0.4
rem To spawn more than 15 bots in SP, use the following lines instead of the three lines above.
rem Note that this is totaly unsupported, it will affect your system's performance
rem and may even crash your game. That being said, you will most likely be able to run a lot
rem more bots than 15 on your system.
rem Example for 32 bot game with expert bots
begin
aiSettings.overrideMenuSettings 1
aiSettings.maxBotsIncludeHumans 0
aiSettings.setMaxNBots 64
aiSettings.setBotSkill 1.0
end
run BotNames.ai
aiSettings.setInformationGridDimension 32
aiSettings.setDiscoverCloakedEnemiesDistance 3.0
run AIPathFinding.ai
run AutoControllers.ai
rem EOF
保存好就可以关掉文件、文件夹去战斗了。
推荐去下个模组,比如泰坦模组(必应搜索2142 titan lite2。只能打地面机器人,不能进行泰坦内部的攻防战),单人模组(2142 single Player mod)。这两个模组除了bot挺多,而且都把解锁武器拉出来用了,但是找不到手雷,手枪和刀子,只有烟雾弹或EMP。...
6370