CS常见问题汇集解答帖《转自CCSK》
6、调整BotWeapons.cfg,限制Bot使用的枪械
用Windows自带的“记事本”打开BotWeapons.cfg,注意以下部分参数的设置。(修改前应做好备份)
以下是武器在设置中的顺序的说明,0-22对应着各种武器。0:刀具类;1-6:手枪类;7-8:霰弹枪类;9-13:冲锋枪类;14-21:步枪类;22:机枪类。请记住他们各自处的位置顺序。
# Numbering of the weapons:
# 0 - KNIFE
# 1 - USP
# 2 - GLOCK18
# 3 - DEAGLE
# 4 - P228
# 5 - ELITE
# 6 - FIVESEVEN
# 7 - WEAPON_M3
# 8 - XM1014
# 9 - MP5NAVY
# 10 - TMP
# 11 - P90
# 12 - MAC10
# 13 - UMP45
# 14 - AK47
# 15 - SG552
# 16 - M4A1
# 17 - AUG
# 18 - SCOUT
# 19 - AWP
# 20 - G3SG1
# 21 - SG550
# 22 - M249
找到以下几行,-1=禁止双方购买此武器。0=仅恐怖分子能够购买。1=仅反恐怖组织能购买。2=双方都能购买。据此,你可以对下面提供的进行修改,限制Bot所购买的枪械
# -1 = Disallow Buying for any Team
# 0 = Terrorist Team only
# 1 = CT Team only
# 2 = Can be bought by both Teams
# Standard Weapon Tab for CS & DE Maps
[STANDARD]
-1,-1,-1,2,2,0,1,2,2,2,1,2,0,2,0,0,1,1,2,2,0,1,2
# Weapon Tab for AS Maps
[AS]
-1,-1,-1,2,2,0,1,1,1,1,1,1,0,2,0,0,1,1,2,0,0,1,1
# Escape & Knife Arena Maps aren't supported by CS and
# so I don't care about them in POD-Bot neither !
# Some example Tables:
# Pistols Only(双方仅能购买手枪)
#-1,-1,-1,2,2,0,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
# Shotguns Only(双方仅能购买霰弹枪)
#-1,-1,-1,-1,-1,-1,-1,2,2,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
# SubMachine-Guns Only(双方仅能购买冲锋枪)
#-1,-1,-1,-1,-1,-1,-1,-1,-1,2,2,2,2,2,-1,-1,-1,-1,-1,-1,-1,-1,-1
# The following Tables stores the Weapon Priorities of the Bots depending on
# Personality (it affects buying & picking up better weapons from the
# ground).
# Weapon Priorities for a Normal Standard Bot
[NORMAL]
0,1,2,5,4,6,3,7,8,18,10,12,13,11,9,22,19,20,21,14,15,16,17
# Weapon Priorities for an Agressive Bot
[AGRESSIVE]
0,1,2,4,6,5,3,18,19,20,21,10,12,13,11,9,7,8,16,15,17,14,22
# Weapon Priorities for a Defensive Bot
[DEFENSIVE]
0,1,2,5,4,6,3,7,8,10,12,13,11,9,22,14,16,15,17,18,21,20,19