mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-10 23:27:57 -05:00
Pack-a-Punch: remove random reticles
This commit is contained in:
@ -59,6 +59,7 @@ main()
|
||||
replaceFunc(maps\mp\zombies\_zm_blockers::player_fails_blocker_repair_trigger_preamble, scripts\zm\replaced\_zm_blockers::player_fails_blocker_repair_trigger_preamble);
|
||||
replaceFunc(maps\mp\zombies\_zm_weapons::init_weapon_upgrade, scripts\zm\replaced\_zm_weapons::init_weapon_upgrade);
|
||||
replaceFunc(maps\mp\zombies\_zm_weapons::add_dynamic_wallbuy, scripts\zm\replaced\_zm_weapons::add_dynamic_wallbuy);
|
||||
replaceFunc(maps\mp\zombies\_zm_weapons::get_pack_a_punch_weapon_options, scripts\zm\replaced\_zm_weapons::get_pack_a_punch_weapon_options);
|
||||
replaceFunc(maps\mp\zombies\_zm_weapons::weapon_give, scripts\zm\replaced\_zm_weapons::weapon_give);
|
||||
replaceFunc(maps\mp\zombies\_zm_weapons::ammo_give, scripts\zm\replaced\_zm_weapons::ammo_give);
|
||||
replaceFunc(maps\mp\zombies\_zm_weapons::get_upgraded_ammo_cost, scripts\zm\replaced\_zm_weapons::get_upgraded_ammo_cost);
|
||||
|
@ -314,6 +314,34 @@ lethal_grenade_update_prompt(player)
|
||||
return 1;
|
||||
}
|
||||
|
||||
get_pack_a_punch_weapon_options(weapon)
|
||||
{
|
||||
if (!isdefined(self.pack_a_punch_weapon_options))
|
||||
self.pack_a_punch_weapon_options = [];
|
||||
|
||||
if (!is_weapon_upgraded(weapon))
|
||||
return self calcweaponoptions(0, 0, 0, 0, 0);
|
||||
|
||||
if (isdefined(self.pack_a_punch_weapon_options[weapon]))
|
||||
return self.pack_a_punch_weapon_options[weapon];
|
||||
|
||||
smiley_face_reticle_index = 1;
|
||||
base = get_base_name(weapon);
|
||||
camo_index = 39;
|
||||
|
||||
if ("zm_prison" == level.script)
|
||||
camo_index = 40;
|
||||
else if ("zm_tomb" == level.script)
|
||||
camo_index = 45;
|
||||
|
||||
lens_index = 0;
|
||||
reticle_index = 0;
|
||||
reticle_color_index = 0;
|
||||
|
||||
self.pack_a_punch_weapon_options[weapon] = self calcweaponoptions(camo_index, lens_index, reticle_index, reticle_color_index);
|
||||
return self.pack_a_punch_weapon_options[weapon];
|
||||
}
|
||||
|
||||
weapon_give(weapon, is_upgrade, magic_box, nosound)
|
||||
{
|
||||
primaryweapons = self getweaponslistprimaries();
|
||||
|
Reference in New Issue
Block a user