mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-09 23:02:53 -05:00
Grief: unlimited barrier rebuild points
This commit is contained in:
@ -228,6 +228,7 @@
|
||||
* 0.5 second zombie spawn rate
|
||||
* Only sprinting zombies
|
||||
* Every player starts each round with at least 10000 points
|
||||
* Unlimited barrier rebuild points
|
||||
* Decreased stun time by enemy players from 0.75 seconds to 0.5 seconds
|
||||
* Players can be stunned by enemy players while already stunned
|
||||
* Points awarded for stunning enemy players that are damaged
|
||||
|
@ -6,7 +6,13 @@
|
||||
|
||||
main()
|
||||
{
|
||||
if ( getDvar( "g_gametype" ) != "zgrief" )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
replaceFunc(maps/mp/zombies/_zm_game_module::wait_for_team_death_and_round_end, ::wait_for_team_death_and_round_end);
|
||||
replaceFunc(maps/mp/zombies/_zm_blockers::handle_post_board_repair_rewards, ::handle_post_board_repair_rewards);
|
||||
}
|
||||
|
||||
init()
|
||||
@ -562,6 +568,26 @@ unlimited_zombies()
|
||||
}
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
spawn_bots(num)
|
||||
{
|
||||
level waittill( "connected", player );
|
||||
|
Reference in New Issue
Block a user