1
0
mirror of https://github.com/JezuzLizard/BO2-Reimagined.git synced 2025-06-27 23:50:41 -05:00

Barriers can no longer be rebuilt while sprinting or thowing a grenade

This commit is contained in:
Jbleezy
2023-04-19 17:07:47 -07:00
parent bf42cb8e32
commit 691c06ad55
3 changed files with 29 additions and 0 deletions

View File

@ -62,6 +62,7 @@
* Increased mantle speed * Increased mantle speed
* Increased ladder climb speed * Increased ladder climb speed
* Start with Semtex on maps that have Semtex * Start with Semtex on maps that have Semtex
* Barriers can no longer be rebuilt while sprinting or thowing a grenade
* Entering and exiting last stand no longer refills last stand weapon clip automatically * Entering and exiting last stand no longer refills last stand weapon clip automatically
* Upgraded weapon camo is applied in last stand * Upgraded weapon camo is applied in last stand
* Decreased friendly player name fade out time from 1.5 seconds to 0.25 seconds * Decreased friendly player name fade out time from 1.5 seconds to 0.25 seconds

View File

@ -11,6 +11,7 @@
#include scripts\zm\replaced\_zm_utility; #include scripts\zm\replaced\_zm_utility;
#include scripts\zm\replaced\_zm_score; #include scripts\zm\replaced\_zm_score;
#include scripts\zm\replaced\_zm_laststand; #include scripts\zm\replaced\_zm_laststand;
#include scripts\zm\replaced\_zm_blockers;
#include scripts\zm\replaced\_zm_weapons; #include scripts\zm\replaced\_zm_weapons;
#include scripts\zm\replaced\_zm_magicbox; #include scripts\zm\replaced\_zm_magicbox;
#include scripts\zm\replaced\_zm_perks; #include scripts\zm\replaced\_zm_perks;
@ -61,6 +62,7 @@ main()
replaceFunc(maps\mp\zombies\_zm_laststand::revive_give_back_weapons, scripts\zm\replaced\_zm_laststand::revive_give_back_weapons); replaceFunc(maps\mp\zombies\_zm_laststand::revive_give_back_weapons, scripts\zm\replaced\_zm_laststand::revive_give_back_weapons);
replaceFunc(maps\mp\zombies\_zm_laststand::revive_hud_think, scripts\zm\replaced\_zm_laststand::revive_hud_think); replaceFunc(maps\mp\zombies\_zm_laststand::revive_hud_think, scripts\zm\replaced\_zm_laststand::revive_hud_think);
replaceFunc(maps\mp\zombies\_zm_laststand::auto_revive, scripts\zm\replaced\_zm_laststand::auto_revive); replaceFunc(maps\mp\zombies\_zm_laststand::auto_revive, scripts\zm\replaced\_zm_laststand::auto_revive);
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::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::add_dynamic_wallbuy, scripts\zm\replaced\_zm_weapons::add_dynamic_wallbuy);
replaceFunc(maps\mp\zombies\_zm_weapons::weapon_give, scripts\zm\replaced\_zm_weapons::weapon_give); replaceFunc(maps\mp\zombies\_zm_weapons::weapon_give, scripts\zm\replaced\_zm_weapons::weapon_give);

View File

@ -20,4 +20,30 @@ handle_post_board_repair_rewards( cost, zbarrier )
{ {
self.board_repair += 1; self.board_repair += 1;
} }
}
player_fails_blocker_repair_trigger_preamble( player, players, trigger, hold_required )
{
if ( !isdefined( trigger ) )
return true;
if ( !is_player_valid( player ) )
return true;
if ( players.size == 1 && isdefined( players[0].intermission ) && players[0].intermission == 1 )
return true;
if ( hold_required && !player usebuttonpressed() )
return true;
if ( !hold_required && !player use_button_held() )
return true;
if ( player in_revive_trigger() )
return true;
if ( player issprinting() || player isthrowinggrenade() )
return true;
return false;
} }