mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-27 07:30:09 -05:00
Move replaced functions into separate scripts
This commit is contained in:
33
scripts/zm/replaced/_zm_ai_brutus.gsc
Normal file
33
scripts/zm/replaced/_zm_ai_brutus.gsc
Normal file
@ -0,0 +1,33 @@
|
||||
#include maps\mp\_utility;
|
||||
#include common_scripts\utility;
|
||||
#include maps\mp\zombies\_zm_utility;
|
||||
|
||||
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