1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-28 16:10:24 -05:00

Encounter: fix weapon restore

This commit is contained in:
Jbleezy
2023-04-23 01:20:08 -07:00
parent e98d1db7a1
commit 1ec53cc6b7
3 changed files with 71 additions and 58 deletions

View File

@ -2,6 +2,23 @@
#include common_scripts\utility;
#include maps\mp\zombies\_zm_utility;
init_player_offhand_weapons()
{
if ( !is_true( self.init_player_offhand_weapons_override ) )
{
if ( is_gametype_active( "zgrief" ) && is_true( self.player_initialized ) )
{
return;
}
}
init_player_lethal_grenade();
init_player_tactical_grenade();
init_player_placeable_mine();
init_player_melee_weapon();
init_player_equipment();
}
is_headshot( sweapon, shitloc, smeansofdeath )
{
if ( smeansofdeath == "MOD_MELEE" || smeansofdeath == "MOD_BAYONET" || smeansofdeath == "MOD_IMPACT" || smeansofdeath == "MOD_UNKNOWN" || smeansofdeath == "MOD_IMPACT" )
@ -241,7 +258,12 @@ get_current_zone( return_zone )
is_temporary_zombie_weapon( str_weapon )
{
return is_zombie_perk_bottle( str_weapon ) || str_weapon == level.revive_tool || str_weapon == "zombie_builder_zm" || str_weapon == "chalk_draw_zm" || str_weapon == "no_hands_zm" || str_weapon == level.machine_assets["packapunch"].weapon || issubstr( str_weapon, "_flourish" );
if ( isdefined( level.machine_assets["packapunch"] ) && isdefined( level.machine_assets["packapunch"].weapon ) && str_weapon == level.machine_assets["packapunch"].weapon )
{
return 1;
}
return is_zombie_perk_bottle( str_weapon ) || str_weapon == level.revive_tool || str_weapon == "zombie_builder_zm" || str_weapon == "chalk_draw_zm" || str_weapon == "no_hands_zm" || issubstr( str_weapon, "_flourish" );
}
wait_network_frame()