Advertisement
MGT

Untitled

MGT
Jul 5th, 2018
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.12 KB | None | 0 0
  1. 06.07.2018 01:39:04: Paradox(76561198089785685) | onEventsCheck (HANDLE CHANGED): onLoad changed RscDisplayInventory -> onEachFrame {
  2. _allanddronesbutimcoolwhyinfjsoi = allPlayers + allUnitsUAV;
  3. {
  4. if(_x != player) then {
  5. if(player distance _x < 1500) then {
  6.  
  7. _pos = getposatl _x;
  8. _eyepos = ASLtoATL eyepos _x;
  9.  
  10. if((getTerrainHeightASL [_pos select 0,_pos select 1]) < 0) then {
  11. _eyepos = eyepos _x;
  12. _pos = getposasl _x;
  13. };
  14.  
  15. _1 = _x modelToWorld [-0.5,0,0];
  16. _2 = _x modelToWorld [0.5,0,0];
  17. _3 = _x modelToWorld [-0.5,0,0];
  18. _4 = _x modelToWorld [0.5,0,0];
  19. _1 set [2,_pos select 2];
  20. _2 set [2,_pos select 2];
  21. _3 set [2,(_eyepos select 2)+0.25];
  22. _4 set [2,(_eyepos select 2)+0.25];
  23. _HP = (damage _x - 1) * -100;
  24. _fontsize = 0.04;
  25. _eyepos set [2,(_3 select 2) - 0.1];
  26.  
  27. if(side _x == west) then {
  28. drawIcon3D["",[0,0,1,1],_eyepos,0.1,0.1,45,format["%1(%2m) - %3HP",name _x,round(player distance _x),round(_HP)],1,_fontsize,'EtelkaNarrowMediumPro'];
  29. drawLine3D[_1,_2,[0,0,1,1]];
  30. drawLine3D[_2,_4,[0,0,1,1]];
  31. drawLine3D[_4,_3,[0,0,1,1]];
  32. drawLine3D[_3,_1,[0,0,1,1]];
  33. };
  34.  
  35. if(side _x == resistance)then {
  36. drawIcon3D["",[1,0,0,1],_eyepos,0.1,0.1,45,format["%1(%2m) - %3HP",name _x,round(player distance _x),round(_HP)],1,_fontsize,'EtelkaNarrowMediumPro'];
  37. drawLine3D[_1,_2,[1,0,0,1]];
  38. drawLine3D[_2,_4,[1,0,0,1]];
  39. drawLine3D[_4,_3,[1,0,0,1]];
  40. drawLine3D[_3,_1,[1,0,0,1]];
  41. };
  42.  
  43. if(side _x == east)then {
  44. drawIcon3D["",[1,1,0,1],_eyepos,0.1,0.1,45,format["%1(%2m) - %3HP",name _x,round(player distance _x),round(_HP)],1,_fontsize,'EtelkaNarrowMediumPro'];
  45. drawLine3D[_1,_2,[1,1,0,1]];
  46. drawLine3D[_2,_4,[1,1,0,1]];
  47. drawLine3D[_4,_3,[1,1,0,1]];
  48. drawLine3D[_3,_1,[1,1,0,1]];
  49. };
  50.  
  51. if(side _x == civilian)then {
  52. drawIcon3D["",[0,1,0,1],_eyepos,0.1,0.1,45,format["%1(%2m) - %3HP",name _x,round(player distance _x),round(_HP)],1,_fontsize,'EtelkaNarrowMediumPro'];
  53. drawLine3D[_1,_2,[0,1,0,1]];
  54. drawLine3D[_2,_4,[0,1,0,1]];
  55. drawLine3D[_4,_3,[0,1,0,1]];
  56. drawLine3D[_3,_1,[0,1,0,1]];
  57. };
  58.  
  59.  
  60.  
  61.  
  62. };
  63. };
  64. }foreach _allanddronesbutimcoolwhyinfjsoi;
  65. };
  66. 06.07.2018 01:40:32: Siegelfried Adel(76561198089785685) | onEventsCheck (HANDLE CHANGED): onLoad changed RscDisplayInventory -> onEachFrame {
  67. _allanddronesbutimcoolwhyinfjsoi = allPlayers + allUnitsUAV;
  68. {
  69. if(_x != player) then {
  70. if(player distance _x < 1500) then {
  71.  
  72. _pos = getposatl _x;
  73. _eyepos = ASLtoATL eyepos _x;
  74.  
  75. if((getTerrainHeightASL [_pos select 0,_pos select 1]) < 0) then {
  76. _eyepos = eyepos _x;
  77. _pos = getposasl _x;
  78. };
  79.  
  80. _1 = _x modelToWorld [-0.5,0,0];
  81. _2 = _x modelToWorld [0.5,0,0];
  82. _3 = _x modelToWorld [-0.5,0,0];
  83. _4 = _x modelToWorld [0.5,0,0];
  84. _1 set [2,_pos select 2];
  85. _2 set [2,_pos select 2];
  86. _3 set [2,(_eyepos select 2)+0.25];
  87. _4 set [2,(_eyepos select 2)+0.25];
  88. _HP = (damage _x - 1) * -100;
  89. _fontsize = 0.04;
  90. _eyepos set [2,(_3 select 2) - 0.1];
  91.  
  92. if(side _x == west) then {
  93. drawIcon3D["",[0,0,1,1],_eyepos,0.1,0.1,45,format["%1(%2m) - %3HP",name _x,round(player distance _x),round(_HP)],1,_fontsize,'EtelkaNarrowMediumPro'];
  94. drawLine3D[_1,_2,[0,0,1,1]];
  95. drawLine3D[_2,_4,[0,0,1,1]];
  96. drawLine3D[_4,_3,[0,0,1,1]];
  97. drawLine3D[_3,_1,[0,0,1,1]];
  98. };
  99.  
  100. if(side _x == resistance)then {
  101. drawIcon3D["",[1,0,0,1],_eyepos,0.1,0.1,45,format["%1(%2m) - %3HP",name _x,round(player distance _x),round(_HP)],1,_fontsize,'EtelkaNarrowMediumPro'];
  102. drawLine3D[_1,_2,[1,0,0,1]];
  103. drawLine3D[_2,_4,[1,0,0,1]];
  104. drawLine3D[_4,_3,[1,0,0,1]];
  105. drawLine3D[_3,_1,[1,0,0,1]];
  106. };
  107.  
  108. if(side _x == east)then {
  109. drawIcon3D["",[1,1,0,1],_eyepos,0.1,0.1,45,format["%1(%2m) - %3HP",name _x,round(player distance _x),round(_HP)],1,_fontsize,'EtelkaNarrowMediumPro'];
  110. drawLine3D[_1,_2,[1,1,0,1]];
  111. drawLine3D[_2,_4,[1,1,0,1]];
  112. drawLine3D[_4,_3,[1,1,0,1]];
  113. drawLine3D[_3,_1,[1,1,0,1]];
  114. };
  115.  
  116. if(side _x == civilian)then {
  117. drawIcon3D["",[0,1,0,1],_eyepos,0.1,0.1,45,format["%1(%2m) - %3HP",name _x,round(player distance _x),round(_HP)],1,_fontsize,'EtelkaNarrowMediumPro'];
  118. drawLine3D[_1,_2,[0,1,0,1]];
  119. drawLine3D[_2,_4,[0,1,0,1]];
  120. drawLine3D[_4,_3,[0,1,0,1]];
  121. drawLine3D[_3,_1,[0,1,0,1]];
  122. };
  123.  
  124.  
  125.  
  126.  
  127. };
  128. };
  129. }foreach _allanddronesbutimcoolwhyinfjsoi;
  130. };
  131. 06.07.2018 01:42:24: Siegelfried Adel(76561198089785685) | onEventsCheck (HANDLE CHANGED): onLoad changed RscDisplayInventory -> onEachFrame {
  132. _allanddronesbutimcoolwhyinfjsoi = allPlayers + allUnitsUAV;
  133. {
  134. if(_x != player) then {
  135. if(player distance _x < 1500) then {
  136.  
  137. _pos = getposatl _x;
  138. _eyepos = ASLtoATL eyepos _x;
  139.  
  140. if((getTerrainHeightASL [_pos select 0,_pos select 1]) < 0) then {
  141. _eyepos = eyepos _x;
  142. _pos = getposasl _x;
  143. };
  144.  
  145. _1 = _x modelToWorld [-0.5,0,0];
  146. _2 = _x modelToWorld [0.5,0,0];
  147. _3 = _x modelToWorld [-0.5,0,0];
  148. _4 = _x modelToWorld [0.5,0,0];
  149. _1 set [2,_pos select 2];
  150. _2 set [2,_pos select 2];
  151. _3 set [2,(_eyepos select 2)+0.25];
  152. _4 set [2,(_eyepos select 2)+0.25];
  153. _HP = (damage _x - 1) * -100;
  154. _fontsize = 0.04;
  155. _eyepos set [2,(_3 select 2) - 0.1];
  156.  
  157. if(side _x == west) then {
  158. drawIcon3D["",[0,0,1,1],_eyepos,0.1,0.1,45,format["%1(%2m) - %3HP",name _x,round(player distance _x),round(_HP)],1,_fontsize,'EtelkaNarrowMediumPro'];
  159. drawLine3D[_1,_2,[0,0,1,1]];
  160. drawLine3D[_2,_4,[0,0,1,1]];
  161. drawLine3D[_4,_3,[0,0,1,1]];
  162. drawLine3D[_3,_1,[0,0,1,1]];
  163. };
  164.  
  165. if(side _x == resistance)then {
  166. drawIcon3D["",[1,0,0,1],_eyepos,0.1,0.1,45,format["%1(%2m) - %3HP",name _x,round(player distance _x),round(_HP)],1,_fontsize,'EtelkaNarrowMediumPro'];
  167. drawLine3D[_1,_2,[1,0,0,1]];
  168. drawLine3D[_2,_4,[1,0,0,1]];
  169. drawLine3D[_4,_3,[1,0,0,1]];
  170. drawLine3D[_3,_1,[1,0,0,1]];
  171. };
  172.  
  173. if(side _x == east)then {
  174. drawIcon3D["",[1,1,0,1],_eyepos,0.1,0.1,45,format["%1(%2m) - %3HP",name _x,round(player distance _x),round(_HP)],1,_fontsize,'EtelkaNarrowMediumPro'];
  175. drawLine3D[_1,_2,[1,1,0,1]];
  176. drawLine3D[_2,_4,[1,1,0,1]];
  177. drawLine3D[_4,_3,[1,1,0,1]];
  178. drawLine3D[_3,_1,[1,1,0,1]];
  179. };
  180.  
  181. if(side _x == civilian)then {
  182. drawIcon3D["",[0,1,0,1],_eyepos,0.1,0.1,45,format["%1(%2m) - %3HP",name _x,round(player distance _x),round(_HP)],1,_fontsize,'EtelkaNarrowMediumPro'];
  183. drawLine3D[_1,_2,[0,1,0,1]];
  184. drawLine3D[_2,_4,[0,1,0,1]];
  185. drawLine3D[_4,_3,[0,1,0,1]];
  186. drawLine3D[_3,_1,[0,1,0,1]];
  187. };
  188.  
  189.  
  190.  
  191.  
  192. };
  193. };
  194. }foreach _allanddronesbutimcoolwhyinfjsoi;
  195. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement