beginscript; label Wait: if (GetState() != 0 && UnitDead() != 1) { SetNumLives(1); ExcTargetType(0x2); SetVar (0, GetTime()+100); SetGlobalVar(7,0); SetVar(1,1); IncludeUTarget(Bfg_Grp2_04_Scr); EndFrame(); goto Start; } EndFrame(); goto Wait; label Start: if (GetVar(1) == 1 && UnitDead() != 1) { if (OtherUnitDead(Bfg_Grp2_04_Scr) != 1) { IncludeUTarget(Bfg_Grp2_04_Scr); } else if (OtherUnitDead(Bfg_Grp2_01_Scr) != 1) { IncludeUTarget(Bfg_Grp2_01_Scr); } else if (OtherUnitDead(Bfg_Grp2_02_Scr) != 1) { IncludeUTarget(Bfg_Grp2_02_Scr); } else if (OtherUnitDead(Bfg_Grp2_03_Scr) != 1) { IncludeUTarget(Bfg_Grp2_03_Scr); } else { IncludeUTarget(0x7401); } gosub CheckKiller; } if (GetVar(1) == 2 && UnitDead() != 1) { if (OtherUnitDead(BFG6_Scr) != 1) { IncludeUTarget(BFG6_Scr); } else if (OtherUnitDead(BFG5_Scr) != 1) { IncludeUTarget(BFG5_Scr); } else if (OtherUnitDead(BFG4_Scr) != 1) { IncludeUTarget(BFG4_Scr); } else { IncludeUTarget(0x7401); } gosub CheckKiller; } if (GetVar(1) == 3 && UnitDead() != 1) { if (OtherUnitDead(Bfg_Gr1_02_Scr) != 1) { IncludeUTarget(Bfg_Gr1_02_Scr); } else if (OtherUnitDead(Bfg_Gr1_01_Scr) != 1) { IncludeUTarget(Bfg_Gr1_01_Scr); } else if (OtherUnitDead(Bfg_Gr1_03_Scr) != 1) { IncludeUTarget(Bfg_Gr1_03_Scr); } else { IncludeUTarget(0x7401); } gosub CheckKiller; } if (GetVar(1) == 4 && UnitDead() != 1) { if (OtherUnitDead(Eng_G2_1) != 1) { IncludeUTarget(Eng_G2_1); } else if (OtherUnitDead(Eng_G2_2) != 1) { IncludeUTarget(Eng_G2_2); } else if (OtherUnitDead(Eng_G2_3) != 1) { IncludeUTarget(Eng_G2_3); } else if (OtherUnitDead(Eng_G2_4) != 1) { IncludeUTarget(Eng_G2_4); } else { IncludeUTarget(0x7401); } } if (UnitDead() && GetVar(1) == 1 && GetGlobalVar(5) == 1) { SetNumLives(1); WaitForTime(60); TeleportUnit(AiTele4,Rnd()/4,Rnd()/2); SpawnUnit(); SetHUDTarget (Jep_Gr1_02_Scr); SetVar (0, GetTime()+300); SetVar(1,2); SetVar(2,0); } else if (UnitDead() && GetVar(1) == 2 && GetGlobalVar(5) == 2) { TeleportUnit(AiTele1,Rnd()/2,Rnd()/2); WaitForTime(60); SpawnUnit(); SetHUDTarget (Jep_Gr1_02_Scr); SetVar(1,3); SetVar (0, GetTime()+300); SetVar(2,0); } else if (UnitDead() && GetVar(1) == 3 && GetGlobalVar(4) == 3 && OtherUnitInArea(Eng_G1,-393, 1715, 500)) { WaitForTime(20); if (Rnd() > 125) { TeleportUnit(AiTele2,Rnd()/4,Rnd()/4); } else { TeleportUnit(WinDude_Scr,Rnd()/4,Rnd()/4); } if (Rnd() > 125) { WaitForTime(20); } SpawnUnit(); SetVar(1,4); SetVar (0, GetTime()+300); SetVar(2,0); } if (GetGlobalVar(3) >= 1) { IncludeGTarget(13); } if (GetGlobalVar(3) == 3 || GetGlobalVar(3) == 10) { SelectWeapons(0,0,0); SetFollowWaypoint(132,0,0); ExcTargetType(0xffffffff); EndFrame(); goto End; } EndFrame(); goto Start; label End: EndFrame(); goto End; endscript; beginsub CheckKiller; if(GetKiller() == 0x7401 && GetVar(2) != 1) { IncGlobalVar(7); SetVar(2,1); } endsub; $