home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1998 April B / Pcwk4b98.iso / Gry / DARKREIG / Data / Dark / Aip / TDHar1.AIP < prev    next >
Text File  |  1997-10-28  |  8KB  |  248 lines

  1. /*****************************************************************************
  2.  
  3.   Defarley.AIP
  4.  
  5.  *****************************************************************************/
  6.  
  7. #include "aipdef.h"
  8.  
  9. // How often do we recompute the strategy?
  10. int recompute_strategy_period = 40;
  11.  
  12.  
  13. int infiltrator_period = 2;
  14.  
  15. // PRIORITIES
  16. int ground_unit_threat = 10;
  17. int threat_priority = 10;
  18. int distance_priority = -2;
  19. int defend_buildings_priority = 500;
  20. int attack_enemy_base_priority = 78;
  21. int persistence_priority = 30;
  22. int exploration_priority = 500;
  23. int scripted_priority = 0;
  24. int single_use_group_priority = 30;
  25. int perimeter_priority = 100;
  26. int resource_priority = 400;
  27. int danger_priority = 1000;  
  28. int danger_diminishment = 1;
  29.  
  30. // TROOP COMMITMENT STUFF 
  31. double min_matching_force_ratio = 2.0;
  32. double max_matching_force_ratio = 7.0;
  33.  
  34. // When generic troops are called for, what should be ratio of troops that can
  35. // shoot ground targets to troops that can shoot air targets?
  36. double generic_ground_ratio = 1.0;
  37.  
  38. int min_building_defense_force = 40;
  39. int max_building_defense_force = 300;
  40.  
  41. int min_exploration_force = 1;
  42. int max_exploration_force = 200;
  43.  
  44. int min_perimeter_force = 40;
  45. int max_perimeter_force = 70;
  46.  
  47. int min_resource_force = 300;
  48. int max_resource_force = 1000;
  49.  
  50. // RELAXATION STUFF 
  51. int relaxation_cycles = 1;
  52. float relaxation_coefficient = 1.0;
  53.  
  54. // The transport we should use
  55. #define transport "ImpGroundTransporter"
  56.  
  57. // Should we repair buildings during this aip
  58. int repair_buildings = YES;
  59.  
  60.  
  61.  
  62.  
  63. ///////////////////////////////////////////////////////////////////////////////
  64. // New Construction Program stuff
  65.  
  66.  
  67. ///////////////////////////////////////////////////////////////////////////////
  68. // The UCP Data
  69. // --------------------
  70. // This specifies what type of units to build.
  71. UNIT_CONSTRUCTION_PROGRAM unit_construction_program[MAX_UCP_LENGTH];
  72.  
  73. #DATA
  74.  
  75. //   Which Account          BUDGET          BUDGET CAP
  76. //----------------------------------------------------
  77.      "Slush_fund",          UNLIMITED,      UNLIMITED;
  78.      "Base_building",       40,             4000;
  79.      "Offensive",           60,             6000;
  80.  
  81. #END_DATA
  82.  
  83.  
  84.  
  85. ///////////////////////////////////////////////////////////////////////////////
  86. // ACCOUNT NOTES.
  87. // --------------
  88. // For each line item in an account, you must specify a build type from one of
  89. // the following... NUMBER_TO_HAVE, NUMBER_TO_BUILD, RATIO_TO_BUILD, or RATIO_TO_HAVE.
  90. //
  91. // The "RATIO" items can only occur in the lowest priority level of an account.
  92. // Also, all line-items with the same priority must have the same build type
  93.  
  94.  
  95.  
  96.  
  97. ///////////////////////////////////////////////////////////////////////////////
  98. // Slush_fund
  99. // --------------------
  100. // This specifies the baseline super-critical account
  101.  
  102. ACCOUNT Slush_fund[MAX_ACCOUNT_LENGTH];
  103.  
  104. #DATA
  105.  
  106. //  Priority     Item Name              Build Type              Build Amount
  107. //--------------------------------------------------------------------
  108.     19,          "tih1",                   NUMBER_TO_HAVE,         1;
  109.     19,          "TConstructionCrew",      NUMBER_TO_HAVE,         2;
  110.  
  111.  // water collection
  112.  
  113.     18,          "tfglp",                 NUMBER_TO_HAVE,         1;
  114.     17,          "TGroundTransporter",    NUMBER_TO_HAVE,         1;
  115.  
  116.  
  117. #END_DATA
  118.  
  119.  
  120. ///////////////////////////////////////////////////////////////////////////////
  121. // BASE_BUILDING
  122. // --------------------
  123. // How do we want to go about building our base?
  124.  
  125. ACCOUNT Base_building[MAX_ACCOUNT_LENGTH];
  126.  
  127. #DATA
  128.  
  129. //  Priority     Item Name              Build Type              Build Amount
  130. //--------------------------------------------------------------------
  131.  
  132.     // the basic base - power and troop production
  133.  
  134.     18,          "tfgpp",                 NUMBER_TO_HAVE,         1;
  135.     18,          "tiu1",                  NUMBER_TO_HAVE,         1;
  136.  
  137.  
  138.     // factory level one,
  139.  
  140.     16,          "tic1",                  NUMBER_TO_HAVE,         1;
  141.     16,          "timpre",                NUMBER_TO_HAVE,         1;
  142.  
  143.  
  144.     // for the firestriker mad
  145.  
  146.     15,          "tih2",                  NUMBER_TO_HAVE,         1;
  147.  
  148.     // for the tachyon tank
  149.  
  150.     14,          "tic2",                  NUMBER_TO_HAVE,         1;
  151.     14,          "tfgpp",                 NUMBER_TO_HAVE,         2;
  152.     14,          "tig",                   NUMBER_TO_HAVE,         2;
  153.  
  154.     // a defense point
  155.  
  156.     13,          "tfa",                   NUMBER_TO_HAVE,         1;
  157.  
  158.     // air support facility
  159.  
  160.     12,          "tih3",                  NUMBER_TO_HAVE,         1;
  161.     12,          "tiu2",                  NUMBER_TO_HAVE,         1;
  162.     12,          "timpar",                NUMBER_TO_HAVE,         1;
  163.  
  164.     // Base Defense facility
  165.  
  166.     10,          "tia",                   RATIO_TO_BUILD,         4;
  167.     10,          "tfs",                   RATIO_TO_BUILD,         1;
  168.     10,          "tfgpp",                 RATIO_TO_BUILD,         1;
  169.  
  170.  
  171. #END_DATA
  172.   
  173.  
  174.  
  175. ///////////////////////////////////////////////////////////////////////////////
  176. // OFFENSIVE
  177. // --------------------
  178. // What sort of offensive units and support structures do we want
  179.  
  180. ACCOUNT Offensive[MAX_ACCOUNT_LENGTH];
  181.  
  182. #DATA
  183.  
  184. //  Priority     Item Name              Build Type        Build Amount
  185. //--------------------------------------------------------------------
  186.  
  187.     5,           "TStrikeMarine",        RATIO_TO_BUILD,  8;
  188.     5,           "TFireSupportMarine",   RATIO_TO_BUILD,  4;
  189.     5,           "TMercenary",           RATIO_TO_BUILD,  4;
  190.     5,           "TSuicideNuker",        RATIO_TO_BUILD,  2;
  191.     5,           "TTankHunterTank",      RATIO_TO_BUILD,  4;
  192.     5,           "TMediumTank",          RATIO_TO_BUILD,  6;
  193.  
  194. #END_DATA
  195.  
  196. ///////////////////////////////////////////////////////////////////////////////
  197. // FORCE MATCHING
  198. // --------------
  199. // Which units do we want to emphasize & target with this aip?
  200. // Note that this can be used for BOTH the AI team's unit strengths and 
  201. // the opponents'
  202. FORCE_MATCHING My_Matchings[MAX_FORCE_MATCHING];
  203.  
  204. #DATA
  205.  
  206. // Unit Name             Multiplier
  207. //----------------------------------
  208.    "FGMercenary",        1.0;
  209.    "FGSpiderBike",       1.0;
  210.  
  211. #END_DATA
  212.  
  213.  
  214. ///////////////////////////////////////////////////////////////////////////////
  215. // Unit Match-ups
  216. // --------------
  217. // When we see a unit of one of the following types, build the corresponding 
  218. // unit in the corresponding quantity
  219. UNIT_MATCH_UP My_Match_ups[MAX_BUILDINGS];
  220.  
  221. #DATA
  222.  
  223. // Enemy Unit           What to build           How many to build
  224. //------------------------------------------------------------------
  225.    "TSkyBike",           "TIMPMAD",              0.5;
  226.    "TDualSkyBike",       "TMediumTank",          0.5;
  227.    "TVTOL",           "TMediumTank",          0.5;
  228.    "TSkyFortress",       "TMediumTank",          0.5;
  229.    "TReconSaucer",       "TMediumTank",          0.5;
  230.    "TFreedomFighter",   "TShredder",              0.05;
  231.    "TMercenary",        "TShredder",              0.05;
  232.    "TStrikeMarine",        "TShredder",         0.05;
  233.    "TFireSupportMarine",   "TShredder",         0.05;
  234.    "FGSkyBike",           "TFireSupportMarine", 1.5;
  235.    "FGDualSkyBike",       "TIMPMAD",               0.5;
  236.    "ImpVTOL",           "TFireSupportMarine", 1.5;
  237.    "IMPSkyFortress",       "TMediumTank",        0.5;
  238.    "IMPReconSaucer",       "TMediumTank",        0.2;
  239.    "IMPReconSaucer",       "TFireSupportMarine", 1.0;
  240.    "FGFreedomFighter",  "TShredder",          0.05;
  241.    "FGMercenary",       "TShredder",          0.05;
  242.    "IMPStrikeMarine",        "TShredder",     0.05;
  243.    "IMPFireSupportMarine",   "TShredder",     0.05;
  244.  
  245.  
  246. #END_DATA
  247.  
  248.