您的位置首页百科知识

战地2的1.5版本怎么解锁隐藏武器?

战地2的1.5版本怎么解锁隐藏武器?

的有关信息介绍如下:

战地2的1.5版本怎么解锁隐藏武器?

战闷瞎旅地2隐藏武器解锁方法打开路径:Battlefield2\神芦python\bf2\stats的unlocks文件复制以下蚂凳文字便可importhostimportbf2.PlayerManagerfrombf2.stats.constantsimport*frombf2importg_debug#mapgamespyitemidstokitsunlockItemMap={11:0,22:1,33:2,44:3,55:4,66:5,77:6,}sessionPlayerUnlockMap={}definit():#Eventshost.registerHandler('PlayerConnect',onPlayerConnect,1)ifbf2.serverSettings.getUseGlobalUnlocks():host.registerHandler('PlayerUnlocksResponse',onUnlocksResponse,1)#Connectalreadyconnectedplayersifreinitializingforpinbf2.playerManager.getPlayers():onPlayerConnect(p)ifg_debug:print"Unlockmoduleinitialized"classUnlockSet:passdefonPlayerConnect(player):defaultUnlocks=[1,1,1,1,1,1,1]host.pers_plrSetUnlocks(player.index,defaultUnlocks,defaultUnlocks)ifnotplayer.isAIPlayer():id=player.indexreconnect=idinsessionPlayerUnlockMap