mirror of
https://github.com/JezuzLizard/Recompilable-gscs-for-BO2-zombies-and-multiplayer.git
synced 2025-06-10 18:57:58 -05:00
Numerous minor fixes.
This commit is contained in:
@ -517,7 +517,7 @@ round_logic( mode_logic_func ) //checked matches cerberus output
|
||||
set_gamemode_var_once( "current_round", 0 );
|
||||
set_gamemode_var_once( "team_1_score", 0 );
|
||||
set_gamemode_var_once( "team_2_score", 0 );
|
||||
if ( isDefined( is_encounter() ) && is_encounter() )
|
||||
if ( is_true( is_encounter() ) )
|
||||
{
|
||||
[[ level._setteamscore ]]( "allies", get_gamemode_var( "team_2_score" ) );
|
||||
[[ level._setteamscore ]]( "axis", get_gamemode_var( "team_1_score" ) );
|
||||
|
@ -175,7 +175,7 @@ playerlaststand( einflictor, attacker, idamage, smeansofdeath, sweapon, vdir, sh
|
||||
{
|
||||
return;
|
||||
}
|
||||
if ( isDefined( self.in_zombify_call ) && self.in_zombify_call )
|
||||
if ( is_true( self.in_zombify_call ) )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
@ -16,15 +16,6 @@
|
||||
|
||||
init() //checked partially changed to match cerberus output
|
||||
{
|
||||
//begin debug code
|
||||
level.custom_zm_perks_loaded = 1;
|
||||
maps/mp/zombies/_zm_bot::init();
|
||||
if ( !isDefined( level.debugLogging_zm_perks ) )
|
||||
{
|
||||
level.debugLogging_zm_perks = 0;
|
||||
}
|
||||
|
||||
//end debug code
|
||||
level.additionalprimaryweapon_limit = 3;
|
||||
level.perk_purchase_limit = 4;
|
||||
if ( !level.createfx_enabled )
|
||||
@ -2911,7 +2902,7 @@ perk_machine_removal( machine, replacement_model ) //checked changed to match ce
|
||||
{
|
||||
if ( isdefined( parts[ i ].classname ) && parts[ i ].classname == "script_model" )
|
||||
{
|
||||
machine_model = parts[i];
|
||||
machine_model = parts[ i ];
|
||||
}
|
||||
if ( isdefined( parts[ i ].script_noteworthy ) && parts[ i ].script_noteworthy == "clip" )
|
||||
{
|
||||
|
@ -22,19 +22,6 @@
|
||||
|
||||
init() //checked matches cerberus output
|
||||
{
|
||||
//begin debug code
|
||||
level.custom_zm_powerups_loaded = 1;
|
||||
maps/mp/zombies/_zm_bot::init();
|
||||
if ( !isDefined( level.debugLogging_zm_powerups ) )
|
||||
{
|
||||
level.debugLogging_zm_powerups = 0;
|
||||
}
|
||||
if ( level.debugLogging_zm_powerups )
|
||||
{
|
||||
level.zombiesAlwaysDropPowerups = getDvarIntDefault( "zombiesAlwaysDropPowerups", 0 );
|
||||
thread zombies_always_drop_powerups();
|
||||
}
|
||||
//end debug code
|
||||
precacheshader( "specialty_doublepoints_zombies" );
|
||||
precacheshader( "specialty_instakill_zombies" );
|
||||
precacheshader( "specialty_firesale_zombies" );
|
||||
@ -56,11 +43,6 @@ init() //checked matches cerberus output
|
||||
set_zombie_var( "zombie_powerup_point_doubler_time", 30, undefined, undefined, 1 );
|
||||
set_zombie_var( "zombie_powerup_drop_increment", 2000 );
|
||||
set_zombie_var( "zombie_powerup_drop_max_per_round", 4 );
|
||||
if ( level.debugLogging_zm_powerups )
|
||||
{
|
||||
level.maxPowerupsPerRound = getDvarIntDefault( "maxPowerupsPerRound", 4 );
|
||||
level.zombie_vars["zombie_powerup_drop_max_per_round"] = level.maxPowerupsPerRound;
|
||||
}
|
||||
onplayerconnect_callback( ::init_player_zombie_vars );
|
||||
level._effect[ "powerup_on" ] = loadfx( "misc/fx_zombie_powerup_on" );
|
||||
level._effect[ "powerup_off" ] = loadfx( "misc/fx_zombie_powerup_off" );
|
||||
@ -2874,19 +2856,6 @@ teller_withdrawl( powerup, player ) //checked matches cerberus output
|
||||
player maps/mp/zombies/_zm_score::add_to_player_score( powerup.value );
|
||||
}
|
||||
|
||||
zombies_always_drop_powerups() //debug code added
|
||||
{
|
||||
if ( !level.zombiesAlwaysDropPowerups )
|
||||
{
|
||||
return;
|
||||
}
|
||||
while ( 1 )
|
||||
{
|
||||
level.zombie_vars[ "zombie_drop_item" ] = level.zombiesAlwaysDropPowerups;
|
||||
wait 0.05;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user