ssEDFX
0
-1
-10000
-1
<undefined>
<undefined>
1
603
7
0
0
-1
2
self
0
0
1
steps = 0;
drawbar = 0;
temp = 0;
bgw = 0;
gototemp = 0;
alarm[1] = 400;
barfx = 0;
powercelltext = string(get_text("Misc", "TowerCellTemp"))
barratio = max(string_length(string(powercelltext))*5+50, 162)/162;
mus_current_stop();
1
603
7
0
0
-1
2
self
0
0
1
if (global.ingame && room != rm_transition) {
if (temp >= 100) {
event_user(0);
} else alarm[2] = 30;
} else alarm[2] = 1;
1
603
7
0
0
-1
2
self
0
0
1
if (global.ingame && room != rm_transition) {
if (temp < 100) temp += 1;
alarm[1] = 300;
} else alarm[1] = 1;
1
603
7
0
0
-1
2
self
0
0
1
if (global.ingame && room != rm_transition) {
if (temp < gototemp) {
temp += 1;
alarm[0] = 20;
}
} else alarm[0] = 1;
1
603
7
0
0
-1
2
self
0
0
1
if (!surface_exists(oControl.gui_surface)) oControl.gui_surface = surface_create(320 + (oControl.widescreen_space), 240);
if (surface_exists(oControl.gui_surface)) {
surface_set_target(oControl.gui_surface);
if (global.ingame && room != rm_transition && oControl.displaygui && instance_exists(oCharacter)) {
if (drawbar) {
draw_set_color(c_white);
draw_set_alpha(1);
draw_background_ext(bgA4EscapeBarBG, ((view_wview[0] + (oControl.widescreen_space)) / 2 - (81*barratio)), 50, barratio, 1, 0, -1, 0.8); //added
draw_background_part_ext(bgA4EscapeBar, 0, 0, bgw, 8, ((view_wview[0] + (oControl.widescreen_space)) / 2 - (80*barratio)), 59, barratio, 1, -1, 1); //added
//draw_background_ext(bgA4EscapeBarBG, view_wview[0] / 2 - 81, 50, 1, 1, 0, -1, 0.8);
//draw_background_part(bgA4EscapeBar, 0, 0, bgw, 8, view_wview[0] / 2 - 80, 59);
draw_set_font(fontMenuSmall);
draw_set_halign(fa_center);
draw_text(((view_wview[0] + (oControl.widescreen_space)) / 2), 48, string(get_text("Misc", "TowerCellTemp")));
draw_set_halign(fa_left);
if (temp == 100) {
draw_set_blend_mode(bm_add);
//repeat (2) draw_background_ext(bgA4EscapeBar, view_wview[0] / 2 - 80, 59, 1, 1, 0, -1, barfx * 0.2);
repeat (2) draw_background_ext(bgA4EscapeBar, ((view_wview[0] + (oControl.widescreen_space)) / 2 - (80*barratio)), 59, barratio, 1, 0, -1, barfx * 0.2); //added
draw_set_blend_mode(bm_normal);
}
}
}
surface_reset_target();
}
1
603
7
0
0
-1
2
self
0
0
1
if (global.ingame && room != rm_transition) {
if (steps == 300) {
instance_create(0, 0, oA4EscapeSeqFX);
sfx_loop(sndA4AlarmLoop);
mus_loop(musReactor);
drawbar = 1;
}
if (steps > 300) {
bgw = temp / 100 * 160;
if (temp >= 100) {
if (room != rm_a4b01) {
instance_create(oCharacter.x, oCharacter.y + 480, oA4EscapeExplosionFail);
instance_destroy();
}
}
}
steps += 1;
barfx += 1;
if (barfx > 5) barfx = 0;
}
if (global.event[203] == 0 || room == titleroom) instance_destroy();
1
603
7
0
0
-1
2
self
0
0
1
with (oA4EscapeSeqFX) instance_destroy();
global.event[203] = 9;
with (inst_128777) targetroom = rm_a4b02a;
make_escape_explosion();
with (inst_128787) y += 240;
with (inst_128788) y += 240;
with (inst_128790) y += 240;
with (inst_128789) y += 240;
instance_destroy();
1
603
7
0
0
-1
2
self
0
0
1
if (room == rm_a4b01) alarm[2] = 800;
1
603
7
0
0
-1
2
self
0
0
1
0
0
0
0.5
0.100000001490116
0
0.100000001490116
0.100000001490116
0.200000002980232
-1
-1