mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-10 07:08:06 -05:00
Optimize _zm_magicbox::weapon_is_dual_wield
This commit is contained in:
@ -67,6 +67,7 @@ main()
|
||||
replaceFunc(maps\mp\zombies\_zm_magicbox::decide_hide_show_hint, scripts\zm\replaced\_zm_magicbox::decide_hide_show_hint);
|
||||
replaceFunc(maps\mp\zombies\_zm_magicbox::trigger_visible_to_player, scripts\zm\replaced\_zm_magicbox::trigger_visible_to_player);
|
||||
replaceFunc(maps\mp\zombies\_zm_magicbox::can_buy_weapon, scripts\zm\replaced\_zm_magicbox::can_buy_weapon);
|
||||
replaceFunc(maps\mp\zombies\_zm_magicbox::weapon_is_dual_wield, scripts\zm\replaced\_zm_magicbox::weapon_is_dual_wield);
|
||||
replaceFunc(maps\mp\zombies\_zm_perks::init, scripts\zm\replaced\_zm_perks::init);
|
||||
replaceFunc(maps\mp\zombies\_zm_perks::vending_trigger_think, scripts\zm\replaced\_zm_perks::vending_trigger_think);
|
||||
replaceFunc(maps\mp\zombies\_zm_perks::perk_give_bottle_end, scripts\zm\replaced\_zm_perks::perk_give_bottle_end);
|
||||
|
@ -954,4 +954,9 @@ can_buy_weapon()
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
weapon_is_dual_wield(name)
|
||||
{
|
||||
return weapondualwieldweaponname(name) != "none";
|
||||
}
|
Reference in New Issue
Block a user