Guest User

player_spawn_mover.sqf

a guest
Mar 25th, 2015
329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.98 KB | None | 0 0
  1. if(!isServer)then{
  2. titleCut ["", "BLACK FADED", 999];
  3. _temp_locations=[
  4. [20748,6726.75,0.1],
  5. [21631.6,7593.58,0.1],
  6. [18470.2,8170.48,0.1],
  7. [20603.1,8803.3,0.1],
  8. [14884,11099.2,0.1],
  9. [17138.6,11473.9,0.1],
  10. [21446.5,10915.9,0.1],
  11. [20024.2,11627.7,0.1],
  12. [16624.6,12560.9,0.1],
  13. [16856.4,12485.3,0.1],
  14. [17142,12920.5,0.1],
  15. [19239.7,13245,0.1],
  16. [19502.2,13410.8,0.1],
  17. [22386.9,13595.6,0.1],
  18. [21557,14072.5,0.1],
  19. [19340.8,14415.3,0.1],
  20. [18299.1,14093.1,0.1],
  21. [17417,13352.3,0.1],
  22. [22309.9,15384.6,0.1],
  23. [21343.9,15344,0.1],
  24. [20658.3,15587.7,0.1],
  25. [19327.8,15402.8,0.1],
  26. [18071.9,15753.6,0.1],
  27. [17871,15239.2,0.1],
  28. [18296.5,15153.9,0.1],
  29. [24128.2,15656.9,0.1],
  30. [23948.7,15885.2,0.1],
  31. [22133.1,15874,0.1],
  32. [23788.1,16440.8,0.1],
  33. [23436.6,16634.3,0.1],
  34. [22377.2,16305,0.1],
  35. [22138.5,16848,0.1],
  36. [21545.3,16495.1,0.1],
  37. [21470.7,16261.6,0.1],
  38. [21197.1,16452.9,0.1],
  39. [21146.2,16846.7,0.1],
  40. [20538.1,16105,0.1],
  41. [19937.5,16830.6,0.1],
  42. [19182.7,16050.4,0.1],
  43. [18624.4,16490.2,0.1],
  44. [19055.9,16734.9,0.1],
  45. [19167.8,16962.3,0.1],
  46. [17518.9,16620.6,0.1],
  47. [16748,16136.1,0.1],
  48. [16675.9,16372.1,0.1],
  49. [15950.8,16436.4,0.1],
  50. [16334,16870.9,0.1],
  51. [15936.6,17257.4,0.1],
  52. [16608.5,17463.9,0.1],
  53. [17177.1,17265.8,0.1],
  54. [17811.6,17739.9,0.1],
  55. [18358.7,17149.9,0.1],
  56. [18880.9,17665.1,0.1],
  57. [19171.3,17659.8,0.1],
  58. [19841.5,17439.7,0.1],
  59. [20091.6,17735.9,0.1],
  60. [20962.6,17335.9,0.1],
  61. [21427.3,17193.6,0.1],
  62. [22225.6,17857.6,0.1],
  63. [22727,17214.5,0.1],
  64. [22899.1,18856.6,0.1],
  65. [22245,18307.5,0.1],
  66. [21343.1,18749.6,0.1],
  67. [21457.2,18118.6,0.1],
  68. [20762.1,18386,0.1],
  69. [20079.5,18082.9,0.1],
  70. [19756.9,18730,0.1],
  71. [19049.3,18054.4,0.1],
  72. [17754,18027.2,0.1],
  73. [18468.7,18014.7,0.1],
  74. [18923.2,18357,0.1],
  75. [19375.9,19316,0.1],
  76. [20097.8,19808.1,0.1],
  77. [20382.9,19205.5,0.1],
  78. [20824.9,19399.8,0.1],
  79. [21550.3,19405.2,0.1],
  80. [22197.3,19834.8,0.1],
  81. [22846.1,19087.9,0.1],
  82. [23108.1,19834.8,0.1],
  83. [23790.7,19756.4,0.1],
  84. [24355.7,19710,0.1],
  85. [24853,19553.1,0.1],
  86. [25325.3,19193,0.1],
  87. [25467.9,19708.2,0.1],
  88. [27374.9,20884.8,0.1],
  89. [26783.2,20793.9,0.1],
  90. [26095.3,20658.4,0.1],
  91. [25811.9,20239.5,0.1],
  92. [25277.2,20316.1,0.1],
  93. [25090,20831.3,0.1],
  94. [24471.6,20827.7,0.1],
  95. [24491.2,20287.6,0.1],
  96. [23653.5,20811.7,0.1],
  97. [23225.7,20540.7,0.1],
  98. [23311.3,20023.8,0.1],
  99. [22470.1,20111.1,0.1],
  100. [22475.4,20571,0.1],
  101. [20666.4,20262.6,0.1],
  102. [20185.2,20114.7,0.1],
  103. [27823.8,21591.5,0.1],
  104. [27148.8,21468.2,0.1],
  105. [26483.3,21703.8,0.1],
  106. [26582.9,21218.4,0.1],
  107. [25893.6,21422.3,0.1],
  108. [25495.3,21561.5,0.1],
  109. [25482.6,21063.4,0.1],
  110. [25082.7,21754.4,0.1],
  111. [24546.8,21868.2,0.1],
  112. [24347.7,21269,0.1],
  113. [23528.8,21727.5,0.1],
  114. [23128.9,21112.5,0.1],
  115. [22419.1,21148.8,0.1],
  116. [21820,21136.2,0.1],
  117. [22773.4,22292.8,0.1],
  118. [23293.5,22194.8,0.1],
  119. [23633.3,22737.1,0.1],
  120. [24491.7,22534.7,0.1],
  121. [25368.6,22239.8,0.1],
  122. [25750.4,22732.3,0.1],
  123. [26618.5,22201.6,0.1],
  124. [26911.9,22957.4,0.1],
  125. [27494.7,22543.3,0.1],
  126. [27225.4,23063.9,0.1],
  127. [26785.3,23512.1,0.1],
  128. [26045.8,23343.3,0.1],
  129. [25336.4,23160.4,0.1],
  130. [24498.4,23104.1,0.1],
  131. [24215.1,23881.9,0.1],
  132. [23668.5,23628.7,0.1],
  133. [23863.6,24239.1,0.1],
  134. [26805,24357.3,0.1],
  135. [27563.6,24940.6,0.1],
  136. [12612,7068.36,0.1],
  137. [11470.6,7152.78,0.1],
  138. [9205.79,7717.57,0.1],
  139. [9479.09,8481.34,0.1],
  140. [11358,8702.43,0.1],
  141. [12394.9,9259.18,0.1],
  142. [11317.8,9534.54,0.1],
  143. [10138.2,10181.7,0.1],
  144. [10907.2,10875.6,0.1],
  145. [8205.15,10097,0.1],
  146. [8431.5,10803.8,0.1],
  147. [9499.11,10966,0.1],
  148. [6154.51,10901,0.1],
  149. [6047.02,10319.3,0.1],
  150. [5034.53,10737.4,0.1],
  151. [5557.76,10363.7,0.1],
  152. [4770.42,9892.74,0.1],
  153. [4624.27,10245.6,0.1],
  154. [4479.91,10823.1,0.1],
  155. [3719.18,10682.4,0.1],
  156. [3615.7,10282.1,0.1],
  157. [2866.51,10014,0.1],
  158. [3432.88,11779.4,0.1],
  159. [3905.13,11285,0.1],
  160. [4153.81,11965.8,0.1],
  161. [4303.03,11624.3,0.1],
  162. [4907.89,11271.9,0.1],
  163. [5087.72,11027.9,0.1],
  164. [5459.39,11343.3,0.1],
  165. [5844.37,11778.2,0.1],
  166. [6459.26,11188.2,0.1],
  167. [6835.33,11753.2,0.1],
  168. [7275.56,11403.9,0.1],
  169. [7820.95,11667.7,0.1],
  170. [8197.02,11592.8,0.1],
  171. [8954.5,11469.8,0.1],
  172. [8788.75,11963.5,0.1],
  173. [9345.82,11978.6,0.1],
  174. [9802.88,11570.9,0.1],
  175. [10194.7,11401.9,0.1],
  176. [10847.9,11336.7,0.1],
  177. [11218.6,11532.8,0.1],
  178. [11735.7,12097.4,0.1],
  179. [12372.4,12720.5,0.1],
  180. [11299.5,12659.9,0.1],
  181. [10829.2,12253.4,0.1],
  182. [10340.1,12239.7,0.1],
  183. [9472.34,12598.7,0.1],
  184. [9280.71,12049.4,0.1],
  185. [7197.22,12330.2,0.1],
  186. [6691.37,12761.7,0.1],
  187. [5679.68,12278,0.1],
  188. [4868.75,12652.6,0.1],
  189. [4136.85,12693.7,0.1],
  190. [3381.25,12233.7,0.1],
  191. [3591.49,12647.9,0.1],
  192. [3798.29,13345.1,0.1],
  193. [3799.11,13929.1,0.1],
  194. [4225.12,13656.2,0.1],
  195. [4707.08,13457.8,0.1],
  196. [5371.56,13338.7,0.1],
  197. [6558.35,13687.9,0.1],
  198. [7487.96,13540.1,0.1],
  199. [8773.76,13121.7,0.1],
  200. [9609.74,13678.3,0.1],
  201. [10678.8,13143.8,0.1],
  202. [10865.7,13640.1,0.1],
  203. [11319.9,13443.2,0.1],
  204. [11934.8,13875.2,0.1],
  205. [12857.2,13461.3,0.1],
  206. [13123.7,14918.7,0.1],
  207. [12464.3,14651.4,0.1],
  208. [12039.2,14095.1,0.1],
  209. [11555.5,14265.2,0.1],
  210. [10888.4,14524.5,0.1],
  211. [9310.88,14590.8,0.1],
  212. [8189.55,14546.6,0.1],
  213. [7305.35,14496.3,0.1],
  214. [6159.9,14624.9,0.1],
  215. [5452.54,14657.1,0.1],
  216. [3471.12,14363.7,0.1],
  217. [4506.04,14691.2,0.1],
  218. [4698.96,15665.9,0.1],
  219. [5701.73,15479,0.1],
  220. [6457.32,15754.3,0.1],
  221. [7572.62,15147.4,0.1],
  222. [8490.98,15388.6,0.1],
  223. [9509.82,15694,0.1],
  224. [10474.4,15374.5,0.1],
  225. [11788.7,15907,0.1],
  226. [12582.4,15479,0.1],
  227. [13697.7,15408.7,0.1],
  228. [14089.3,15984.7,0.1],
  229. [14124.7,16862.2,0.1],
  230. [13263.8,16914.4,0.1],
  231. [12240.6,16449.7,0.1],
  232. [11306.1,16194.7,0.1],
  233. [10420.2,16502.9,0.1],
  234. [9160.46,16434.9,0.1],
  235. [8564.56,16867.7,0.1],
  236. [7465.67,16551.7,0.1],
  237. [6396.23,16540.4,0.1],
  238. [5068.49,16424.9,0.1],
  239. [4494.26,16382.6,0.1],
  240. [3301.66,17829.9,0.1],
  241. [4500.25,17458.5,0.1],
  242. [5784.94,17585.3,0.1],
  243. [6756.95,17236.5,0.1],
  244. [7735.76,17796,0.1],
  245. [8342.98,17619.3,0.1],
  246. [9815.73,17841.3,0.1],
  247. [10488.77,17531,0.1],
  248. [11508.3,17517.4,0.1],
  249. [12181.2,17859.4,0.1],
  250. [13937.2,17476.6,0.1],
  251. [14512.7,17845.8,0.1],
  252. [14623.7,17417.7,0.1],
  253. [15588.9,17721.2,0.1],
  254. [16338.9,18629.5,0.1],
  255. [15416.7,18362.2,0.1],
  256. [14650.9,18817.5,0.1],
  257. [14211.3,18160.6,0.1],
  258. [13402.5,18369,0.1],
  259. [12330.8,18400.7,0.1],
  260. [11526.4,18552.5,0.1],
  261. [10144.3,18613.6,0.1],
  262. [9369.4,18733.7,0.1],
  263. [7291.7,18529.8,0.1],
  264. [6408.05,18652.1,0.1],
  265. [5397.52,18634,0.1],
  266. [4482.15,18545.7,0.1],
  267. [3145.36,18733.7,0.1],
  268. [3539.21,19588.2,0.1],
  269. [4671.39,19429.3,0.1],
  270. [5463.15,19497.6,0.1],
  271. [6534.24,19746.7,0.1],
  272. [7721.89,19288.7,0.1],
  273. [8919.58,19513.7,0.1],
  274. [9811.82,19590,0.1],
  275. [10727.8,19313.6,0.1],
  276. [11670.3,19313.6,0.1],
  277. [12681,19602.1,0.1],
  278. [13771.8,19497,0.1],
  279. [14709.3,19436.4,0.1],
  280. [15709.2,19791,0.1],
  281. [16660.9,19546.9,0.1],
  282. [17459.4,19219,0.1],
  283. [16298.6,20497.6,0.1],
  284. [15335.6,20404.8,0.1],
  285. [14359.1,20681.1,0.1],
  286. [13369,20484,0.1],
  287. [12358.4,20454.6,0.1],
  288. [11414.3,20523.3,0.1],
  289. [10618.6,20692.5,0.1],
  290. [9452.92,20591,0.1],
  291. [8385.32,20548.2,0.1],
  292. [7419.31,20664,0.1],
  293. [6508.54,20569.6,0.1],
  294. [5352.16,20649.6,0.1],
  295. [4411.86,20348.4,0.1],
  296. [3254.06,20491.1,0.1],
  297. [3484.09,21562.8,0.1],
  298. [4439.17,21621.8,0.1],
  299. [5665.87,21928.8,0.1],
  300. [6508.7,21335.4,0.1],
  301. [7677.87,21659.3,0.1],
  302. [8670.28,21663.8,0.1],
  303. [9721.59,21779.3,0.1],
  304. [10607.5,21824.6,0.1],
  305. [11663.4,21217.6,0.1],
  306. [12866.5,21700,0.1],
  307. [13704.8,21142.8,0.1],
  308. [14749.3,21618.5,0.1],
  309. [15596.7,21385.2,0.1],
  310. [16541.5,21756.6,0.1],
  311. [15304.6,22270.2,0.1],
  312. [14396.3,22304.4,0.1],
  313. [13441.8,22469.1,0.1],
  314. [12619.9,22565.5,0.1],
  315. [11225.3,22236.1,0.1],
  316. [10296.8,22370.7,0.1],
  317. [9073.03,22400.8,0.1],
  318. [8050.17,22439,0.1],
  319. [6157.17,22218,0.1],
  320. [4095.37,22388.7,0.1]
  321. ];
  322.  
  323. _good_position=true;
  324.  
  325. _temp_pos = _temp_locations select (floor random (count _temp_locations));
  326. _nearest_objects=_temp_pos nearObjects 30;
  327. _built_objects = ["Foundation_EPOCH","MetalFloor_EPOCH", "CinderWallHalf_EPOCH", "CinderWall_EPOCH", "WoodFloor_EPOCH", "WoodFloorHalf_EPOCH", "WoodFloorQuarter_EPOCH", "WoodLargeWall_EPOCH", "WoodSmallWallThird_EPOCH"];
  328.  
  329. {
  330. if(_x in _nearest_objects)then{
  331. _good_position=false;
  332. };
  333. } forEach _built_objects;
  334.  
  335. if(_good_position)then{
  336. player setPos _temp_pos;
  337. titlecut [" ","BLACK IN",1];
  338. }else{
  339. [] execvm "custom\player_spawn_mover.sqf";
  340. };
  341. };
Advertisement
Add Comment
Please, Sign In to add comment