mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-07-10 22:08:14 -05:00
39 lines
1.1 KiB
Plaintext
39 lines
1.1 KiB
Plaintext
#include maps/mp/gametypes_zm/_hud_util;
|
|
#include maps/mp/zombies/_zm_utility;
|
|
#include common_scripts/utility;
|
|
#include maps/mp/_utility;
|
|
|
|
main()
|
|
{
|
|
replaceFunc(maps/mp/zombies/_zm_ai_brutus::brutus_health_increases, ::brutus_health_increases);
|
|
}
|
|
|
|
brutus_health_increases()
|
|
{
|
|
if(level.scr_zm_ui_gametype == "zgrief")
|
|
{
|
|
return;
|
|
}
|
|
|
|
if ( level.round_number > level.brutus_last_spawn_round )
|
|
{
|
|
a_players = getplayers();
|
|
n_player_modifier = 1;
|
|
if ( a_players.size > 1 )
|
|
{
|
|
n_player_modifier = a_players.size * 0.75;
|
|
}
|
|
level.brutus_round_count++;
|
|
level.brutus_health = int( level.brutus_health_increase * n_player_modifier * level.brutus_round_count );
|
|
level.brutus_expl_dmg_req = int( level.brutus_explosive_damage_increase * n_player_modifier * level.brutus_round_count );
|
|
if ( level.brutus_health >= ( 5000 * n_player_modifier ) )
|
|
{
|
|
level.brutus_health = int( 5000 * n_player_modifier );
|
|
}
|
|
if ( level.brutus_expl_dmg_req >= ( 4500 * n_player_modifier ) )
|
|
{
|
|
level.brutus_expl_dmg_req = int( 4500 * n_player_modifier );
|
|
}
|
|
level.brutus_last_spawn_round = level.round_number;
|
|
}
|
|
} |