mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-19 03:28:38 -05:00
Reset quest completion from replaceFunc
This commit is contained in:
@ -6,6 +6,7 @@
|
|||||||
#include scripts\zm\replaced\utility;
|
#include scripts\zm\replaced\utility;
|
||||||
#include scripts\zm\replaced\zm_melee;
|
#include scripts\zm\replaced\zm_melee;
|
||||||
#include scripts\zm\replaced\_zm;
|
#include scripts\zm\replaced\_zm;
|
||||||
|
#include scripts\zm\replaced\_zm_stats;
|
||||||
#include scripts\zm\replaced\_zm_playerhealth;
|
#include scripts\zm\replaced\_zm_playerhealth;
|
||||||
#include scripts\zm\replaced\_zm_utility;
|
#include scripts\zm\replaced\_zm_utility;
|
||||||
#include scripts\zm\replaced\_zm_score;
|
#include scripts\zm\replaced\_zm_score;
|
||||||
@ -44,6 +45,7 @@ main()
|
|||||||
replaceFunc(maps\mp\zombies\_zm::player_revive_monitor, scripts\zm\replaced\_zm::player_revive_monitor);
|
replaceFunc(maps\mp\zombies\_zm::player_revive_monitor, scripts\zm\replaced\_zm::player_revive_monitor);
|
||||||
replaceFunc(maps\mp\zombies\_zm::player_out_of_playable_area_monitor, scripts\zm\replaced\_zm::player_out_of_playable_area_monitor);
|
replaceFunc(maps\mp\zombies\_zm::player_out_of_playable_area_monitor, scripts\zm\replaced\_zm::player_out_of_playable_area_monitor);
|
||||||
replaceFunc(maps\mp\zombies\_zm::end_game, scripts\zm\replaced\_zm::end_game);
|
replaceFunc(maps\mp\zombies\_zm::end_game, scripts\zm\replaced\_zm::end_game);
|
||||||
|
replaceFunc(maps\mp\zombies\_zm_stats::set_global_stat, scripts\zm\replaced\_zm_stats::set_global_stat);
|
||||||
replaceFunc(maps\mp\zombies\_zm_playerhealth::playerhealthregen, scripts\zm\replaced\_zm_playerhealth::playerhealthregen);
|
replaceFunc(maps\mp\zombies\_zm_playerhealth::playerhealthregen, scripts\zm\replaced\_zm_playerhealth::playerhealthregen);
|
||||||
replaceFunc(maps\mp\zombies\_zm_utility::track_players_intersection_tracker, scripts\zm\replaced\_zm_utility::track_players_intersection_tracker);
|
replaceFunc(maps\mp\zombies\_zm_utility::track_players_intersection_tracker, scripts\zm\replaced\_zm_utility::track_players_intersection_tracker);
|
||||||
replaceFunc(maps\mp\zombies\_zm_utility::is_headshot, scripts\zm\replaced\_zm_utility::is_headshot);
|
replaceFunc(maps\mp\zombies\_zm_utility::is_headshot, scripts\zm\replaced\_zm_utility::is_headshot);
|
||||||
@ -143,7 +145,6 @@ onplayerconnect()
|
|||||||
player thread onplayerspawned();
|
player thread onplayerspawned();
|
||||||
player thread onplayerdowned();
|
player thread onplayerdowned();
|
||||||
|
|
||||||
player thread reset_sq_completed();
|
|
||||||
player thread weapon_inspect_watcher();
|
player thread weapon_inspect_watcher();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -387,13 +388,6 @@ set_perks()
|
|||||||
self setperk( "specialty_fastladderclimb" );
|
self setperk( "specialty_fastladderclimb" );
|
||||||
}
|
}
|
||||||
|
|
||||||
reset_sq_completed()
|
|
||||||
{
|
|
||||||
player maps\mp\zombies\_zm_stats::set_global_stat( "sq_transit_last_completed", 0 );
|
|
||||||
player maps\mp\zombies\_zm_stats::set_global_stat( "sq_highrise_last_completed", 0 );
|
|
||||||
player maps\mp\zombies\_zm_stats::set_global_stat( "sq_buried_last_completed", 0 );
|
|
||||||
}
|
|
||||||
|
|
||||||
health_bar_hud()
|
health_bar_hud()
|
||||||
{
|
{
|
||||||
self endon("disconnect");
|
self endon("disconnect");
|
||||||
|
19
scripts/zm/replaced/_zm_stats.gsc
Normal file
19
scripts/zm/replaced/_zm_stats.gsc
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
#include common_scripts\utility;
|
||||||
|
#include maps\mp\_utility;
|
||||||
|
#include maps\mp\zombies\_zm_utility;
|
||||||
|
#include maps\mp\gametypes_zm\_globallogic_score;
|
||||||
|
#include maps\mp\zombies\_zm_pers_upgrades;
|
||||||
|
#include maps\mp\zombies\_zm_weapons;
|
||||||
|
#include maps\mp\gametypes_zm\_globallogic;
|
||||||
|
#include maps\mp\zombies\_zm_stats;
|
||||||
|
|
||||||
|
set_global_stat( stat_name, value )
|
||||||
|
{
|
||||||
|
if ( is_true( level.zm_disable_recording_stats ) )
|
||||||
|
return;
|
||||||
|
|
||||||
|
if ( issubstr( tolower( stat_name ), "sq_" ) || issubstr( tolower( stat_name ), "navcard_" ) )
|
||||||
|
value = 0;
|
||||||
|
|
||||||
|
self setdstat( "PlayerStatsList", stat_name, "StatValue", value );
|
||||||
|
}
|
Reference in New Issue
Block a user