aeroson

Untitled

Nov 6th, 2015
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.13 KB | None | 0 0
  1. #include "macros.sqf"
  2.  
  3.  
  4. GVAR(avoidPositions) = [
  5. [getMarkerPos "respawn_west", 1000]
  6. ];
  7.  
  8.  
  9.  
  10. GVAR(cachesCountMax) = 10;
  11. GVAR(cachesCountMin) = 5;
  12.  
  13. GVAR(chanceCachesAreInsideBuilding) = 90; // 90%, otherwise they are on ground outside
  14. GVAR(chanceOfNotUsingSquare) = 5; // 5% chance that potential usable square will not be used
  15.  
  16. // these classes are counted as houses and caches try to spawn inside them
  17. GVAR(includeHousesClass) = ["Jbad_House", "Jbad_House_old", "Jbad_House_c", "Land_Jbad_A_Mosque_small_2"];
  18. if(worldName != "Kunduz") then {
  19. GVAR(includeHousesClass) pushBack "Building";
  20. };
  21.  
  22.  
  23. // these clases are excluded from map info, are not counted as houses
  24. GVAR(excludeHouseClasses) = [
  25. "Piers_base_F", // bridge
  26. "Land_Runway_PAPI_3","Land_Runway_PAPI_2","Land_Runway_PAPI","Land_Runway_edgelight","Land_Runway_PAPI_4","Land_NavigLight", // runway stuff
  27. "Land_Nav_Boathouse_PierT", // not boathouse just a walkway
  28. "Land_sloup_vn", "Land_sloup_vn_drat" // chernarus powerlines
  29. ];
  30.  
  31.  
  32.  
  33.  
  34. // set automatically based on number of hostiles and number of caches
  35. // GVAR(enemyDropsIntelChance) = 15; // 25 = 25 percent chance = 1 in 4 soldiers will drop intel
  36.  
  37. GVAR(spawnDistance) = 350; // how far from players do enemies spawn
  38.  
  39. GVAR(enemiesSpawnIfYouAreUnderThisHeight) = 300; // meters
  40.  
  41.  
  42. // getArray (configFile >> "CfgWorlds" >> worldName >> "centerPosition");
  43. GVAR(aoWidthInMeters) = getNumber( configFile >> "CfgWorlds" >> worldName >> "mapSize" ); // width of ao square in meters
  44.  
  45. // these map doesnt have defined mapSize
  46. if(worldName == "Mountains_ACR") then { GVAR(aoWidthInMeters) = 6300; };
  47. if(worldName == "Panthera3") then { GVAR(aoWidthInMeters) = 10000; };
  48.  
  49. if(GVAR(aoWidthInMeters)==0) then { GVAR(aoWidthInMeters) = 10001; }; // workaround if it happens on more maps
  50.  
  51.  
  52. // should be in the middle of map square to look good
  53. GVAR(aoBottomLeftCorner) = [50,50];
  54. if(worldName == "Panthera3") then { GVAR(aoBottomLeftCorner) = [50,90]; };
  55. if(worldName == "Chernarus_Summer") then { GVAR(aoBottomLeftCorner) = [50,10]; };
  56.  
  57. GVAR(aoSquareWidth) = 100; // one square is this meters wide
  58.  
  59.  
  60. // default pools
  61. GVAR(civilianPool) = ["C_man_1","C_man_1_1_F","C_man_1_2_F","C_man_1_3_F","C_man_hunter_1_F","C_man_p_beggar_F","C_man_p_beggar_F_afro","C_man_p_fugitive_F","C_man_p_shorts_1_F","C_man_polo_1_F","C_man_polo_2_F","C_man_polo_3_F","C_man_polo_4_F","C_man_polo_5_F","C_man_polo_6_F","C_man_shorts_1_F","C_man_shorts_2_F","C_man_shorts_3_F","C_man_shorts_4_F","C_man_w_worker_F"];
  62. GVAR(civilianVehiclePool) = ["C_Hatchback_01_F","C_Hatchback_01_sport_F","C_Offroad_01_F","C_SUV_01_F","C_Van_01_box_F","C_Van_01_fuel_F","C_Van_01_transport_F"];
  63.  
  64.  
  65.  
  66. if(worldName == "Altis") then {
  67. GVAR(aoSquareWidth) = 500; // one square is this meters wide
  68. };
  69.  
  70. if(worldName == "Mountains_ACR") then {
  71. GVAR(cachesCountMax) = 2;
  72. GVAR(cachesCountMin) = 5;
  73. };
  74.  
  75. //if(worldName in ["Kunduz", "IslaDuala3", "Mountains_ACR"]) then {
  76.  
  77. GVAR(civilianPool) = ["LOP_CHR_Civ_Villager_01","LOP_CHR_Civ_Woodlander_01","LOP_CHR_Civ_Worker_01","LOP_CHR_Civ_Rocker_01","LOP_CHR_Civ_Profiteer_01","LOP_CHR_Civ_Priest_01","LOP_CHR_Civ_Doctor_01","LOP_CHR_Civ_Policeman_01","LOP_CHR_Civ_Functionary_01"];
  78. GVAR(civilianVehiclePool) = ["RHS_Mi8amt_civilian","RHS_Ural_Civ_01","RHS_Ural_Civ_02","RHS_Ural_Civ_03","RHS_Ural_Open_Civ_01","RHS_Ural_Open_Civ_02","RHS_Ural_Open_Civ_03","C_Hatchback_01_F","C_Hatchback_01_sport_F","C_Offroad_01_F","C_SUV_01_F","C_Van_01_box_F","C_Van_01_fuel_F","C_Van_01_transport_F"];
  79.  
  80. GVAR(enemiesSide) = opfor;
  81. GVAR(infantryPool) = ["LOP_ChDKZ_Infantry_Bardak","LOP_ChDKZ_Infantry_Commander","LOP_ChDKZ_Infantry_TL","LOP_ChDKZ_Infantry_Corpsman","LOP_ChDKZ_Infantry_SL","LOP_ChDKZ_Infantry_Rifleman","LOP_ChDKZ_Infantry_GL","LOP_ChDKZ_Infantry_AT","LOP_ChDKZ_Infantry_MG","LOP_ChDKZ_Infantry_Marksman","LOP_ChDKZ_Infantry_Engineer","rhs_msv_sergeant","rhs_msv_junior_sergeant","rhs_msv_grenadier","rhs_msv_rifleman","rhs_msv_machinegunner","rhs_msv_at","rhs_msv_strelok_rpg_assist","rhs_msv_rifleman","rhs_msv_medic","rhs_msv_officer","rhs_msv_officer_armored","rhs_msv_efreitor","rhs_msv_aa","rhs_msv_strelok_rpg_assist","rhs_msv_lat","rhs_msv_machinegunner_assistant","rhs_msv_marksman"];
  82. GVAR(motorizedPool) = ["LOP_ChDKZ_BM21","LOP_ChDKZ_Ural","LOP_ChDKZ_Ural_open","LOP_ChDKZ_UAZ","LOP_ChDKZ_UAZ_Open","rhs_9k79","RHS_BM21_MSV_01","rhs_gaz66_ammo_msv","rhs_gaz66_ap2_msv","rhs_gaz66_flat_msv","rhs_gaz66_msv","rhs_gaz66_r142_msv","rhs_gaz66_repair_msv","rhs_gaz66o_flat_msv","rhs_gaz66o_msv","rhs_tigr_3camo_msv","rhs_tigr_ffv_3camo_msv","rhs_tigr_ffv_msv","rhs_tigr_msv","RHS_UAZ_MSV_01","rhs_uaz_open_MSV_01","RHS_Ural_Flat_MSV_01","RHS_Ural_Fuel_MSV_01","RHS_Ural_Open_Flat_MSV_01","RHS_Ural_Open_MSV_01","RHS_Ural_Support_MSV_Base_01"];
  83. GVAR(armorPool) = ["LOP_ChDKZ_T72BB","LOP_ChDKZ_T72BA","LOP_ChDKZ_BMP2D","LOP_ChDKZ_BMP2","LOP_ChDKZ_BMP1","LOP_ChDKZ_BMP1D","LOP_ChDKZ_ZSU234","LOP_ChDKZ_BTR60","LOP_ChDKZ_BTR70","rhs_bmp1_msv","rhs_bmp1d_msv","rhs_bmp1k_msv","rhs_bmp1p_msv","rhs_bmp2_msv","rhs_bmp2d_msv","rhs_bmp2e_msv","rhs_bmp2k_msv","rhs_bmp3_late_msv","rhs_bmp3_msv","rhs_bmp3m_msv","rhs_bmp3mera_msv","rhs_brm1k_msv","rhs_btr60_msv","rhs_btr70_msv","rhs_btr80_msv","rhs_btr80a_msv","rhs_prp3_msv","rhs_t72ba_tv","rhs_t72bb_tv","rhs_t72bc_tv","rhs_t72bd_tv","rhs_t80","rhs_t80a","rhs_t80b","rhs_t80bk","rhs_t80bv","rhs_t80bvk","rhs_t80u","rhs_t80u45m","rhs_t80ue1","rhs_t80uk","rhs_t80um","rhs_t90_tv","rhs_t90a_tv","rhs_zsu234_aa"];
  84. GVAR(stationaryPool) = ["LOP_ChDKZ_NSV_TriPod"];
  85. GVAR(transportHeliPool) = ["LOP_ChDKZ_Mi8MT_Cargo","rhs_ka60_c","RHS_Mi8mt_Cargo_vvsc","RHS_Mi8mt_vvsc","RHS_Mi8MTV3_vvsc"];
  86. GVAR(attackHeliPool) = ["LOP_ChDKZ_Mi8MTV3_FAB","LOP_ChDKZ_Mi8MTV3_UPK23","RHS_Ka52_UPK23_vvsc","RHS_Ka52_vvsc","RHS_Mi24P_AT_vvsc","RHS_Mi24P_CAS_vvsc","RHS_Mi24P_vvsc","RHS_Mi24V_AT_vvsc","RHS_Mi24V_FAB_vvsc","RHS_Mi24V_UPK23_vvsc","RHS_Mi24V_vvsc","RHS_Mi8AMT_vvsc","RHS_Mi8AMTSh_UPK23_vvsc","RHS_Mi8AMTSh_vvsc","RHS_Mi8MTV3_FAB_vvsc","RHS_Mi8MTV3_UPK23_vvsc","RHS_Su25SM_KH29_vvsc","RHS_Su25SM_vvsc"];
  87.  
  88.  
  89.  
  90.  
  91.  
  92. GVAR(cachesCount) = GVAR(cachesCountMin) + round ( random ( GVAR(cachesCountMax) - GVAR(cachesCountMin) ) );
  93. publicVariable QGVAR(cachesCount);
Advertisement
Add Comment
Please, Sign In to add comment