Advertisement
Guest User

SpawnManager

a guest
Jul 27th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     if ( !AlbinoCrawlersBool )
  2.     {
  3.         `cdlog("AlbinoCrawlers="$AlbinoCrawlersBool$": scanning AISpawnList of length "$AISpawnList.Length$" at squadidx "$SquadIdx, bLogControlledDifficulty);
  4.  
  5.         // Replace all standard crawler classes with forced-regular crawers
  6.         MatchClasses.Length = 2;
  7.         MatchClasses[0] = AIClassList[AT_Crawler];
  8.         MatchClasses[1] = class'ControlledDifficulty_Enhanced.CD_Pawn_ZedCrawler_Special';
  9.         ReplaceZedClass( MatchClasses,
  10.                          class'ControlledDifficulty_Enhanced.CD_Pawn_ZedCrawler_Regular',
  11.                          AISpawnList );
  12.     }
  13.  
  14.     if ( !AlbinoAlphasBool )
  15.     {
  16.         `cdlog("AlbinoAlphas="$AlbinoAlphasBool$": scanning AISpawnList of length "$AISpawnList.Length$" at squadidx "$SquadIdx, bLogControlledDifficulty);
  17.         // Replace all standard alpha classes with forced-regular alphas
  18.         MatchClasses.Length = 2;
  19.         MatchClasses[0] = AIClassList[AT_AlphaClot];
  20.         MatchClasses[1] = class'ControlledDifficulty_Enhanced.CD_Pawn_ZedClot_Alpha_Special';
  21.         ReplaceZedClass( MatchClasses,
  22.                          class'ControlledDifficulty_Enhanced.CD_Pawn_ZedClot_Alpha_Regular',
  23.                          AISpawnList );
  24.     }
  25.     else
  26.     {
  27.         `cdlog("AlbinoAlphas="$AlbinoAlphasBool$": convertingy any KFPawn_ZedClot_Alpha instances to "$
  28.                "CD_Pawn_ZedClot_Alpha instances (for AlphaGlitter awareness) at squadidx "$SquadIdx, bLogControlledDifficulty);
  29.         // Replace KFPawn_ZedClot_Alpha with CD_Pawn_ZedClot_Alpha
  30.         // Those classes behave identically (including randomly deciding whether to spawn albino or not),
  31.         // except that the latter respects a client's glitter preference and the former does not
  32.         MatchClasses.Length = 1;
  33.         MatchClasses[0] = AIClassList[AT_AlphaClot];
  34.         ReplaceZedClass( MatchClasses,
  35.                          class'ControlledDifficulty_Enhanced.CD_Pawn_ZedClot_Alpha',
  36.                          AISpawnList );
  37.     }
  38.  
  39.     if ( !AlbinoSlashersBool )
  40.     {
  41.         `cdlog("AlbinoSlashers="$AlbinoSlashersBool$": scanning AISpawnList of length "$AISpawnList.Length$" at squadidx "$SquadIdx, bLogControlledDifficulty);
  42.  
  43.         // Replace all standard slasher classes with forced-regular slashers
  44.         MatchClasses.Length = 2;
  45.         MatchClasses[0] = AIClassList[AT_SlasherClot];
  46.         MatchClasses[1] = class'ControlledDifficulty_Enhanced.CD_Pawn_ZedClot_Slasher_Special';
  47.         ReplaceZedClass( MatchClasses,
  48.                          class'ControlledDifficulty_Enhanced.CD_Pawn_ZedClot_Slasher_Regular',
  49.                          AISpawnList );
  50.     }
  51.    
  52.     if ( !AlbinoGorefastsBool )
  53.     {
  54.         `cdlog("AlbinoGorefasts="$AlbinoGorefastsBool$": scanning AISpawnList of length "$AISpawnList.Length$" at squadidx "$SquadIdx, bLogControlledDifficulty);
  55.  
  56.         // Replace all standard gorefast classes with forced-regular gorefasts
  57.         MatchClasses.Length = 2;
  58.         MatchClasses[0] = AIClassList[AT_GoreFast];
  59.         MatchClasses[1] = class'ControlledDifficulty_Enhanced.CD_Pawn_ZedGorefast_Special';
  60.         ReplaceZedClass( MatchClasses,
  61.                          class'ControlledDifficulty_Enhanced.CD_Pawn_ZedGorefast_Regular',
  62.                          AISpawnList );
  63.     }
  64.    
  65.     if ( !AlbinoBloatsBool )
  66.     {
  67.         `cdlog("AlbinoBloats="$AlbinoBloatsBool$": scanning AISpawnList of length "$AISpawnList.Length$" at squadidx "$SquadIdx, bLogControlledDifficulty);
  68.  
  69.         // Replace all standard bloat classes with forced-regular bloats
  70.         MatchClasses.Length = 2;
  71.         MatchClasses[0] = AIClassList[AT_Bloat];
  72.         MatchClasses[1] = class'ControlledDifficulty_Enhanced.CD_Pawn_ZedBloat_Special';
  73.         ReplaceZedClass( MatchClasses,
  74.                          class'ControlledDifficulty_Enhanced.CD_Pawn_ZedBloat_Regular',
  75.                          AISpawnList );
  76.     }
  77.    
  78.     if ( !AlbinoStalkersBool )
  79.     {                    
  80.         if ( !RobotEnemiesBool )
  81.         {
  82.             `cdlog("RobotEnemies="$RobotEnemiesBool$": scanning AISpawnList of length "$AISpawnList.Length$" at squadidx "$SquadIdx, bLogControlledDifficulty);
  83.  
  84.             // Added all EDAR enemies
  85.             MatchClasses.Length = 2;
  86.             MatchClasses[0] = AIClassList[AT_Stalker];
  87.             MatchClasses[1] = class'ControlledDifficulty_Enhanced.CD_Pawn_ZedStalker_Special_EDAR';
  88.             ReplaceZedClass( MatchClasses,
  89.                             class'ControlledDifficulty_Enhanced.CD_Pawn_ZedStalker_Regular',
  90.                             AISpawnList );
  91.                            
  92.             MatchClasses.Length = 2;
  93.             MatchClasses[0] = AIClassList[AT_Stalker];
  94.             MatchClasses[1] = class'ControlledDifficulty_Enhanced.CD_Pawn_ZedStalker_Special_EDAR';
  95.             ReplaceZedClass( MatchClasses,
  96.                             class'ControlledDifficulty_Enhanced.CD_Pawn_ZedStalker_Special',
  97.                             AISpawnList );
  98.         }
  99.         else
  100.         {
  101.             `cdlog("AlbinoStalkers="$AlbinoStalkersBool$": scanning AISpawnList of length "$AISpawnList.Length$" at squadidx "$SquadIdx, bLogControlledDifficulty);
  102.  
  103.             // Replace all standard stalker classes with forced-regular stalkers
  104.             MatchClasses.Length = 2;
  105.             MatchClasses[0] = AIClassList[AT_Stalker];
  106.             MatchClasses[1] = class'ControlledDifficulty_Enhanced.CD_Pawn_ZedStalker_Special';
  107.             ReplaceZedClass( MatchClasses,
  108.                             class'ControlledDifficulty_Enhanced.CD_Pawn_ZedStalker_Regular',
  109.                             AISpawnList );
  110.                            
  111.             MatchClasses.Length = 2;
  112.             MatchClasses[0] = AIClassList[AT_Stalker];
  113.             MatchClasses[1] = class'ControlledDifficulty_Enhanced.CD_Pawn_ZedStalker_Special';
  114.             ReplaceZedClass( MatchClasses,
  115.                             class'ControlledDifficulty_Enhanced.CD_Pawn_ZedStalker_Regular_EDAR',
  116.                             AISpawnList );
  117.                            
  118.             MatchClasses.Length = 2;
  119.             MatchClasses[0] = AIClassList[AT_Stalker];
  120.             MatchClasses[1] = class'ControlledDifficulty_Enhanced.CD_Pawn_ZedStalker_Special';
  121.             ReplaceZedClass( MatchClasses,
  122.                             class'ControlledDifficulty_Enhanced.CD_Pawn_ZedStalker_Special_EDAR',
  123.                             AISpawnList );
  124.         }
  125.     }
  126.    
  127.     if ( !AlbinoSirensBool )
  128.     {
  129.         `cdlog("AlbinoSirens="$AlbinoSirensBool$": scanning AISpawnList of length "$AISpawnList.Length$" at squadidx "$SquadIdx, bLogControlledDifficulty);
  130.  
  131.         // Replace all standard siren classes with forced-regular sirens
  132.         MatchClasses.Length = 2;
  133.         MatchClasses[0] = AIClassList[AT_Siren];
  134.         MatchClasses[1] = class'ControlledDifficulty_Enhanced.CD_Pawn_ZedSiren_Special';
  135.         ReplaceZedClass( MatchClasses,
  136.                          class'ControlledDifficulty_Enhanced.CD_Pawn_ZedSiren_Regular',
  137.                          AISpawnList );
  138.     }
  139.    
  140.     if ( !AlbinoHusksBool )
  141.     {
  142.         if ( !RobotEnemiesBool )
  143.         {
  144.             `cdlog("RobotEnemies="$RobotEnemiesBool$": scanning AISpawnList of length "$AISpawnList.Length$" at squadidx "$SquadIdx, bLogControlledDifficulty);
  145.  
  146.             // Added all EDAR enemies
  147.             MatchClasses.Length = 2;
  148.             MatchClasses[0] = AIClassList[AT_Husk];
  149.             MatchClasses[1] = class'ControlledDifficulty_Enhanced.CD_Pawn_ZedHusk_Special_EDAR';
  150.             ReplaceZedClass( MatchClasses,
  151.                             class'ControlledDifficulty_Enhanced.CD_Pawn_ZedHusk_Regular',
  152.                             AISpawnList );
  153.                            
  154.             MatchClasses.Length = 2;
  155.             MatchClasses[0] = AIClassList[AT_Husk];
  156.             MatchClasses[1] = class'ControlledDifficulty_Enhanced.CD_Pawn_ZedHusk_Special_EDAR';
  157.             ReplaceZedClass( MatchClasses,
  158.                             class'ControlledDifficulty_Enhanced.CD_Pawn_ZedHusk_Special',
  159.                             AISpawnList );
  160.         }
  161.         else
  162.         {
  163.             `cdlog("AlbinoHusks="$AlbinoHusksBool$": scanning AISpawnList of length "$AISpawnList.Length$" at squadidx "$SquadIdx, bLogControlledDifficulty);
  164.  
  165.             // Replace all standard husk classes with forced-regular husks
  166.             MatchClasses.Length = 2;
  167.             MatchClasses[0] = AIClassList[AT_Husk];
  168.             MatchClasses[1] = class'ControlledDifficulty_Enhanced.CD_Pawn_ZedHusk_Special';
  169.             ReplaceZedClass( MatchClasses,
  170.                             class'ControlledDifficulty_Enhanced.CD_Pawn_ZedHusk_Regular',
  171.                             AISpawnList );
  172.                            
  173.             MatchClasses.Length = 2;
  174.             MatchClasses[0] = AIClassList[AT_Husk];
  175.             MatchClasses[1] = class'ControlledDifficulty_Enhanced.CD_Pawn_ZedHusk_Special';
  176.             ReplaceZedClass( MatchClasses,
  177.                             class'ControlledDifficulty_Enhanced.CD_Pawn_ZedHusk_Regular_EDAR',
  178.                             AISpawnList );
  179.                            
  180.             MatchClasses.Length = 2;
  181.             MatchClasses[0] = AIClassList[AT_Husk];
  182.             MatchClasses[1] = class'ControlledDifficulty_Enhanced.CD_Pawn_ZedHusk_Special';
  183.             ReplaceZedClass( MatchClasses,
  184.                             class'ControlledDifficulty_Enhanced.CD_Pawn_ZedHusk_Special_EDAR',
  185.                             AISpawnList );
  186.         }
  187.     }
  188.    
  189.     if ( !AlbinoScrakesBool )
  190.     {
  191.         `cdlog("AlbinoScrakes="$AlbinoScrakesBool$": scanning AISpawnList of length "$AISpawnList.Length$" at squadidx "$SquadIdx, bLogControlledDifficulty);
  192.  
  193.         // Replace all standard scrake classes with forced-regular scrakes
  194.         MatchClasses.Length = 2;
  195.         MatchClasses[0] = AIClassList[AT_Scrake];
  196.         MatchClasses[1] = class'ControlledDifficulty_Enhanced.CD_Pawn_ZedScrake_Special';
  197.         ReplaceZedClass( MatchClasses,
  198.                          class'ControlledDifficulty_Enhanced.CD_Pawn_ZedScrake_Regular',
  199.                          AISpawnList );
  200.     }
  201.    
  202.     if ( !AlbinoQuarterPoundsBool )
  203.     {
  204.         if ( !FleshpoundRageSpawnsBool )
  205.         {
  206.             `cdlog("FleshpoundRageSpawns="$FleshpoundRageSpawnsBool$": scanning AISpawnList of length "$AISpawnList.Length$" at squadidx "$SquadIdx, bLogControlledDifficulty);
  207.  
  208.             // Replace all standard fleshpound classes with forced-lazy albino fleshpounds
  209.             MatchClasses.Length = 2;
  210.             MatchClasses[0] = AIClassList[AT_FleshpoundMini];
  211.             MatchClasses[1] = class'ControlledDifficulty_Enhanced.CD_Pawn_ZedFleshpoundMini_Special_RS';
  212.             ReplaceZedClass( MatchClasses,
  213.                             class'ControlledDifficulty_Enhanced.CD_Pawn_ZedFleshpoundMini_Regular_NRS',
  214.                             AISpawnList )
  215.                            
  216.             MatchClasses.Length = 2;
  217.             MatchClasses[0] = AIClassList[AT_FleshpoundMini];
  218.             MatchClasses[1] = class'ControlledDifficulty_Enhanced.CD_Pawn_ZedFleshpoundMini_Special_RS';
  219.             ReplaceZedClass( MatchClasses,
  220.                             class'ControlledDifficulty_Enhanced.CD_Pawn_ZedFleshpoundMini_Regular_RS',
  221.                             AISpawnList )
  222.                            
  223.             MatchClasses.Length = 2;
  224.             MatchClasses[0] = AIClassList[AT_FleshpoundMini];
  225.             MatchClasses[1] = class'ControlledDifficulty_Enhanced.CD_Pawn_ZedFleshpoundMini_Special_RS';
  226.             ReplaceZedClass( MatchClasses,
  227.                             class'ControlledDifficulty_Enhanced.CD_Pawn_ZedFleshpoundMini_Special_NRS',
  228.                             AISpawnList )
  229.         }
  230.         else
  231.         {
  232.             `cdlog("AlbinoQuarterPounds="$AlbinoQuarterPoundsBool$": scanning AISpawnList of length "$AISpawnList.Length$" at squadidx "$SquadIdx, bLogControlledDifficulty);
  233.  
  234.             // Replace all standard fleshpound classes with forced-regular fleshpounds
  235.             MatchClasses.Length = 2;
  236.             MatchClasses[0] = AIClassList[AT_FleshpoundMini];
  237.             MatchClasses[1] = class'ControlledDifficulty_Enhanced.CD_Pawn_ZedFleshpoundMini_Special_NRS';
  238.             ReplaceZedClass( MatchClasses,
  239.                             class'ControlledDifficulty_Enhanced.CD_Pawn_ZedFleshpoundMini_Regular_NRS',
  240.                             AISpawnList );
  241.         }
  242.     }
  243.    
  244.     if ( !AlbinoFleshpoundsBool )
  245.     {
  246.         if ( !FleshpoundRageSpawnsBool )
  247.         {
  248.             `cdlog("FleshpoundRageSpawns="$FleshpoundRageSpawnsBool$": scanning AISpawnList of length "$AISpawnList.Length$" at squadidx "$SquadIdx, bLogControlledDifficulty);
  249.  
  250.             // Replace all standard fleshpound classes with forced-lazy albino fleshpounds
  251.             MatchClasses.Length = 2;
  252.             MatchClasses[0] = AIClassList[AT_FleshPound];
  253.             MatchClasses[1] = class'ControlledDifficulty_Enhanced.CD_Pawn_ZedFleshpound_Special_RS';
  254.             ReplaceZedClass( MatchClasses,
  255.                             class'ControlledDifficulty_Enhanced.CD_Pawn_ZedFleshpound_Regular_NRS',
  256.                             AISpawnList )
  257.                            
  258.             MatchClasses.Length = 2;
  259.             MatchClasses[0] = AIClassList[AT_FleshPound];
  260.             MatchClasses[1] = class'ControlledDifficulty_Enhanced.CD_Pawn_ZedFleshpound_Special_RS';
  261.             ReplaceZedClass( MatchClasses,
  262.                             class'ControlledDifficulty_Enhanced.CD_Pawn_ZedFleshpound_Regular_RS',
  263.                             AISpawnList )
  264.                            
  265.             MatchClasses.Length = 2;
  266.             MatchClasses[0] = AIClassList[AT_FleshPound];
  267.             MatchClasses[1] = class'ControlledDifficulty_Enhanced.CD_Pawn_ZedFleshpound_Special_RS';
  268.             ReplaceZedClass( MatchClasses,
  269.                             class'ControlledDifficulty_Enhanced.CD_Pawn_ZedFleshpound_Special_NRS',
  270.                             AISpawnList )
  271.         }
  272.         else
  273.         {
  274.             `cdlog("AlbinoFleshpounds="$AlbinoFleshpoundsBool$": scanning AISpawnList of length "$AISpawnList.Length$" at squadidx "$SquadIdx, bLogControlledDifficulty);
  275.  
  276.             // Replace all standard fleshpound classes with forced-regular fleshpounds
  277.             MatchClasses.Length = 2;
  278.             MatchClasses[0] = AIClassList[AT_FleshPound];
  279.             MatchClasses[1] = class'ControlledDifficulty_Enhanced.CD_Pawn_ZedFleshpound_Special_NRS';
  280.             ReplaceZedClass( MatchClasses,
  281.                             class'ControlledDifficulty_Enhanced.CD_Pawn_ZedFleshpound_Regular_NRS',
  282.                             AISpawnList );
  283.         }
  284.     }
  285.    
  286.     if ( !RobotEnemiesBool )
  287.     {
  288.         if ( !AlbinoStalkersBool )
  289.         {
  290.             `cdlog("RobotEnemies="$RobotEnemiesBool$": scanning AISpawnList of length "$AISpawnList.Length$" at squadidx "$SquadIdx, bLogControlledDifficulty);
  291.  
  292.             // Added all EDAR enemies
  293.             MatchClasses.Length = 2;
  294.             MatchClasses[0] = AIClassList[AT_Stalker];
  295.             MatchClasses[1] = class'ControlledDifficulty_Enhanced.CD_Pawn_ZedStalker_Special_EDAR';
  296.             ReplaceZedClass( MatchClasses,
  297.                             class'ControlledDifficulty_Enhanced.CD_Pawn_ZedStalker_Regular',
  298.                             AISpawnList );
  299.                            
  300.             MatchClasses.Length = 2;
  301.             MatchClasses[0] = AIClassList[AT_Stalker];
  302.             MatchClasses[1] = class'ControlledDifficulty_Enhanced.CD_Pawn_ZedStalker_Special_EDAR';
  303.             ReplaceZedClass( MatchClasses,
  304.                             class'ControlledDifficulty_Enhanced.CD_Pawn_ZedStalker_Special',
  305.                             AISpawnList );
  306.                            
  307.             MatchClasses.Length = 2;
  308.             MatchClasses[0] = AIClassList[AT_Stalker];
  309.             MatchClasses[1] = class'ControlledDifficulty_Enhanced.CD_Pawn_ZedStalker_Special_EDAR';
  310.             ReplaceZedClass( MatchClasses,
  311.                             class'ControlledDifficulty_Enhanced.CD_Pawn_ZedStalker_Regular_EDAR',
  312.                             AISpawnList );
  313.         }
  314.         else
  315.         {
  316.             `cdlog("RobotEnemies="$RobotEnemiesBool$": scanning AISpawnList of length "$AISpawnList.Length$" at squadidx "$SquadIdx, bLogControlledDifficulty);
  317.  
  318.             // Remove all EDAR Enemies
  319.             MatchClasses.Length = 2;
  320.             MatchClasses[0] = AIClassList[AT_Husk];
  321.             MatchClasses[1] = class'ControlledDifficulty_Enhanced.CD_Pawn_ZedStalker_Regular_EDAR';
  322.             ReplaceZedClass( MatchClasses,
  323.                             class'ControlledDifficulty_Enhanced.CD_Pawn_ZedHusk_Regular',
  324.                             AISpawnList );
  325.                            
  326.             MatchClasses.Length = 2;
  327.             MatchClasses[0] = AIClassList[AT_Husk];
  328.             MatchClasses[1] = class'ControlledDifficulty_Enhanced.CD_Pawn_ZedStalker_Regular_EDAR';
  329.             ReplaceZedClass( MatchClasses,
  330.                             class'ControlledDifficulty_Enhanced.CD_Pawn_ZedHusk_Special',
  331.                             AISpawnList );
  332.                            
  333.             MatchClasses.Length = 2;
  334.             MatchClasses[0] = AIClassList[AT_Husk];
  335.             MatchClasses[1] = class'ControlledDifficulty_Enhanced.CD_Pawn_ZedStalker_Regular_EDAR';
  336.             ReplaceZedClass( MatchClasses,
  337.                             class'ControlledDifficulty_Enhanced.CD_Pawn_ZedHusk_Special_EDAR',
  338.                             AISpawnList );
  339.         }
  340.        
  341.         if ( !AlbinoHusksBool )
  342.         {
  343.             `cdlog("RobotEnemies="$RobotEnemiesBool$": scanning AISpawnList of length "$AISpawnList.Length$" at squadidx "$SquadIdx, bLogControlledDifficulty);
  344.  
  345.             // Added all EDAR enemies
  346.             MatchClasses.Length = 2;
  347.             MatchClasses[0] = AIClassList[AT_Husk];
  348.             MatchClasses[1] = class'ControlledDifficulty_Enhanced.CD_Pawn_ZedHusk_Special_EDAR';
  349.             ReplaceZedClass( MatchClasses,
  350.                             class'ControlledDifficulty_Enhanced.CD_Pawn_ZedHusk_Regular',
  351.                             AISpawnList );
  352.                            
  353.             MatchClasses.Length = 2;
  354.             MatchClasses[0] = AIClassList[AT_Husk];
  355.             MatchClasses[1] = class'ControlledDifficulty_Enhanced.CD_Pawn_ZedHusk_Special_EDAR';
  356.             ReplaceZedClass( MatchClasses,
  357.                             class'ControlledDifficulty_Enhanced.CD_Pawn_ZedHusk_Special',
  358.                             AISpawnList );
  359.                            
  360.             MatchClasses.Length = 2;
  361.             MatchClasses[0] = AIClassList[AT_Husk];
  362.             MatchClasses[1] = class'ControlledDifficulty_Enhanced.CD_Pawn_ZedHusk_Special_EDAR';
  363.             ReplaceZedClass( MatchClasses,
  364.                             class'ControlledDifficulty_Enhanced.CD_Pawn_ZedHusk_Regular_EDAR',
  365.                             AISpawnList );
  366.         }
  367.         else
  368.         {
  369.             `cdlog("RobotEnemies="$RobotEnemiesBool$": scanning AISpawnList of length "$AISpawnList.Length$" at squadidx "$SquadIdx, bLogControlledDifficulty);
  370.  
  371.             // Replace all standard husk classes with forced-regular husks
  372.             MatchClasses.Length = 2;
  373.             MatchClasses[0] = AIClassList[AT_Husk];
  374.             MatchClasses[1] = class'ControlledDifficulty_Enhanced.CD_Pawn_ZedHusk_Regular_EDAR';
  375.             ReplaceZedClass( MatchClasses,
  376.                             class'ControlledDifficulty_Enhanced.CD_Pawn_ZedHusk_Regular',
  377.                             AISpawnList );
  378.                            
  379.             MatchClasses.Length = 2;
  380.             MatchClasses[0] = AIClassList[AT_Husk];
  381.             MatchClasses[1] = class'ControlledDifficulty_Enhanced.CD_Pawn_ZedHusk_Regular_EDAR';
  382.             ReplaceZedClass( MatchClasses,
  383.                             class'ControlledDifficulty_Enhanced.CD_Pawn_ZedHusk_Special',
  384.                             AISpawnList );
  385.                            
  386.             MatchClasses.Length = 2;
  387.             MatchClasses[0] = AIClassList[AT_Husk];
  388.             MatchClasses[1] = class'ControlledDifficulty_Enhanced.CD_Pawn_ZedHusk_Regular_EDAR';
  389.             ReplaceZedClass( MatchClasses,
  390.                             class'ControlledDifficulty_Enhanced.CD_Pawn_ZedHusk_Special_EDAR',
  391.                             AISpawnList );
  392.         }
  393.     }
  394.    
  395.     if ( !FleshpoundRageSpawnsBool )
  396.     {
  397.         if ( !AlbinoQuarterPoundsBool )
  398.         {
  399.             `cdlog("FleshpoundRageSpawns="$FleshpoundRageSpawnsBool$": scanning AISpawnList of length "$AISpawnList.Length$" at squadidx "$SquadIdx, bLogControlledDifficulty);
  400.  
  401.             // Replace all standard and albino quarter pounds classes with forced-lazy albino quarter pounds
  402.             MatchClasses.Length = 2;
  403.             MatchClasses[0] = AIClassList[AT_FleshpoundMini];
  404.             MatchClasses[1] = class'ControlledDifficulty_Enhanced.CD_Pawn_ZedFleshpoundMini_Special_RS';
  405.             ReplaceZedClass( MatchClasses,
  406.                             class'ControlledDifficulty_Enhanced.CD_Pawn_ZedFleshpoundMini_Regular_NRS',
  407.                             AISpawnList )
  408.                            
  409.             MatchClasses.Length = 2;
  410.             MatchClasses[0] = AIClassList[AT_FleshpoundMini];
  411.             MatchClasses[1] = class'ControlledDifficulty_Enhanced.CD_Pawn_ZedFleshpoundMini_Special_RS';
  412.             ReplaceZedClass( MatchClasses,
  413.                             class'ControlledDifficulty_Enhanced.CD_Pawn_ZedFleshpoundMini_Regular_RS',
  414.                             AISpawnList )
  415.                            
  416.             MatchClasses.Length = 2;
  417.             MatchClasses[0] = AIClassList[AT_FleshpoundMini];
  418.             MatchClasses[1] = class'ControlledDifficulty_Enhanced.CD_Pawn_ZedFleshpoundMini_Special_RS';
  419.             ReplaceZedClass( MatchClasses,
  420.                             class'ControlledDifficulty_Enhanced.CD_Pawn_ZedFleshpoundMini_Special_NRS',
  421.                             AISpawnList )
  422.         }
  423.         else
  424.         {
  425.             `cdlog("FleshpoundRageSpawns="$FleshpoundRageSpawnsBool$": scanning AISpawnList of length "$AISpawnList.Length$" at squadidx "$SquadIdx, bLogControlledDifficulty);
  426.  
  427.             // Replace all standard fleshpound classes with forced-regular fleshpounds
  428.             MatchClasses.Length = 2;
  429.             MatchClasses[0] = AIClassList[AT_FleshpoundMini];
  430.             MatchClasses[1] = class'ControlledDifficulty_Enhanced.CD_Pawn_ZedFleshpoundMini_Regular_RS';
  431.             ReplaceZedClass( MatchClasses,
  432.                             class'ControlledDifficulty_Enhanced.CD_Pawn_ZedFleshpoundMini_Regular_NRS',
  433.                             AISpawnList );
  434.         }
  435.  
  436.         if ( !AlbinoFleshpoundsBool )
  437.         {
  438.             `cdlog("FleshpoundRageSpawns="$FleshpoundRageSpawnsBool$": scanning AISpawnList of length "$AISpawnList.Length$" at squadidx "$SquadIdx, bLogControlledDifficulty);
  439.  
  440.             // Replace all standard and albino fleshpound classes with forced-lazy albino fleshpounds
  441.             MatchClasses.Length = 2;
  442.             MatchClasses[0] = AIClassList[AT_FleshPound];
  443.             MatchClasses[1] = class'ControlledDifficulty_Enhanced.CD_Pawn_ZedFleshpound_Special_RS';
  444.             ReplaceZedClass( MatchClasses,
  445.                             class'ControlledDifficulty_Enhanced.CD_Pawn_ZedFleshpound_Regular_NRS',
  446.                             AISpawnList )
  447.                            
  448.             MatchClasses.Length = 2;
  449.             MatchClasses[0] = AIClassList[AT_FleshPound];
  450.             MatchClasses[1] = class'ControlledDifficulty_Enhanced.CD_Pawn_ZedFleshpound_Special_RS';
  451.             ReplaceZedClass( MatchClasses,
  452.                             class'ControlledDifficulty_Enhanced.CD_Pawn_ZedFleshpound_Regular_RS',
  453.                             AISpawnList )
  454.                            
  455.             MatchClasses.Length = 2;
  456.             MatchClasses[0] = AIClassList[AT_FleshPound];
  457.             MatchClasses[1] = class'ControlledDifficulty_Enhanced.CD_Pawn_ZedFleshpound_Special_RS';
  458.             ReplaceZedClass( MatchClasses,
  459.                             class'ControlledDifficulty_Enhanced.CD_Pawn_ZedFleshpound_Special_NRS',
  460.                             AISpawnList )
  461.         }
  462.         else
  463.         {
  464.             `cdlog("FleshpoundRageSpawns="$FleshpoundRageSpawnsBool$": scanning AISpawnList of length "$AISpawnList.Length$" at squadidx "$SquadIdx, bLogControlledDifficulty);
  465.  
  466.             // Replace all standard fleshpound classes with forced-lazy fleshpoundss
  467.             MatchClasses.Length = 2;
  468.             MatchClasses[0] = AIClassList[AT_FleshPound];
  469.             MatchClasses[1] = class'ControlledDifficulty_Enhanced.CD_Pawn_ZedFleshpound_Regular_RS';
  470.             ReplaceZedClass( MatchClasses,
  471.                             class'ControlledDifficulty_Enhanced.CD_Pawn_ZedFleshpound_Regular_NRS',
  472.                             AISpawnList );
  473.         }
  474.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement