sEDTrigger 0 -1 -100 0 <undefined> <undefined> 1 603 7 0 0 -1 2 self 0 0 1 active = 0; time = 0; timemax = 720; cooldown = 0; cooldownmax = 60; alarm[0] = 30 + irandom(90); facing = 1; image_speed = 0; state = 0; if (global.event[261] > 0) { state = 1; } 1 603 7 0 0 -1 2 self 0 0 1 if (active) { var sp1 = instance_create(x + irandom_range(3*facing, 6*facing) + ((1 - facing)*4), y + 8 + irandom(16), oFXAnimSpark); sp1.sprite_index = sBatterySpark; sp1.image_speed = 0.5; sp1.additive = 1; sp1.image_xscale = choose(1, -1); sp1.image_yscale = choose(1, -1); sp1.image_angle = random(360); sp1.depth = -101; alarm[1] = 3 + irandom(12); } 1 603 7 0 0 -1 2 self 0 0 1 if (state == 1) { var sp = instance_create(x + ((1 - facing)*3.5), y + irandom(16), oSparkParticle); sp.mycolor = c_aqua; } alarm[0] = 30 + irandom(60 - (50*active)) - (29*active); 1 603 7 0 0 -1 2 self 0 0 1 if (active == 0) { alarm[1] = -1; var col = instance_place(x, y, oMissileExpl); if (!instance_exists(col)) { col = instance_place(x, y, oBombExpl); } if (instance_exists(col)) { if (state == 0) { repeat (3) { var expl = instance_create(x + (irandom(8) * facing) + ((1 - facing)*4), y + irandom_range(8, 24), oFXAnimSpark); expl.image_speed = 0.5; expl.additive = 0; expl.depth = -10; expl.sprite_index = sGunzooShotExpl; } repeat (5) { instance_create(x + (8 * facing) + ((1 - facing)*4), y + (irandom_range(4, 12)), oDebris); } state = 1; //image_index = 1; } if (cooldown <= 0) { active = 1; alarm[0] = 1; alarm[1] = 1; sfx_play(sndEMPHit); time = timemax; } } if (cooldown > 0) { cooldown --; } } else if (active) { if (time <= 0) { active = 0; cooldown = cooldownmax; } time --; } 1 603 7 0 0 -1 2 self 0 0 1 with (other) { event_user(0); } 1 603 7 0 0 -1 2 self 0 0 1 // dummy so we don't show the field if (facing == 1) { draw_sprite_ext(sErisPipe, state, x, y, facing, 1, 0, image_blend, 1); } else draw_sprite_ext(sErisPipe, state, x + 8, y, facing, 1, 0, image_blend, 1); 0 0 0 0.5 0.100000001490116 0 0.100000001490116 0.100000001490116 0.200000002980232 -1 0