mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-07-08 12:58:13 -05:00
Move replaced functions into separate scripts
This commit is contained in:
23
scripts/zm/replaced/_zm_blockers.gsc
Normal file
23
scripts/zm/replaced/_zm_blockers.gsc
Normal file
@ -0,0 +1,23 @@
|
||||
#include maps\mp\_utility;
|
||||
#include common_scripts\utility;
|
||||
#include maps\mp\zombies\_zm_utility;
|
||||
|
||||
handle_post_board_repair_rewards( cost, zbarrier )
|
||||
{
|
||||
self maps/mp/zombies/_zm_stats::increment_client_stat( "boards" );
|
||||
self maps/mp/zombies/_zm_stats::increment_player_stat( "boards" );
|
||||
if ( isDefined( self.pers[ "boards" ] ) && ( self.pers[ "boards" ] % 10 ) == 0 )
|
||||
{
|
||||
self thread do_player_general_vox( "general", "reboard", 90 );
|
||||
}
|
||||
self maps/mp/zombies/_zm_pers_upgrades_functions::pers_boards_updated( zbarrier );
|
||||
self.rebuild_barrier_reward += cost;
|
||||
|
||||
self maps/mp/zombies/_zm_score::player_add_points( "rebuild_board", cost );
|
||||
self play_sound_on_ent( "purchase" );
|
||||
|
||||
if ( isDefined( self.board_repair ) )
|
||||
{
|
||||
self.board_repair += 1;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user