Advertisement
Palland

A3XAI - Add reinforcement paratroopers

Mar 31st, 2019
325
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.91 KB | None | 0 0
  1. // This is meant for Kuplion´s A3XAI Version = "0.2.1"
  2.  
  3. // First go to https://pastebin.com/FRsHY2vE and copy the code. Create a new file, name it A3XAI_reinforce_begin.sqf open it and paste the copied code in and save.
  4.  
  5. // Open a3xai.pbo and find loadSettings.sqf located in a3xai\init
  6.  
  7. // Search for ["airReinforcementAllowedFor",["static","dynamic","random"]], and insert this code underneath :
  8.  
  9. ["airReinforceDeployChance0",0.60],
  10. ["airReinforceDeployChance1",0.70],
  11. ["airReinforceDeployChance2",0.80],
  12. ["airReinforceDeployChance3",0.90],
  13.  
  14. // as shown below.
  15.  
  16. ["airReinforcementSpawnChance0",0.00],
  17. ["airReinforcementSpawnChance1",0.10],
  18. ["airReinforcementSpawnChance2",0.20],
  19. ["airReinforcementSpawnChance3",0.30],
  20. ["airReinforcementAllowedFor",["static","dynamic","random"]],
  21. ["airReinforceDeployChance0",0.60],
  22. ["airReinforceDeployChance1",0.70],
  23. ["airReinforceDeployChance2",0.80],
  24. ["airReinforceDeployChance3",0.90],
  25. ["airReinforcementDuration0",120],
  26. ["airReinforcementDuration1",180],
  27. ["airReinforcementDuration2",240],
  28. ["airReinforcementDuration3",300],
  29.  
  30.  
  31. // Go to a3xai\compile\A3XAI_behavior
  32.  
  33. // and overwrite A3XAI_reinforce_begin.sqf with the file you created at the start.
  34.  
  35. // save and repack pbo.
  36.  
  37.  
  38. // Open config in A3XAI_config.pbo
  39.  
  40. // Search for airReinforcementAllowedFor And insert this code underneath :
  41.  
  42. //Probability to deploy infantry AI. If chance roll fails, air vehicle will remain in area for duration defined by airReinforcementDuration0-3 and engage detected players
  43. //Unarmed air vehicle will always have a 1.00 probability to deploy at least 1 infantry AI unit.
  44. airReinforceDeployChance0 = 0.60;
  45. airReinforceDeployChance1 = 0.70;
  46. airReinforceDeployChance2 = 0.80;
  47. airReinforceDeployChance3 = 0.90;
  48.  
  49. // As shown below
  50.  
  51. //AI types permitted to summon reinforcements. Default: airReinforcementAllowedFor[] = {"static","dynamic","random"};
  52. //Usable AI types: "static", "dynamic", "random", "air", "land", "staticcustom", "aircustom", "landcustom", "vehiclecrew"
  53. airReinforcementAllowedFor[] = {"static","dynamic","random","vehiclecrew","land","air"};
  54.  
  55. //Probability to deploy infantry AI. If chance roll fails, air vehicle will remain in area for duration defined by
  56. airReinforcementDuration0-3 and engage detected players
  57. //Unarmed air vehicle will always have a 1.00 probability to deploy at least 1 infantry AI unit.
  58. airReinforceDeployChance0 = 0.60;
  59. airReinforceDeployChance1 = 0.70;
  60. airReinforceDeployChance2 = 0.80;
  61. airReinforceDeployChance3 = 0.90;
  62.  
  63. //Maximum time for reinforcement for armed air vehicles in seconds. AI air vehicle will leave the area after this time if not destroyed.
  64. airReinforcementDuration0 = 120;
  65. airReinforcementDuration1 = 280;
  66. airReinforcementDuration2 = 280;
  67. airReinforcementDuration3 = 280;
  68.  
  69. // save and repack pbo.
  70.  
  71. // If using a HC copy a3xai.pbo to HC folder and overwrite existing pbo.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement