bominh8888

Exile.Esseker initPlayerLocal.sqf example

Dec 23rd, 2015
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 13.63 KB | None | 0 0
  1. ///////////////////////////////////////////////////////////////////////////////
  2. // Static Objects
  3. ///////////////////////////////////////////////////////////////////////////////
  4. #include "initServer.sqf"
  5.  
  6. if (!hasInterface || isServer) exitWith {};
  7.  
  8. ///////////////////////////////////////////////////////////////////////////
  9. // Hardware Trader
  10. ///////////////////////////////////////////////////////////////////////////
  11. _workBench = "Land_Workbench_01_F" createVehicleLocal [0,0,0];
  12. _workBench setDir 45.4546;
  13. _workBench setPosATL [9242.5,8519.89,0];
  14.  
  15. [
  16.     "Exile_Trader_Hardware",
  17.     "WhiteHead_17",
  18.     ["InBaseMoves_sitHighUp1"],
  19.     [0, 0, -0.5],
  20.     170,
  21.     _workBench
  22. ]
  23. call ExileClient_object_trader_create;
  24.  
  25. ///////////////////////////////////////////////////////////////////////////
  26. // Fast Food Trader
  27. ///////////////////////////////////////////////////////////////////////////
  28. _cashDesk = "Land_CashDesk_F" createVehicleLocal [0,0,0];
  29. _cashDesk setDir 131.818;
  30. _cashDesk setPosATL [9246.42,8517.14,0];
  31.  
  32. _microwave = "Land_Microwave_01_F" createVehicleLocal [0,0,0];
  33. _cashDesk disableCollisionWith _microwave;        
  34. _microwave disableCollisionWith _cashDesk;
  35. _microwave attachTo [_cashDesk, [-0.6, 0.2, 1.1]];
  36.  
  37. _ketchup = "Land_Ketchup_01_F" createVehicleLocal [0,0,0];
  38. _cashDesk disableCollisionWith _ketchup;        
  39. _ketchup disableCollisionWith _cashDesk;
  40. _ketchup attachTo [_cashDesk, [-0.6, 0, 1.1]];
  41.  
  42. _mustard = "Land_Mustard_01_F" createVehicleLocal [0,0,0];
  43. _cashDesk disableCollisionWith _mustard;        
  44. _mustard disableCollisionWith _cashDesk;
  45. _mustard attachTo [_cashDesk, [-0.5, -0.05, 1.1]];
  46.  
  47. [
  48.     "Exile_Trader_Food",
  49.     "GreekHead_A3_01",
  50.     ["InBaseMoves_table1"],
  51.     [0.1, 0.5, 0.2],
  52.     170,
  53.     _cashDesk
  54. ]
  55. call ExileClient_object_trader_create;
  56.  
  57. ///////////////////////////////////////////////////////////////////////////
  58. // Armory Trader
  59. ///////////////////////////////////////////////////////////////////////////
  60. _chair = "Land_CampingChair_V2_F" createVehicleLocal [0,0,0];
  61. _chair setDir 208.182;    
  62. _chair setPosATL [9378.03,4734.75,4.76837e-007];
  63.  
  64. [
  65.     "Exile_Trader_Armory",
  66.     "PersianHead_A3_02",
  67.     ["InBaseMoves_SittingRifle1"],
  68.     [0, -0.15, -0.45],
  69.     180,
  70.     _chair
  71. ]
  72. call ExileClient_object_trader_create;
  73.  
  74. ///////////////////////////////////////////////////////////////////////////
  75. // Equipment Trader
  76. ///////////////////////////////////////////////////////////////////////////
  77. [
  78.     "Exile_Trader_Equipment",
  79.     "WhiteHead_19",
  80.     ["InBaseMoves_Lean1"],
  81.     [9382.39,4734.6,4.76837e-007],
  82.     0
  83. ]
  84. call ExileClient_object_trader_create;
  85.  
  86. ///////////////////////////////////////////////////////////////////////////
  87. // Specops Trader
  88. ///////////////////////////////////////////////////////////////////////////
  89. [
  90.     "Exile_Trader_SpecialOperations",
  91.     "AfricanHead_02",
  92.     ["HubStanding_idle1", "HubStanding_idle2", "HubStanding_idle3"],
  93.     [9373.53,4734.84,0],
  94.     140
  95. ]
  96. call ExileClient_object_trader_create;
  97.  
  98. ///////////////////////////////////////////////////////////////////////////
  99. // Office Trader
  100. ///////////////////////////////////////////////////////////////////////////
  101. [
  102.     "Exile_Trader_Office",
  103.     "GreekHead_A3_04",
  104.     ["HubBriefing_scratch", "HubBriefing_stretch", "HubBriefing_think", "HubBriefing_lookAround1", "HubBriefing_lookAround2"],
  105.     [9237.78,8509.76,0],
  106.     220
  107. ]
  108. call ExileClient_object_trader_create;
  109.  
  110. ///////////////////////////////////////////////////////////////////////////
  111. // Office Trader
  112. ///////////////////////////////////////////////////////////////////////////
  113. [
  114.     "Exile_Trader_Office",
  115.     "GreekHead_A3_04",
  116.     ["HubBriefing_scratch", "HubBriefing_stretch", "HubBriefing_think", "HubBriefing_lookAround1", "HubBriefing_lookAround2"],
  117.     [6438.57,5516.94,0],
  118.     220
  119. ]
  120. call ExileClient_object_trader_create;
  121.  
  122. ///////////////////////////////////////////////////////////////////////////
  123. // Waste Dump Trader
  124. ///////////////////////////////////////////////////////////////////////////
  125. [
  126.     "Exile_Trader_WasteDump",
  127.     "GreekHead_A3_01",
  128.     ["HubStandingUA_move1", "HubStandingUA_move2", "HubStandingUA_idle1", "HubStandingUA_idle2", "HubStandingUA_idle3"],
  129.     [9422.75,4700.37,0],
  130.     270
  131. ]
  132. call ExileClient_object_trader_create;
  133.  
  134. ///////////////////////////////////////////////////////////////////////////
  135. // Aircraft Trader
  136. ///////////////////////////////////////////////////////////////////////////
  137. [
  138.     "Exile_Trader_Aircraft",
  139.     "WhiteHead_17",
  140.     ["LHD_krajPaluby"],
  141.     [9426.01,4728.82,9.53674e-007],
  142.     133
  143. ]
  144. call ExileClient_object_trader_create;
  145.  
  146. ///////////////////////////////////////////////////////////////////////////
  147. // Aircraft Customs Trader
  148. ///////////////////////////////////////////////////////////////////////////
  149. [
  150.     "Exile_Trader_AircraftCustoms",
  151.     "GreekHead_A3_07",
  152.     ["HubStandingUC_idle1", "HubStandingUC_idle2", "HubStandingUC_idle3", "HubStandingUC_move1", "HubStandingUC_move2"],
  153.     [14635, 16790.3, 0],
  154.     156.294
  155. ]
  156. call ExileClient_object_trader_create;
  157.  
  158. ///////////////////////////////////////////////////////////////////////////
  159. // Vehicle Trader
  160. ///////////////////////////////////////////////////////////////////////////
  161.  
  162. _trader =
  163. [
  164.     "Exile_Trader_Vehicle",
  165.     "WhiteHead_11",
  166.     ["InBaseMoves_repairVehicleKnl", "InBaseMoves_repairVehiclePne"],
  167.     [6382.69,5565.2,0],
  168.     90
  169. ]
  170. call ExileClient_object_trader_create;
  171.  
  172. _carWreck = "Land_Wreck_CarDismantled_F" createVehicleLocal [0,0,0];
  173. _carWreck setDir 355.455;    
  174. _carWreck setPosATL [14605.6, 16877.3, 0.0208359];
  175.  
  176. ///////////////////////////////////////////////////////////////////////////
  177. // Vehicle Customs Trader
  178. ///////////////////////////////////////////////////////////////////////////
  179. [
  180.     "Exile_Trader_VehicleCustoms",
  181.     "WhiteHead_11",
  182.     ["AidlPercMstpSnonWnonDnon_G01", "AidlPercMstpSnonWnonDnon_G02", "AidlPercMstpSnonWnonDnon_G03", "AidlPercMstpSnonWnonDnon_G04", "AidlPercMstpSnonWnonDnon_G05", "AidlPercMstpSnonWnonDnon_G06"],
  183.     [14617.2, 16888.4, 0],
  184.     269.96
  185. ]
  186. call ExileClient_object_trader_create;
  187.  
  188.  
  189.  
  190.  
  191. ///////////////////////////////////////////////////////////////////////////
  192. // Western Vehicle Trader
  193. ///////////////////////////////////////////////////////////////////////////
  194.  
  195. _trader =
  196. [
  197.     "Exile_Trader_Vehicle",
  198.     "WhiteHead_11",
  199.     ["InBaseMoves_repairVehicleKnl", "InBaseMoves_repairVehiclePne"],
  200.     [4968.67,8203.95,0],
  201.     222.352
  202. ]
  203. call ExileClient_object_trader_create;
  204.  
  205. _carWreck = "Land_Wreck_CarDismantled_F" createVehicleLocal [0,0,0];
  206. _carWreck setDir 130.966;    
  207. _carWreck setPosATL [2978.76,18144.5,1.13293];
  208.  
  209. ///////////////////////////////////////////////////////////////////////////
  210. // Western Waste Dump Trader
  211. ///////////////////////////////////////////////////////////////////////////
  212. [
  213.     "Exile_Trader_WasteDump",
  214.     "GreekHead_A3_01",
  215.     ["HubStandingUA_move1", "HubStandingUA_move2", "HubStandingUA_idle1", "HubStandingUA_idle2", "HubStandingUA_idle3"],
  216.     [4975.14,8197.96,0],
  217.     29.3856
  218. ]
  219. call ExileClient_object_trader_create;
  220.  
  221. ///////////////////////////////////////////////////////////////////////////
  222. // Western Fast Food Trader
  223. ///////////////////////////////////////////////////////////////////////////
  224.  
  225. [
  226.     "Exile_Trader_Food",
  227.     "GreekHead_A3_01",
  228.     ["AidlPercMstpSnonWnonDnon_G01", "AidlPercMstpSnonWnonDnon_G02", "AidlPercMstpSnonWnonDnon_G03", "AidlPercMstpSnonWnonDnon_G04", "AidlPercMstpSnonWnonDnon_G05", "AidlPercMstpSnonWnonDnon_G06"],
  229.     [5017.98,8206.62,0],
  230.     89.2952
  231. ]
  232. call ExileClient_object_trader_create;
  233.  
  234. ///////////////////////////////////////////////////////////////////////////
  235. // Western Equipment Trader
  236. ///////////////////////////////////////////////////////////////////////////
  237.  
  238. [
  239.     "Exile_Trader_Equipment",
  240.     "WhiteHead_19",
  241.     ["HubStanding_idle1", "HubStanding_idle2", "HubStanding_idle3"],
  242.     [5013.14,8200.98,0],
  243.     130.535
  244. ]
  245. call ExileClient_object_trader_create;
  246.  
  247.  
  248. ///////////////////////////////////////////////////////////////////////////
  249. // Western Armory Trader
  250. ///////////////////////////////////////////////////////////////////////////
  251.  
  252. [
  253.     "Exile_Trader_Armory",
  254.     "PersianHead_A3_02",
  255.     ["HubStanding_idle1", "HubStanding_idle2", "HubStanding_idle3"],
  256.     [5007.84,8195.6,0],
  257.     296.855
  258. ]
  259. call ExileClient_object_trader_create;
  260.  
  261.  
  262. ///////////////////////////////////////////////////////////////////////////
  263. // Eastern Fast Food Trader
  264. ///////////////////////////////////////////////////////////////////////////
  265. _cashDesk = "Land_CashDesk_F" createVehicleLocal [0,0,0];
  266. _cashDesk setDir 222.727;
  267. _cashDesk setPosATL [23353.1, 24168, 0.16585];
  268.  
  269. _microwave = "Land_Microwave_01_F" createVehicleLocal [0,0,0];
  270. _cashDesk disableCollisionWith _microwave;        
  271. _microwave disableCollisionWith _cashDesk;
  272. _microwave attachTo [_cashDesk, [-0.6, 0.2, 1.1]];
  273.  
  274. _ketchup = "Land_Ketchup_01_F" createVehicleLocal [0,0,0];
  275. _cashDesk disableCollisionWith _ketchup;        
  276. _ketchup disableCollisionWith _cashDesk;
  277. _ketchup attachTo [_cashDesk, [-0.6, 0, 1.1]];
  278.  
  279. _mustard = "Land_Mustard_01_F" createVehicleLocal [0,0,0];
  280. _cashDesk disableCollisionWith _mustard;        
  281. _mustard disableCollisionWith _cashDesk;
  282. _mustard attachTo [_cashDesk, [-0.5, -0.05, 1.1]];
  283.  
  284. [
  285.     "Exile_Trader_Food",
  286.     "GreekHead_A3_01",
  287.     ["InBaseMoves_table1"],
  288.     [0.1, 0.5, 0.2],
  289.     170,
  290.     _cashDesk
  291. ]
  292. call ExileClient_object_trader_create;
  293.  
  294. ///////////////////////////////////////////////////////////////////////////
  295. // Eastern Boat Trader
  296. ///////////////////////////////////////////////////////////////////////////
  297.  
  298. [
  299.     "Exile_Trader_Boat",
  300.     "WhiteHead_17",
  301.     ["AidlPercMstpSnonWnonDnon_G01", "AidlPercMstpSnonWnonDnon_G02", "AidlPercMstpSnonWnonDnon_G03", "AidlPercMstpSnonWnonDnon_G04", "AidlPercMstpSnonWnonDnon_G05", "AidlPercMstpSnonWnonDnon_G06"],
  302.     [23296.6,24189.8,5.61213],
  303.     96
  304. ]
  305. call ExileClient_object_trader_create;
  306.  
  307. ///////////////////////////////////////////////////////////////////////////
  308. // Eastern Vehicle Trader
  309. ///////////////////////////////////////////////////////////////////////////
  310.  
  311. _trader =
  312. [
  313.     "Exile_Trader_Vehicle",
  314.     "WhiteHead_11",
  315.     ["InBaseMoves_repairVehicleKnl", "InBaseMoves_repairVehiclePne"],
  316.     [23385.6,24191.6,0.00136566],
  317.     123
  318. ]
  319. call ExileClient_object_trader_create;
  320.  
  321. _carWreck = "Land_Wreck_CarDismantled_F" createVehicleLocal [0,0,0];
  322. _carWreck setDir 47.2728;    
  323. _carWreck setPosATL [23387.3, 24190.3, 0.05];
  324.  
  325. ///////////////////////////////////////////////////////////////////////////
  326. // Eastern Hardware Trader
  327. ///////////////////////////////////////////////////////////////////////////
  328. _workBench = "Land_Workbench_01_F" createVehicleLocal [0,0,0];
  329. _workBench setDir 279.545;
  330. _workBench setPosATL [5002.41,8189.8,0];
  331.  
  332. [
  333.     "Exile_Trader_Hardware",
  334.     "WhiteHead_17",
  335.     ["InBaseMoves_sitHighUp1"],
  336.     [0, 0, -0.5],
  337.     170,
  338.     _workBench
  339. ]
  340. call ExileClient_object_trader_create;
  341.  
  342. ///////////////////////////////////////////////////////////////////////////
  343. // Eastern Equipment Trader
  344. ///////////////////////////////////////////////////////////////////////////
  345. [
  346.     "Exile_Trader_Equipment",
  347.     "WhiteHead_19",
  348.     ["HubStanding_idle1", "HubStanding_idle2", "HubStanding_idle3"],
  349.     [6438.47,5502.85,0],
  350.     206
  351. ]
  352. call ExileClient_object_trader_create;
  353.  
  354. ///////////////////////////////////////////////////////////////////////////
  355. // Eastern Armory Trader
  356. ///////////////////////////////////////////////////////////////////////////
  357. _chair = "Land_CampingChair_V2_F" createVehicleLocal [0,0,0];
  358. _chair setDir 12.7272;
  359. _chair setPosATL [6432.58,5503.79,0];
  360.  
  361. [
  362.     "Exile_Trader_Armory",
  363.     "PersianHead_A3_02",
  364.     ["InBaseMoves_SittingRifle1"],
  365.     [0, -0.15, -0.45],
  366.     180,
  367.     _chair
  368. ]
  369. call ExileClient_object_trader_create;
  370.  
  371. ///////////////////////////////////////////////////////////////////////////
  372. // Eastern Waste Dump Trader
  373. ///////////////////////////////////////////////////////////////////////////
  374. [
  375.     "Exile_Trader_WasteDump",
  376.     "GreekHead_A3_01",
  377.     ["HubStandingUA_move1", "HubStandingUA_move2", "HubStandingUA_idle1", "HubStandingUA_idle2", "HubStandingUA_idle3"],
  378.     [23336.6,24214.4,0.00115061],
  379.     346
  380. ]
  381. call ExileClient_object_trader_create;
  382. _chair setDir 12.7272;
  383. _chair setPosATL [23379.6, 24169.3, 4.56662];
  384.  
  385. [
  386.     "Exile_Trader_Armory",
  387.     "PersianHead_A3_02",
  388.     ["InBaseMoves_SittingRifle1"],
  389.     [0, -0.15, -0.45],
  390.     180,
  391.     _chair
  392. ]
  393. call ExileClient_object_trader_create;
  394.  
  395. ///////////////////////////////////////////////////////////////////////////
  396. // Fast Food Trader
  397. ///////////////////////////////////////////////////////////////////////////
  398. _cashDesk = "Land_CashDesk_F" createVehicleLocal [0,0,0];
  399. _cashDesk setDir 222.727;
  400. _cashDesk setPosATL [9408.49,4694.05,0];
  401.  
  402. _microwave = "Land_Microwave_01_F" createVehicleLocal [0,0,0];
  403. _cashDesk disableCollisionWith _microwave;        
  404. _microwave disableCollisionWith _cashDesk;
  405. _microwave attachTo [_cashDesk, [-0.6, 0.2, 1.1]];
  406.  
  407. _ketchup = "Land_Ketchup_01_F" createVehicleLocal [0,0,0];
  408. _cashDesk disableCollisionWith _ketchup;        
  409. _ketchup disableCollisionWith _cashDesk;
  410. _ketchup attachTo [_cashDesk, [-0.6, 0, 1.1]];
  411.  
  412. _mustard = "Land_Mustard_01_F" createVehicleLocal [0,0,0];
  413. _cashDesk disableCollisionWith _mustard;        
  414. _mustard disableCollisionWith _cashDesk;
  415. _mustard attachTo [_cashDesk, [-0.5, -0.05, 1.1]];
  416.  
  417. [
  418.     "Exile_Trader_Food",
  419.     "GreekHead_A3_01",
  420.     ["InBaseMoves_table1"],
  421.     [0.1, 0.5, 0.2],
  422.     170,
  423.     _cashDesk
  424. ]
  425. call ExileClient_object_trader_create;
Advertisement
Add Comment
Please, Sign In to add comment