sBatteryExpl
0
-1
-1000
0
<undefined>
<undefined>
1
603
7
0
0
-1
2
self
0
0
1
damage = 20;
image_xscale = 0;
image_yscale = 0;
width = 0;
height = 0;
alarm[0] = 100;
fadeout = 0;
pbeam = 0;
ibeam = 0;
wbeam = 0;
sbeam = 0;
instance_create(x, y, oScreenFlash);
alpha2 = 0;
alarm[1] = 1;
spark_alpha = 1;
spark_fadeout = 0;
alarm[2] = 70;
1
603
7
0
0
-1
2
self
0
0
1
spark_fadeout = 1;
1
603
7
0
0
-1
2
self
0
0
1
alarm[1] = 6 + random(4);
fx = instance_create(x, y, oFXTrail);
fx.sprite_index = sEMP_Spark;
fx.image_index = choose(0, 1, 2, 3);
fx.image_speed = 0;
fx.image_xscale = image_xscale;
fx.image_yscale = image_yscale;
fx.image_alpha = spark_alpha;
fx.additive = 1;
fx.fadespeed = 0.05;
fx.image_angle = image_angle + 90 + random(90);
fx.depth = depth;
1
603
7
0
0
-1
2
self
0
0
1
fadeout = 1;
1
603
7
0
0
-1
2
self
0
0
1
image_xscale = lerp(image_xscale, 1, 0.05);
image_yscale = lerp(image_yscale, 1, 0.05);
if (fadeout) {
image_alpha -= 0.02;
if (image_alpha <= 0) instance_destroy();
}
if (spark_fadeout) {
if (spark_alpha > 0) spark_alpha -= 0.02;
}
if (!global.sensitivitymode) alpha2 = !alpha2;
1
603
7
0
0
-1
2
self
0
0
1
if (global.currentsuit <= 1) {
if (!instance_exists(oEMPNoise)) {
instance_create(0, 0, oEMPNoise);
} else with (oEMPNoise) image_alpha = 1 - (0.5 * global.sensitivitymode);
}
1
603
7
0
0
-1
2
self
0
0
1
draw_set_blend_mode(bm_add);
draw_sprite_ext(sprite_index, -1, x, y, image_xscale, image_yscale, image_angle, -1, image_alpha * (1 - alpha2 * 0.2));
draw_set_blend_mode(bm_normal);
0
0
0
0.5
0.100000001490116
0
0.100000001490116
0.100000001490116
0.200000002980232
-1
-1