mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-21 20:50:42 -05:00
Grief: fix Brutus health being incorrect
This commit is contained in:
39
scripts/zm/zm_prison/zm_prison_reimagined.gsc
Normal file
39
scripts/zm/zm_prison/zm_prison_reimagined.gsc
Normal file
@ -0,0 +1,39 @@
|
||||
#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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user