Source: geocities.com/stslabs/orogogus/mercsinc

               ( geocities.com/stslabs/orogogus)                   ( geocities.com/stslabs)    
// Unit list for Mercenaries, Inc.

function MercsIncUnitList::Generator(%difficulty)
{
  %MIAIVehicleCount[1] = 4;
  %MIAIVehicle[1, 0] = "multiplayer//MI_01_00_Goad.veh";    // Goad, Alpha sensors, Alpha engine, Alpha reactor, Alpha computer, Laser
  %MIAIVehicle[1, 1] = "multiplayer//MI_01_01_Seeker.veh";  // Seeker, Alpha sensors, Alpha engine, Alpha reactor, Alpha computer, ATC, ATC
  %MIAIVehicle[1, 2] = "multiplayer//MI_01_02_Goad.veh";    // Goad, Beta sensors, Alpha engine, Alpha reactor, Alpha computer, HATC
  %MIAIVehicle[1, 3] = "multiplayer//MI_01_03_Bolo.veh";    // Bolo, Beta sensors, Alpha engine, Alpha reactor, Alpha computer, EMP
  
  %MIAIVehicleCount[2] = 6;
  %MIAIVehicle[2, 0] = "multiplayer//MI_02_00_Shepherd.veh";    // Shepherd: Alpha shield / QBM / HLAS / HLAS / EMP / EMP
  %MIAIVehicle[2, 1] = "multiplayer//MI_02_01_Seeker.veh";      // Seeker: FastCharge / Ceramic / Antigrav / SMOD / BLINK / BLINK
  %MIAIVehicle[2, 2] = "multiplayer//MI_02_02_Bolo.veh";        // Bolo: Nano-Armor / AuxPower / Antigrav / AlphaECM / RAD / RAD
  %MIAIVehicle[2, 4] = "multiplayer//MI_02_04_Goad.veh";        // Goad (Need to come back and fill this in)
  %MIAIVehicle[2, 3] = "multiplayer//MI_02_03_Seeker.veh";      // Seeker: FastCharge / Ceramic / Antigrav / SMOD / ELF / ELF
  %MIAIVehicle[2, 5] = "multiplayer//MI_02_05_Seeker.veh";      // FastCharge / Cermic / AntiGrav / SMOD / CLAS / EMP
  %MIAIVehicle[2, 6] = "multiplayer//MI_02_06_Bolo.veh";        // Nano-Armor / AuxPower / AntiGrav / ECM-G / ELF / ELF

  %MIAIVehicleCount[3] = 5;
  %MIAIVehicle[3, 0] = "multiplayer//MI_03_00_Adjudicator.veh"; // Adjudicator: Alpha shield / QBM / Shield Amp / Power storage / HLAS / HLAS / HLAS / HLAS
  %MIAIVehicle[3, 1] = "multiplayer//MI_03_01_Executioner.veh"; // Executioner: Beta shield / DURAC / Field Stabilizer / Shield Amp / HLAS / HLAS / PBW / PBW
  %MIAIVehicle[3, 2] = "multiplayer//MI_03_02_Shepherd.veh";    // Shepherd: Gamma shield / Ceramic / Ammo / Shield Amp / EMC / EMC
  %MIAIVehicle[3, 3] = "multiplayer//MI_03_03_Goad.veh";        // Goad: FastCharge / DURAC / AntiGrav / SMOD / ELF / EMP
  %MIAIVehicle[3, 4] = "multiplayer//MI_03_04_Bolo.veh";        // Bolo:  Nano repair/ Blink / Blink

  %MIAIVehicleCount[4] = 3;
  %MIAIVehicle[4, 0] = "multiplayer//MI_04_00_Adjudicator.veh"; // Delta shield / QBM / Shield Amp / NanoRepair / EMP / EMP / EMP / HBLAS
  %MIAIVehicle[4, 1] = "multiplayer//MI_04_01_Recluse.veh";     // Nano-Armor / Thermal / ECM-G / AntiGrav / EMP / PBW / PBW
  %MIAIVehicle[4, 2] = "multiplayer//MI_04_02_Shepherd.veh";     // Shepherd:  Ceramic/ ELF / ELF / EMP / EMP


  %MIAIVehicleCount[5] = 3;
  %MIAIVehicle[5, 0] = "multiplayer//MI_05_00_Shepherd.veh";      // Shepherd: Epsilon shield / Crystal / Aux power / Shield Amp / BLAS / BLAS / EMP / EMP
  %MIAIVehicle[5, 1] = "multiplayer//MI_05_01_Adjudicator.veh";   // Adjudicator: Theta shield / DURAC / Shield Amp / Antigrav / EMP / EMP / BLAS / BLAS
  %MIAIVehicle[5, 2] = "multiplayer//MI_05_02_Executioner.veh";   // Executioner: Repulsor shield / DURAC / Nano-repair / Shield Amp / HBLAS / HBLAS / BLAS / BLAS
  
  %MIAIVehicleCount[6] = 3;
  %MIAIVehicle[6, 0] = "multiplayer//MI_06_00_Adjudicator.veh";   // Adjudicator: Theta shield / DURAC / Shield Amp / Antigrav / EMP / EMP / BC / BC
  %MIAIVehicle[6, 1] = "multiplayer//MI_06_01_Executioner.veh";   // Executioner: Zeta shield / DURAC / Field Stabilizer / Shield Amp / EMP / EMP / PBW / PBW
  %MIAIVehicle[6, 2] = "multiplayer//MI_06_02_Adjudicator.veh";   // Adjudicator: Epsilon Shield / QBM / Shrike / Shrike / Shrike / Shrike / jammer or bust


  %MIAIVehicleCount[7] = 3;
  %MIAIVehicle[7, 0] = "multiplayer//MI_07_00_Adjudicator.veh";   // Adjudicator: Theta shield / DURAC / Shield Amp / Antigrav / EMP / EMP / PBW / PBW
  %MIAIVehicle[7, 1] = "multiplayer//MI_07_01_Shepherd.veh";      // Shepherd: Theta shield / DURAC / Shield Amp / Antigrav / BLAS / BLAS / EMP / EMP
  %MIAIVehicle[7, 2] = "multiplayer//MI_07_02_Recluse.veh" ;      // Recluse:  Quicksilver / Nano-repair / Rad / Rad / Rad 

  %MIAIVehicleCount[8] = 3;
  %MIAIVehicle[8, 0] = "multiplayer//MI_08_00_Adjudicator.veh";   // Adjudicator: Theta shield / DURAC / Shield Amp / Antigrav / EMP / EMP / PBW / PBW    PLACEHOLDER!!!
  %MIAIVehicle[8, 1] = "multiplayer//MI_08_01_Executioner.veh";    // Executioner: Zeta Sheild / HBC / HBC / EMP / EMP 
  %MIAIVehicle[8, 2] = "multiplayer//MI_08_02_Shepherd.veh"   ;    // Shepherd:  Eta shield / Ceramic / SAMP / Rad / Rad / Rad / Emp / EZBake Oven!
 
  %MIAIVehicleCount[9] = 3;
  %MIAIVehicle[9, 0] = "multiplayer//MI_09_00_Executioner.veh";   // Executioner: Theta shield / DURAC / Nano-repair / Shield Amp / EMP / EMP / PBW / PBW
  %MIAIVehicle[9, 1] = "multiplayer//MI_09_02_Adjudicator.veh";   // Adjudicator:  Blaster / Blaster/ M-fAC / M-FAC / Ouchie / Delta Shield / QBM / weak protection
  %MIAIVehicle[9, 2] = "multiplayer//MI_09_03_Executioner.veh";   // Executioner:  Theta / Duarc / SAMP / PBW / PBW / Blaster / Blaster

  %MIAIVehicleCount[10] = 3;
  %MIAIVehicle[10, 0] = "multiplayer//MI_10_00_CPLExec.veh";   // Computer Platinum Guard Executioner: Theta Shield / Nano-armor / Shield Amp / Shield MOD / PBW / PBW / PBW / PBW
  %MIAIVehicle[10, 1] = "multiplayer//MI_10_01_CPLExec.veh";   // Computer Platinum Guard Executioner: Theta Shield / Nano-armor / Shield Amp / Shield MOD / MFAC / MFAC / PBW / PBW
  %MIAIVehicle[10, 2] = "multiplayer//MI_10_02_Adjudicator.veh"; // Platinum Guard Adjudicator: Theta Shield/ Nano-repair/ Duarc / Shield Amp / MFAC / MFAC / EMP / EMP / 


  //==============


  %x = randomInt(1, 100);
  if(%difficulty == 1)
  {
    %y = 3;
    if(%x < 98) %y = 2;
    if(%x < 90) %y = 1;
  }
  else if(%difficulty == 2)
  {
    %y = 5;
    if(%x < 98) %y = 4;
    if(%x < 94) %y = 3;
    if(%x < 90) %y = 2;
    if(%x < 35) %y = 1;
  }
  else if(%difficulty == 3)
  {
    %y = 6;
    if(%x < 98) %y = 5;
    if(%x < 93) %y = 4;
    if(%x < 86) %y = 3;
    if(%x < 40) %y = 2;
    if(%x < 20) %y = 1;
  }  
  else if(%difficulty == 4)
  {
    %y = 8;
    if(%x < 98) %y = 7;
    if(%x < 91) %y = 6;
    if(%x < 82) %y = 5;
    if(%x < 72) %y = 4;
    if(%x < 30) %y = 3;
    if(%x < 15) %y = 2;
    if(%x < 7) %y = 1;
  }  
  else if(%difficulty == 5)
  {
    %y = 9;
    if(%x < 98) %y = 8;
    if(%x < 94) %y = 7;
    if(%x < 86) %y = 6;
    if(%x < 76) %y = 5;
    if(%x < 36) %y = 4;
    if(%x < 26) %y = 3;
    if(%x < 15) %y = 2;
    if(%x < 5) %y = 1;
  }  
  else if(%difficulty == 6)
  {
    %y = 10;
    if(%x < 99) %y = 9;
    if(%x < 97) %y = 8;
    if(%x < 93) %y = 7;
    if(%x < 87) %y = 6;
    if(%x < 37) %y = 5;
    if(%x < 30) %y = 4;
    if(%x < 18) %y = 3;
    if(%x < 10) %y = 2;
    if(%x < 4) %y = 1;
  }  
  else if(%difficulty == 7)
  {
    %y = 10;
    if(%x < 97) %y = 9;
    if(%x < 92) %y = 8;
    if(%x < 82) %y = 7;
    if(%x < 42) %y = 6;
    if(%x < 32) %y = 5;
    if(%x < 23) %y = 4;
    if(%x < 15) %y = 3;
    if(%x < 8) %y = 2;
    if(%x < 3) %y = 1;
  }  
  else if(%difficulty == 8)
  {
    %y = 10;
    if(%x < 92) %y = 9;
    if(%x < 80) %y = 8;
    if(%x < 40) %y = 7;
    if(%x < 20) %y = 6;
    if(%x < 10) %y = 5;
    if(%x < 7) %y = 4;
    if(%x < 5) %y = 3;
    if(%x < 3) %y = 2;
    if(%x < 1) %y = 1;
  }  
  else if(%difficulty == 9)
  {
    %y = 10;
    if(%x < 80) %y = 9;
    if(%x < 40) %y = 8;
    if(%x < 20) %y = 7;
    if(%x < 15) %y = 6;
    if(%x < 10) %y = 5;
    if(%x < 5) %y = 4;
    if(%x < 3) %y = 3;
    if(%x < 2) %y = 2;
    if(%x < 1) %y = 1;
  }  
  else if(%difficulty == 10)
  {
    %y = 10;
    if(%x < 27) %y = 9;
    if(%x < 17) %y = 8;
    if(%x < 12) %y = 7;
    if(%x < 7) %y = 6;
    if(%x < 5) %y = 5;
    if(%x < 4) %y = 4;
    if(%x < 3) %y = 3;
    if(%x < 2) %y = 2;
    if(%x < 1) %y = 1;
  }


  %j = randomInt(1, %MIAIVehicleCount[%y]) - 1;
  %herc= loadObject("AIVehicle", %MIAIVehicle[%y, %j] ); 
  return %herc;
}