got numbers to the weapons

This commit is contained in:
ineedbots 2021-09-09 14:11:35 -06:00
parent 7edc57d381
commit 763a4ab52b
2 changed files with 50 additions and 62 deletions

View File

@ -138,48 +138,58 @@ init()
level.bots_fullautoguns["mp40"] = true;
level.bots_weapon_clip_sizes = [];
level.bots_weapon_clip_sizes["m1carbine_mp"] = 1;
level.bots_weapon_clip_sizes["m1garand_mp"] = 1;
level.bots_weapon_clip_sizes["bar_mp"] = 1;
level.bots_weapon_clip_sizes["shotgun_mp"] = 1;
level.bots_weapon_clip_sizes["thompson_mp"] = 1;
level.bots_weapon_clip_sizes["springfield_mp"] = 1;
level.bots_weapon_clip_sizes["sten_mp"] = 1;
level.bots_weapon_clip_sizes["enfield_mp"] = 1;
level.bots_weapon_clip_sizes["bren_mp"] = 1;
level.bots_weapon_clip_sizes["enfield_scope_mp"] = 1;
level.bots_weapon_clip_sizes["svt40_mp"] = 1;
level.bots_weapon_clip_sizes["pps42_mp"] = 1;
level.bots_weapon_clip_sizes["ppsh_mp"] = 1;
level.bots_weapon_clip_sizes["g43_mp"] = 1;
level.bots_weapon_clip_sizes["mosin_nagant_mp"] = 1;
level.bots_weapon_clip_sizes["mosin_nagant_sniper_mp"] = 1;
level.bots_weapon_clip_sizes["mp40_mp"] = 1;
level.bots_weapon_clip_sizes["kar98k_mp"] = 1;
level.bots_weapon_clip_sizes["kar98k_sniper_mp"] = 1;
level.bots_weapon_clip_sizes["mp44_mp"] = 1;
level.bots_weapon_clip_sizes["m1carbine_mp"] = 10;
level.bots_weapon_clip_sizes["m1garand_mp"] = 8;
level.bots_weapon_clip_sizes["bar_mp"] = 20;
level.bots_weapon_clip_sizes["shotgun_mp"] = 6;
level.bots_weapon_clip_sizes["thompson_mp"] = 20;
level.bots_weapon_clip_sizes["springfield_mp"] = 5;
level.bots_weapon_clip_sizes["sten_mp"] = 32;
level.bots_weapon_clip_sizes["enfield_mp"] = 10;
level.bots_weapon_clip_sizes["bren_mp"] = 30;
level.bots_weapon_clip_sizes["enfield_scope_mp"] = 10;
level.bots_weapon_clip_sizes["svt40_mp"] = 10;
level.bots_weapon_clip_sizes["pps42_mp"] = 35;
level.bots_weapon_clip_sizes["ppsh_mp"] = 71;
level.bots_weapon_clip_sizes["g43_mp"] = 10;
level.bots_weapon_clip_sizes["mosin_nagant_mp"] = 5;
level.bots_weapon_clip_sizes["mosin_nagant_sniper_mp"] = 5;
level.bots_weapon_clip_sizes["mp40_mp"] = 32;
level.bots_weapon_clip_sizes["kar98k_mp"] = 5;
level.bots_weapon_clip_sizes["kar98k_sniper_mp"] = 5;
level.bots_weapon_clip_sizes["mp44_mp"] = 30;
level.bots_weapon_clip_sizes["colt_mp"] = 7;
level.bots_weapon_clip_sizes["webley_mp"] = 6;
level.bots_weapon_clip_sizes["luger_mp"] = 7;
level.bots_weapon_clip_sizes["tt30_mp"] = 8;
level.bots_weapon_clip_sizes["greasegun_mp"] = 32;
level.bots_weapon_class_names = [];
level.bots_weapon_class_names["m1carbine_mp"] = "";
level.bots_weapon_class_names["m1garand_mp"] = "";
level.bots_weapon_class_names["bar_mp"] = "";
level.bots_weapon_class_names["shotgun_mp"] = "";
level.bots_weapon_class_names["thompson_mp"] = "";
level.bots_weapon_class_names["springfield_mp"] = "";
level.bots_weapon_class_names["sten_mp"] = "";
level.bots_weapon_class_names["enfield_mp"] = "";
level.bots_weapon_class_names["bren_mp"] = "";
level.bots_weapon_class_names["enfield_scope_mp"] = "";
level.bots_weapon_class_names["svt40_mp"] = "";
level.bots_weapon_class_names["pps42_mp"] = "";
level.bots_weapon_class_names["ppsh_mp"] = "";
level.bots_weapon_class_names["g43_mp"] = "";
level.bots_weapon_class_names["mosin_nagant_mp"] = "";
level.bots_weapon_class_names["mosin_nagant_sniper_mp"] = "";
level.bots_weapon_class_names["mp40_mp"] = "";
level.bots_weapon_class_names["kar98k_mp"] = "";
level.bots_weapon_class_names["kar98k_sniper_mp"] = "";
level.bots_weapon_class_names["mp44_mp"] = "";
level.bots_weapon_class_names["m1carbine_mp"] = "rifle";
level.bots_weapon_class_names["m1garand_mp"] = "rifle";
level.bots_weapon_class_names["bar_mp"] = "lmg";
level.bots_weapon_class_names["shotgun_mp"] = "spread";
level.bots_weapon_class_names["thompson_mp"] = "smg";
level.bots_weapon_class_names["springfield_mp"] = "sniper";
level.bots_weapon_class_names["sten_mp"] = "smg";
level.bots_weapon_class_names["enfield_mp"] = "sniper";
level.bots_weapon_class_names["bren_mp"] = "lmg";
level.bots_weapon_class_names["enfield_scope_mp"] = "sniper";
level.bots_weapon_class_names["svt40_mp"] = "rifle";
level.bots_weapon_class_names["pps42_mp"] = "smg";
level.bots_weapon_class_names["ppsh_mp"] = "smg";
level.bots_weapon_class_names["g43_mp"] = "rifle";
level.bots_weapon_class_names["mosin_nagant_mp"] = "sniper";
level.bots_weapon_class_names["mosin_nagant_sniper_mp"] = "sniper";
level.bots_weapon_class_names["mp40_mp"] = "smg";
level.bots_weapon_class_names["kar98k_mp"] = "sniper";
level.bots_weapon_class_names["kar98k_sniper_mp"] = "sniper";
level.bots_weapon_class_names["mp44_mp"] = "rifle";
level.bots_weapon_class_names["colt_mp"] = "pistol";
level.bots_weapon_class_names["webley_mp"] = "pistol";
level.bots_weapon_class_names["luger_mp"] = "pistol";
level.bots_weapon_class_names["tt30_mp"] = "pistol";
level.bots_weapon_class_names["greasegun_mp"] = "smg";
level thread fixGamemodes();

