mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-21 04:30:32 -05:00
Encounter: destroy powerdown HUD on intermission
This commit is contained in:
@ -431,9 +431,11 @@ powerup_hud_overlay()
|
|||||||
struct.shader = "specialty_instakill_zombies";
|
struct.shader = "specialty_instakill_zombies";
|
||||||
struct_array[struct_array.size] = struct;
|
struct_array[struct_array.size] = struct;
|
||||||
|
|
||||||
foreach(struct in struct_array)
|
foreach (struct in struct_array)
|
||||||
{
|
{
|
||||||
hudelem = newTeamHudElem("axis");
|
foreach (team in level.teams)
|
||||||
|
{
|
||||||
|
hudelem = newTeamHudElem(team);
|
||||||
hudelem.hidewheninmenu = 1;
|
hudelem.hidewheninmenu = 1;
|
||||||
hudelem.alignX = "center";
|
hudelem.alignX = "center";
|
||||||
hudelem.alignY = "bottom";
|
hudelem.alignY = "bottom";
|
||||||
@ -442,31 +444,20 @@ powerup_hud_overlay()
|
|||||||
hudelem.y = -37;
|
hudelem.y = -37;
|
||||||
hudelem.color = (0.21, 0, 0);
|
hudelem.color = (0.21, 0, 0);
|
||||||
hudelem.alpha = 0;
|
hudelem.alpha = 0;
|
||||||
hudelem.team = "axis";
|
hudelem.team = team;
|
||||||
hudelem.on_string = struct.on;
|
|
||||||
hudelem.time_string = struct.time;
|
|
||||||
hudelem setShader(struct.shader, 32, 32);
|
|
||||||
hudelem thread powerup_hud_think();
|
|
||||||
|
|
||||||
hudelem = newTeamHudElem("allies");
|
|
||||||
hudelem.hidewheninmenu = 1;
|
|
||||||
hudelem.alignX = "center";
|
|
||||||
hudelem.alignY = "bottom";
|
|
||||||
hudelem.horzAlign = "user_center";
|
|
||||||
hudelem.vertAlign = "user_bottom";
|
|
||||||
hudelem.y = -37;
|
|
||||||
hudelem.color = (0.21, 0, 0);
|
|
||||||
hudelem.alpha = 0;
|
|
||||||
hudelem.team = "allies";
|
|
||||||
hudelem.on_string = struct.on;
|
hudelem.on_string = struct.on;
|
||||||
hudelem.time_string = struct.time;
|
hudelem.time_string = struct.time;
|
||||||
hudelem setShader(struct.shader, 32, 32);
|
hudelem setShader(struct.shader, 32, 32);
|
||||||
hudelem thread powerup_hud_think();
|
hudelem thread powerup_hud_think();
|
||||||
|
hudelem thread powerup_hud_destroy_on_intermission();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
powerup_hud_think()
|
powerup_hud_think()
|
||||||
{
|
{
|
||||||
|
level endon("intermission");
|
||||||
|
|
||||||
while(1)
|
while(1)
|
||||||
{
|
{
|
||||||
if(level.zombie_vars[self.team][self.time_string] < 5 )
|
if(level.zombie_vars[self.team][self.time_string] < 5 )
|
||||||
@ -515,6 +506,13 @@ powerup_hud_think()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
powerup_hud_destroy_on_intermission()
|
||||||
|
{
|
||||||
|
level waittill("intermission");
|
||||||
|
|
||||||
|
self destroy();
|
||||||
|
}
|
||||||
|
|
||||||
powerup_hud_move()
|
powerup_hud_move()
|
||||||
{
|
{
|
||||||
offset_x = 37;
|
offset_x = 37;
|
||||||
|
Reference in New Issue
Block a user