永发信息网

战地2v1.0有几种解锁武器如题 谢谢了

答案:1  悬赏:30  手机版
解决时间 2021-02-10 04:13
战地2v1.0有几种解锁武器如题 谢谢了
最佳答案
每个兵种有1个解锁武器。打开路径:Battlefield 2\python\bf2\stats的unlocks文件复制以下文字便可.import host import bf2.PlayerManager from bf2.stats.constants import * from bf2 import g_debug # map gamespy item ids to kits unlockItemMap = { 11 : 0, 22 : 1, 33 : 2, 44 : 3, 55 : 4, 66 : 5, 77 : 6, } sessionPlayerUnlockMap = {} def init(): # Events host.registerHandler('PlayerConnect', onPlayerConnect, 1) if bf2.serverSettings.getUseGlobalUnlocks(): host.registerHandler('PlayerUnlocksResponse', onUnlocksResponse, 1) # Connect already connected players if reinitializing for p in bf2.playerManager.getPlayers(): onPlayerConnect(p) if g_debug: print "Unlock module initialized" class UnlockSet: pass def onPlayerConnect(player): defaultUnlocks = [1, 1, 1, 1, 1, 1, 1] host.pers_plrSetUnlocks(player.index, defaultUnlocks, defaultUnlocks) if not player.isAIPlayer(): id = player.index reconnect = id in sessionPlayerUnlockMap # always get new unlocks on reconnect/map restart/map change etc if reconnect: del sessionPlayerUnlockMap[id] newUnlockSet = UnlockSet() newUnlockSet.unlockLevel = {} for i in range(0, NUM_KIT_TYPES): newUnlockSet.unlockLevel[i] = 0 sessionPlayerUnlockMap[id] = newUnlockSet player.unlocks = sessionPlayerUnlockMap[id] if bf2.serverSettings.getUseGlobalUnlocks(): if player.getProfileId() > 2000: success = host.pers_plrRequestUnlocks(player.index, 1) if not success: if g_debug: print "Failed requesting unlocks" else: if g_debug: print "Player %d had no profile id, can't request unlocks" % player.index if g_debug: print "Added player %d to unlock checking" % (player.index) def onUnlocksResponse(succeeded, player, unlocks): if not succeeded: print "Unlocks request failed for player %d %d: %s" % (player.index, player.getName(), unlocks) return print "Unlocks received for player ", player.getName(), "(",player.index, ") : ", unlocks # translate gamespy item vector into a kit-based unlock vector handled by game kitUnlocks = [0, 0, 0, 0, 0, 0, 0] for item in unlocks: if item in unlockItemMap: kitUnlocks[unlockItemMap[item]] = 1 if g_debug: print "Kit unlocks: ", kitUnlocks #We do not yet support giving different unlocks to different teams host.pers_plrSetUnlocks(player.index, kitUnlocks, kitUnlocks)
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
西大附中、八中、三十三中、沛鸿哪个高中部比
汽车按揭贷款首付多少
红色泰迪幼犬头顶和胸前都有小面积白毛,换毛
三星NX2000怎么样?三星NX2000好吗
【美的一】美的一瞬间作文
充电宝充电没反应是不是连接口不稳定
飞猪旅行可以机场打机票吗
灯泡外面包上普通塑料,会着火吗?原因
四川能达建筑工程有限公司地址在哪,我要去那
0.125的20次方是多少
昨晚梦到自己的脚被蛇咬伤,请问是什么意思?
下列操作中,不属于鼠标基本操作的是( ) 。
普明寺地址有知道的么?有点事想过去
report card和transcript的区别?
我妈四十多岁跟人走了她还会回来吗
推荐资讯
光影空间聚会别墅地址好找么,我有些事要过去
为什么有时候网页怎么都打不开,只有断网重连
怎么卸载午夜影院。
怎样查找建筑工程人员信息通讯录?我是做电销
元木村怎么去啊,有知道地址的么
寻找类似金达莱花和吉拉拉类似的战歌,多多益
求asp带MSSQL开发的打包制作软件
启迪幼儿园地址有知道的么?有点事想过去
求唐嫣邱泽主演的《爱情睡醒了》云盘连接,百
上海大众的朗逸和丰田的卡罗拉哪个好?请指点
酷睿2双核E7300 这CPU好吗?
计算机专业做硬件还是软件好些?
正方形一边上任一点到这个正方形两条对角线的
阴历怎么看 ?