sAutrack 0 -1 0 0 oEnemy <undefined> 1 603 7 0 0 -1 2 self 0 0 1 action_inherited(); canbeX = 0; myhealth = 25; freezehp = 13; damage = 8; hitsound = sndRobotHit2; deathsound = sndRobotExpl; platyoffset = -6; frozenspr = sAutrackFrozen; canfreeze = 1; hitmissileexpl = 0; target = 0; canattack = 1; state = 0; image_speed = 0; hitemp = 1; empspr = sAutrackDisabled; freezefall = 0; 1 603 7 0 0 -1 2 self 0 0 1 action_inherited(); enemy_active_check(20); enemy_target_check(90, 1); if (active == 1 && stun == 0 && frozen == 0) { if (state == 0) { sprite_index = sAutrack; image_index = 0; image_speed = 0; if (target) { state = 1; statetime = 0; } } if (state == 1) { if (image_index < 6) image_index += 0.5; if (statetime > 20) { state = 2; statetime = 0; sprite_index = sAutrackAttack; image_index = 0; } } if (state == 2) { if (image_index < 3) image_index += 0.5; if (statetime == 12) event_user(1); if (statetime >= 16) { state = 3; statetime = 0; sprite_index = sAutrack; image_index = 5; } } if (state == 3) { if (image_index > 0) { image_index -= 0.5; } else state = 0; } } // if (active == 1 && stun == 0 && frozen == 0) if (stun && (state == 2) && (statetime == 12)) { // 1.5.1 fix for OMEGA LASER statetime = 13; } if (state == 100) { enemy_death(); repeat (10) instance_create(x, y - 10, oDebris); } 1 603 7 0 0 -1 2 self 0 0 1 poffset = 12 * facing; projectile = instance_create(x + poffset, y - 30, oAutrackProj); projectile.hspeed = (3.5 + global.difficulty) * facing; projectile.image_angle = projectile.direction; PlaySoundMono(sndAutrackFire); 1 603 7 0 0 -1 2 self 0 0 1 image_xscale = facing; 0 0 0 0.5 0.100000001490116 0 0.100000001490116 0.100000001490116 0.200000002980232 -1 -1