Guest User

Untitled

a guest
Apr 7th, 2024
1,574
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 8.69 KB | Gaming | 0 0
  1. <?php header('Content-Type: application/json; charset=utf-8'); ?>
  2. [
  3. <?php
  4.  
  5. // LIST OF WATER PUMPS AND POI
  6. $list = array(
  7.         array(8481.23,204.849,13961.4,'ARSENOVO'),
  8.         array(4397.29,7.76125,2471.69,"BALOTA"),
  9.         array(4075,371,11620,"BASHNYA"),
  10.         array(11938,55.1,9047,"BEREZINO 1"),
  11.         array(12715,7,9843,"BEREZINO 2"),
  12.         array(12916,7,10147,"BEREZINO 3"),
  13.         array(1070,153.1,6630,"BOLSHOY"),
  14.         array(3356,185.5,3908,"BOR"),
  15.         array(6893,405.6,11449,"CASTLE"),
  16.         array(10266,368.7,12051,"CHERNAYA"),
  17.         array(12103,96.3,13727,"CHERNAYA POLYANA"),
  18.         array(6576,7,2444,"CHERNO"),
  19.         array(13044,65.8,15083,"DUBROYE"),
  20.         array(11193,77.3,6576,"DOLINA"),
  21.         array(11459,160.6,10628,"DRUZHBA"),
  22.         array(6520,61.9,3601,"DUBOVO"),
  23.         array(10424,7,2217,"ELEKTRO"),
  24.         array(2889,272.3,3968,"ERBENKA"),
  25.         array(8436,361,6672,"GUGLOVO"),
  26.         array(8603,199.7,11863,"GVOZDNO"),
  27.         array(1260,296.6,11415,"HOSP 1"),
  28.         array(2732,25.4,1283,"ISLE 01",true),
  29.         array(13444,83.2,3290,"ISLE 02",true),
  30.         array(13476,5.5,2935,"ISLE 03",true),
  31.         array(5412,331.3,8568,"KABANINO"),
  32.         array(3249,287.6,11265,"KALINKA"),
  33.         array(7583,208.8,13468,"KALINOVA"),
  34.         array(3655,7.6,2454,"KOMAROVO"),
  35.         array(1905,7.2,2230,"KAMENKA"),
  36.         array(6704,378,14489,"KAMENSK"),
  37.         array(12042,6.9,3592,"KAMISHOVO"),
  38.         array(12710,90.8,4577,"KARMANOVKA"),
  39.         array(12305,105.9,10938,"KHELM"),
  40.         array(12252,93.8,10629,"KHELM 2"),
  41.         array(11436,330.6,11367,"KLEIN"),
  42.         array(4375,233.003,4648,"KOSLOVKA"),
  43.         array(11100,206.4,2327,"KRASNOTAV"),
  44.         array(6366,469,15018,"KRASNOYE"),
  45.         array(1450,299.8,9264,"KRONA"),
  46.         array(8356,293,5973,"KUMYRNA"),
  47.         array(2750,275,9973,"LOPATINO"),
  48.         array(9946,161.2,13168,"MEDVEZHI"),
  49.         array(1241,192.5,7228,"MILITARY 01",true),
  50.         array(7428,218,5156,"MOGILEVKA"),
  51.         array(1981,250,7299,"MYSHKINO"),
  52.         array(7209,254,6986,"NADEZHDA"),
  53.         array(5874,141.3,4704,"NADEZHDINO"),
  54.         array(9374,232.6,14547,"NARGONOYE"),
  55.         array(5158,310.3,10396,"NEAB1"),
  56.         array(3740,356.8,10406,"NEAB2"),
  57.         array(3440,193.8,13040,"NOVAYA PETROVKA"),
  58.         array(11534,59.8,14787,"NOVODMITROVSK1"),
  59.         array(11836,29.8,14335,"NOVODMITROVSK2"),
  60.         array(10770,53.9,14370,"NOVODMITROVSK3"),
  61.         array(6084,53.2,3405,"NOVOSELKI"),
  62.         array(7160,295.05,7702,"NOVY SOBOR"),
  63.         array(12948,23.8,8026,"NUZHNEYE"),
  64.         array(13354,96.4,12868,"OLSHA"),
  65.         array(2649,115.8,2223,"OSTROG"),
  66.         array(1662,145,3837,"PAVLOVO"),
  67.         array(14672,81.9,14045,"PEREVAL"),
  68.         array(3671,364.2,14869,"POBEDA"),
  69.         array(4484,295.98,6428,"POGOREVKA"),
  70.         array(5825,227.7,13570,"POLESOVO"),
  71.         array(14083,139.9,15035,"POLYANA"),
  72.         array(7965,7.8,3180,"PRIGORODKI"),
  73.         array(4900,320.1,5666,"PULKOVO"),
  74.         array(3104,308.6,7861,"PUSTOSHKA"),
  75.         array(8112,465.5,9241,"ZENIT"),
  76.         array(962,182,7674,"RAND1"),
  77.         array(4412,373.4,14721,"RAND2"),
  78.         array(1149,416.6,12901,"RAND3"),
  79.         array(802,467.5,12636,"RAND4"),
  80.         array(6246,157.3,12676,"RATNOYE"),
  81.         array(4791,271.7,6829,"ROGOVO"),
  82.         array(8002,116,12781,"SEVEROGRAD1"),
  83.         array(7622,120.5,12628,"SEVEROGRAD2"),
  84.         array(9668,210.2,6555,"SHAKHOVKA"),
  85.         array(220,312.6,7538,"SIMURG"),
  86.         array(1464,284.5,11942,"SINYSTOK"),
  87.         array(5794,331.7,14348,"SKALKA"),
  88.         array(13388,6.9,6281,"SOLNECHNY"),
  89.         array(10119,246,5489,"STAROYE"),
  90.         array(6089,302,7741,"STARY SOBOR"),
  91.         array(4968,475.1,15101,"STARY VAR"),
  92.         array(9395,93.9,13797,"SVERGINO"),
  93.         array(13805,21.1,13285,"SVETLOYARSK"),
  94.         array(10346,40.9,3471,"TOPOLKA"),
  95.         array(2826,217.7,12358,"TOPOLNIK"),
  96.         array(12853,24.4,5462,"TRI DOLINY"),
  97.         array(281,296,9374,"TRI KRESTA"),
  98.         array(12871,173,4424,"TULGA"),
  99.         array(13503,18.8,14040,"TUROVO"),
  100.         array(2214,266.4,11088,"VAVILOVO"),
  101.         array(3741,312,8948,"VYBOR"),
  102.         array(6539,323.1,6098,"VYSNHOYE"),
  103.         array(5814,74.5,2598,"VYSOTOVO"),
  104.         array(8186,183.3,11568,"WATER1"),
  105.         array(1154,345.4,10001,"ZABOLOTYE"),
  106.         array(4895,173.5,13054,"ZAPRUDNOYE"),
  107.         array(2723,205.5,5287,"ZELENO"),
  108.         array(586,142.8,5293,"ZVIR"),
  109. );
  110.  
  111. $loadouts = [
  112.                 [
  113.                     "faction"=>"Passive",
  114.                     "loadouts"=>["PoliceLoadout","YeetBrigadeLoadout","YellowKingLoadout","FireFighterLoadout","SurvivorLoadout"]
  115.                 ],
  116.                 [
  117.                     "faction"=>"Raiders",
  118.                     "loadouts"=>["PoliceLoadout","YeetBrigadeLoadout","YellowKingLoadout","FireFighterLoadout","SurvivorLoadout"]
  119.                 ],
  120.                 [
  121.                     "faction"=>"Mercenaries",
  122.                     "loadouts"=>["PoliceLoadout","YeetBrigadeLoadout","YellowKingLoadout","FireFighterLoadout","SurvivorLoadout"]
  123.                 ]
  124.             ];
  125. $allLoadOuts = [ "WestLoadout","EastLoadout","TTSKOLoadout","GorkaLoadout","PoliceLoadout","NBCLoadout","YeetBrigadeLoadout","YellowKingLoadout","FireFighterLoadout"
  126. ];
  127.  
  128. $commonLoadOuts = [
  129.                     "PoliceLoadout.json",
  130.                     "YeetBrigadeLoadout.json",
  131.                     "YellowKingLoadout.json",
  132.                     "FireFighterLoadout.json",
  133.                     "SurvivorLoadout.json"
  134.                 ];
  135. $militarLoadOuts = [
  136.                     "WestLoadout.json",
  137.                     "EastLoadout.json",
  138.                     "TTSKOLoadout.json",
  139.                     "GorkaLoadout.json",
  140.                     "PoliceLoadout.json",
  141.                     "NBCLoadout.json"
  142.                 ];
  143.  
  144. // CREATE THE STRUCTURE FOR EACH WATER PUMP/POI RAMDOMIZING FACTION AND LOADOUT
  145. foreach($list AS $item){
  146.     $theFaction = $loadouts[floor(rand(0,count($loadouts)-1))];
  147.     $loadOutNum = floor(rand(0,count($commonLoadOuts)-1));
  148.     echo '
  149.    {
  150.        "Spatial_Name": "'.$item[3].'",
  151.        "Spatial_TriggerRadius": 350.0,
  152.        "Spatial_ZoneLoadout": "'.$commonLoadOuts[$loadOutNum].'",
  153.        "Spatial_MinCount": 2,
  154.        "Spatial_MaxCount": 5,
  155.        "Spatial_HuntMode": 2,
  156.        "Spatial_Faction": "'.$theFaction['faction'].'",
  157.        "Spatial_Lootable": 1,
  158.        "Spatial_Chance": 1.0,
  159.        "Spatial_MinAccuracy": 0.35,
  160.        "Spatial_MaxAccuracy": 0.75,
  161.        "Spatial_Timer": 20.0,
  162.        "Spatial_SpawnMode": 1,
  163.        "Spatial_UnlimitedReload": 1,
  164.        "Spatial_TriggerPosition": [
  165.            '.$item[0].',
  166.            '.$item[1].',
  167.            '.$item[2].'
  168.        ],
  169.        "Spatial_SpawnPosition": [
  170.            [
  171.                '.$item[0].',
  172.                '.$item[1].',
  173.                '.$item[2].'
  174.            ]
  175.        ]
  176.    },';
  177. }
  178.  
  179. // GENERATE RANDOM BANDITS
  180. $i=0;
  181. while($i<=15){
  182.     $theFaction = $loadouts[floor(rand(0,count($loadouts)-1))];
  183.     $loadOutNum = floor(rand(0,count($commonLoadOuts)-1));
  184.     echo '
  185.    {
  186.        "Spatial_Name": "RANDBANDITS'.$i.'",
  187.        "Spatial_Safe": 0,
  188.        "Spatial_Radius": 200.0,
  189.        "Spatial_ZoneLoadout": "'.$commonLoadOuts[$loadOutNum].'",
  190.        "Spatial_MinCount": 2,
  191.        "Spatial_MaxCount": 5,
  192.        "Spatial_HuntMode": 5,
  193.        "Spatial_Faction": "'.$theFaction['faction'].'",
  194.        "Spatial_Lootable": 1,
  195.        "Spatial_Chance": 1.0,
  196.        "Spatial_MinAccuracy": 0.15,
  197.        "Spatial_MaxAccuracy": 0.95,
  198.        "Spatial_UnlimitedReload": 0,
  199.        "Spatial_Position": [
  200.            '.floor(rand(1500,8000)).',
  201.            0,
  202.            '.floor(rand(4500,8000)).'
  203.        ]
  204.    },';
  205.     $i++;
  206. }
  207.  
  208. // NORTHWEST RANDOM PATROLS
  209. $i=0;
  210. while($i<=30){
  211.     $theFaction = $loadouts[floor(rand(0,count($loadouts)-1))];
  212.     $loadOutNum = floor(rand(0,count($militarLoadOuts)-1));
  213.     echo '
  214.    {
  215.        "Spatial_Name": "RANDMILITIA'.$i.'",
  216.        "Spatial_Safe": 0,
  217.        "Spatial_Radius": 200.0,
  218.        "Spatial_ZoneLoadout": "'.$militarLoadOuts[$loadOutNum].'",
  219.        "Spatial_MinCount": 2,
  220.        "Spatial_MaxCount": 5,
  221.        "Spatial_HuntMode": 5,
  222.        "Spatial_Faction": "'.$theFaction['faction'].'",
  223.        "Spatial_Lootable": 1,
  224.        "Spatial_Chance": 1.0,
  225.        "Spatial_MinAccuracy": 0.15,
  226.        "Spatial_MaxAccuracy": 0.95,
  227.        "Spatial_UnlimitedReload": 0,
  228.        "Spatial_Position": [
  229.            '.floor(rand(600,8000)).',
  230.            0,
  231.            '.floor(rand(8000,14000)).'
  232.        ]
  233.    },';
  234.     $i++;
  235. }
  236. ?>]
Advertisement
Add Comment
Please, Sign In to add comment