mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-11 15:48:05 -05:00
Add dvars to disable HUD elems
This commit is contained in:
@ -445,6 +445,26 @@ set_dvars()
|
||||
|
||||
setDvar( "sv_cheats", 0 );
|
||||
|
||||
if ( getDvar("hud_timer") == "" )
|
||||
{
|
||||
setDvar( "hud_timer", 1 );
|
||||
}
|
||||
|
||||
if ( getDvar("hud_enemy_counter") == "" )
|
||||
{
|
||||
setDvar( "hud_enemy_counter", 1 );
|
||||
}
|
||||
|
||||
if ( getDvar("hud_health_bar") == "" )
|
||||
{
|
||||
setDvar( "hud_health_bar", 1 );
|
||||
}
|
||||
|
||||
if ( getDvar("hud_zone_name") == "" )
|
||||
{
|
||||
setDvar( "hud_zone_name", 1 );
|
||||
}
|
||||
|
||||
if ( getDvar("disable_character_dialog") == "" )
|
||||
{
|
||||
setDvar( "disable_character_dialog", 0 );
|
||||
@ -500,6 +520,11 @@ health_bar_hud()
|
||||
|
||||
flag_wait( "hud_visible" );
|
||||
|
||||
if ( !getDvarInt("hud_health_bar") )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
x = 5;
|
||||
y = -104;
|
||||
if (level.script == "zm_buried")
|
||||
@ -585,6 +610,11 @@ shield_bar_hud()
|
||||
|
||||
flag_wait( "hud_visible" );
|
||||
|
||||
if ( !getDvarInt("hud_health_bar") )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
x = 5;
|
||||
y = -104;
|
||||
if (level.script == "zm_buried")
|
||||
@ -719,6 +749,11 @@ enemy_counter_hud()
|
||||
|
||||
flag_wait( "hud_visible" );
|
||||
|
||||
if ( !getDvarInt("hud_enemy_counter") )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
hud.alpha = 1;
|
||||
|
||||
while (1)
|
||||
@ -786,6 +821,11 @@ timer_hud()
|
||||
|
||||
flag_wait( "hud_visible" );
|
||||
|
||||
if ( !getDvarInt("hud_timer") )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
hud.alpha = 1;
|
||||
|
||||
if ( !flag( "initial_blackscreen_passed" ) )
|
||||
@ -831,6 +871,11 @@ round_timer_hud()
|
||||
|
||||
flag_wait( "hud_visible" );
|
||||
|
||||
if ( !getDvarInt("hud_timer") )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
hud.alpha = 1;
|
||||
|
||||
if ( !flag( "initial_blackscreen_passed" ) )
|
||||
@ -943,6 +988,11 @@ zone_hud()
|
||||
|
||||
flag_wait( "hud_visible" );
|
||||
|
||||
if ( !getDvarInt("hud_zone_name") )
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
vars = [];
|
||||
|
||||
vars["zone"] = self get_current_zone();
|
||||
|
Reference in New Issue
Block a user