View File

@ -492,28 +492,6 @@ chooseRandomClass()
weap = "";
weapons = [];
/* weapons[weapons.size] = "greasegun_mp";
weapons[weapons.size] = "m1carbine_mp";
weapons[weapons.size] = "m1garand_mp";
weapons[weapons.size] = "bar_mp";
weapons[weapons.size] = "shotgun_mp";
weapons[weapons.size] = "thompson_mp";
weapons[weapons.size] = "springfield_mp";
weapons[weapons.size] = "sten_mp";
weapons[weapons.size] = "enfield_mp";
weapons[weapons.size] = "bren_mp";
weapons[weapons.size] = "enfield_scope_mp";
weapons[weapons.size] = "SVT40_mp";
weapons[weapons.size] = "PPS42_mp";
weapons[weapons.size] = "ppsh_mp";
weapons[weapons.size] = "g43_mp";
weapons[weapons.size] = "mosin_nagant_mp";
weapons[weapons.size] = "mosin_nagant_sniper_mp";
weapons[weapons.size] = "mp40_mp";
weapons[weapons.size] = "kar98k_mp";
weapons[weapons.size] = "kar98k_sniper_mp";
weapons[weapons.size] = "mp44_mp";*/
if ( self.team == "axis" )
{
weapons[weapons.size] = "mp40_mp";