Guest User

initServer.sqf

a guest
Oct 5th, 2016
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 4.75 KB | None | 0 0
  1. /**
  2.  * Created with Exile Mod 3DEN Plugin
  3.  * www.exilemod.com
  4.  */
  5.  
  6. ExileRouletteChairs = [];
  7. ExileRouletteChairPositions = [];
  8.  
  9. // 9 Vehicles
  10. private _vehicles = [
  11. ["Exile_Sign_Armory", [4347.27, 3819.12, 227.797], [0.995697, 0.0926645, 0], [0, 0, 1], false],
  12. ["Exile_Sign_Equipment", [4347.63, 3814.91, 227.797], [0.996102, 0.0882101, 0], [0, 0, 1], false],
  13. ["Exile_Sign_Food", [4344.51, 3811.65, 227.799], [-0.070887, 0.997484, 0], [0, 0, 1], false],
  14. ["Exile_Sign_Hardware", [4331.52, 3807.22, 227.805], [-0.995943, -0.0899865, 0], [0, 0, 1], false],
  15. ["Exile_Sign_SpecialOperations", [4331.16, 3811.84, 227.805], [-0.99568, -0.092856, 0], [0, 0, 1], false],
  16. ["Exile_Sign_WasteDump", [4330.76, 3816.79, 227.805], [-0.996589, -0.0825233, 0], [0, 0, 1], false],
  17. ["Exile_Sign_Aircraft", [4378.59, 3829.79, 228.433], [0.999548, -0.0300539, 0], [0, 0, 1], false],
  18. ["I_Heli_light_03_unarmed_F", [4370.97, 3824.79, 228.971], [0, 0.9998, 0.0199947], [-0.027489, -0.0199871, 0.999422], false],
  19. ["Exile_Sign_Vehicles", [4362.46, 3750.02, 225.558], [-0.766045, -0.642788, 0], [0, 0, 1], false]
  20. ];
  21.  
  22. {
  23.     private _vehicle = (_x select 0) createVehicle (_x select 1);
  24.     _vehicle allowDamage false;
  25.     _vehicle setPosWorld (_x select 1);
  26.     _vehicle setVectorDirAndUp [_x select 2, _x select 3];
  27.     _vehicle enableSimulationGlobal (_x select 4);
  28.     _vehicle setVariable ["ExileIsLocked", -1, true];
  29.    
  30.     if (_vehicle isKindOf "Exile_RussianRouletteChair") then
  31.     {
  32.         ExileRouletteChairs pushBack _vehicle;
  33.         ExileRouletteChairPositions pushBack [_x select 1, getDir _vehicle];
  34.     };
  35. }
  36. forEach _vehicles;
  37.  
  38. // 20 Simple Objects
  39. private _invisibleSelections = ["zasleh", "zasleh2", "box_nato_grenades_sign_f", "box_nato_ammoord_sign_f", "box_nato_support_sign_f"];
  40. private _simpleObjects = [
  41. ["a3\structures_f\civ\camping\campingtable_f.p3d", [4330.9, 3819.32, 227.171], [-0.998124, -0.0612233, 0.000487365], [0.000488281, 0, 1]],
  42. ["a3\structures_f\civ\camping\campingchair_v2_f.p3d", [4335.11, 3820.9, 227.269], [0.996633, 0.0819959, -0.000486637], [0.000488281, 0, 1]],
  43. ["a3\structures_f\civ\camping\campingchair_v2_f.p3d", [4335.17, 3820, 227.269], [0.996633, 0.0819959, -0.000486637], [0.000488281, 0, 1]],
  44. ["a3\structures_f\civ\camping\campingchair_v2_f.p3d", [4335.23, 3819.12, 227.269], [0.996633, 0.0819959, -0.000486637], [0.000488281, 0, 1]],
  45. ["a3\structures_f\civ\camping\campingchair_v2_f.p3d", [4335.28, 3818.2, 227.269], [0.996633, 0.0819959, -0.000486637], [0.000488281, 0, 1]],
  46. ["a3\structures_f\civ\camping\campingtable_f.p3d", [4335.86, 3811.43, 227.168], [0.996982, 0.0776308, -0.000486808], [0.000488281, 0, 1]],
  47. ["a3\structures_f\civ\camping\campingtable_f.p3d", [4335.44, 3809.84, 227.169], [-0.091118, 0.99584, 4.44912e-005], [0.000488281, 0, 1]],
  48. ["a3\structures_f\civ\camping\campingchair_v2_f.p3d", [4333.92, 3806.17, 227.26], [0.0818194, -0.996647, -3.99509e-005], [0.000488281, 0, 1]],
  49. ["a3\structures_f\civ\camping\campingchair_v2_f.p3d", [4333, 3806.12, 227.27], [0.0818194, -0.996647, -3.99509e-005], [0.000488281, 0, 1]],
  50. ["a3\structures_f\civ\camping\campingchair_v2_f.p3d", [4334.15, 3810.61, 227.265], [0.0735685, -0.99729, -3.59221e-005], [0.000488281, 0, 1]],
  51. ["a3\structures_f\civ\camping\campingchair_v2_f.p3d", [4333.23, 3810.57, 227.27], [0.0735685, -0.99729, -3.59221e-005], [0.000488281, 0, 1]],
  52. ["a3\structures_f\mil\helipads\helipadcircle_f.p3d", [4371.18, 3824.82, 227.114], [0.999622, -0.000549678, 0.0274835], [-0.027489, -0.0199871, 0.999422]],
  53. ["a3\structures_f\walls\mil_wiredfence_f.p3d", [4375.49, 3834.24, 229.373], [0, 1, 0], [0, 0, 1]],
  54. ["a3\structures_f\walls\mil_wiredfence_f.p3d", [4379.8, 3830.03, 229.193], [1, -4.37114e-008, 0], [0, 0, 1]],
  55. ["a3\structures_f\walls\mil_wiredfence_f.p3d", [4379.88, 3822.19, 228.928], [1, -4.37114e-008, 0], [0, 0, 1]],
  56. ["a3\structures_f\wrecks\wreck_cardismantled_f.p3d", [4369.32, 3747.38, 225.577], [-0.998089, -0.0542947, -0.0295021], [-0.027489, -0.0374578, 0.99892]],
  57. ["a3\structures_f\walls\mil_wiredfence_f.p3d", [4393.38, 3872.49, 232.517], [-0.998845, 0.0480515, 0], [0, 0, 1]],
  58. ["a3\structures_f\walls\mil_wiredfence_f.p3d", [4346.9, 3657.07, 230.543], [0.158976, 0.987283, 0], [0, 0, 1]],
  59. ["a3\structures_f\walls\mil_wiredfence_f.p3d", [4350.8, 3716, 228.388], [0.956428, -0.291968, 0], [0, 0, 1]],
  60. ["a3\characters_f_gamma\guerrilla\ig_guerrilla2_1.p3d", [4399.95, 3922.83, 230.179], [0.954709, 0.297543, 0], [0, 0, 1]]
  61. ];
  62.  
  63. {
  64.     private _simpleObject = createSimpleObject [_x select 0, _x select 1];
  65.     _simpleObject setVectorDirAndUp [_x select 2, _x select 3];
  66.    
  67.     {
  68.         if ((toLower _x) in _invisibleSelections) then
  69.         {
  70.             _simpleObject hideSelection [_x, true];
  71.         };
  72.     }
  73.     forEach (selectionNames _simpleObject);
  74. }
  75. forEach _simpleObjects;
Add Comment
Please, Sign In to add comment