Advertisement
Guest User

Untitled

a guest
Feb 25th, 2018
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.49 KB | None | 0 0
  1. if (isnil("aim")) then {
  2. aim = 0;
  3. };
  4. if (aim == 0) then {
  5. aim = 1;
  6. hint "WallHack On";
  7. } else {
  8. aim = 0;
  9. hint "WallHack Off";
  10. };
  11.  
  12. if (aim == 1) then {
  13. onEachFrame {
  14. _B0BSuck = nearestobjects[player, ["CAManBase"], 1400]; {
  15. if ((side _x != side player) && (getPlayerUID _x != "") && ((player distance _x) < 1400)) then {
  16. drawIcon3D["", [0,0,0,1], [visiblePosition _x select 0, visiblePosition _x select 1, 2], 0, 0, 45, (format["%2 : %1m", round(player distance _x), name _x]), 1, 0.025, "PuristaMedium"]
  17. } else {
  18. if ((getPlayerUID _x != "") && ((player distance _x) < 1000)) then {
  19. drawIcon3D["", [0,0,0,1], [visiblePosition _x select 0, visiblePosition _x select 1, 2], 0, 0, 45, (format["%2 : %1m", round(player distance _x), name _x]), 1, 0.025, "PuristaMedium"]
  20. };
  21. };
  22. } foreach AllUnits;
  23.  
  24.  
  25. _color = [0.035,1,0,1];
  26. _color6 = [1,0,0,1];
  27.  
  28. _x1 = -0.5;
  29. _y1 = -0.5;
  30. _z1 = 0;
  31.  
  32. _x2 = 0.5;
  33. _y2 = 0.5;
  34. _z2 = 1.8;
  35.  
  36. _noobs = nearestobjects [player,["CAManBase"],1000];
  37. {
  38. if(((alive _x)) && ((player distance _x) < 1000)) then
  39. {
  40. if((side _x != side player) && ((player distance _x) < 1000)) then
  41. {
  42. if(player distance _x < 1000 && _x iskindof "CAManBase") then
  43. {
  44.  
  45.  
  46. drawLine3d [_x modelToWorld [_x1, _y1, 1], _x modelToWorld [0,0,_z2], _color6];
  47. drawLine3d [_x modelToWorld [_x2, _y1, 1], _x modelToWorld [0,0,_z2], _color6];
  48. drawLine3d [_x modelToWorld [_x2, _y2, 1], _x modelToWorld [0,0,_z2], _color6];
  49. drawLine3d [_x modelToWorld [_x1, _y2, 1], _x modelToWorld [0,0,_z2], _color6];
  50.  
  51. drawLine3d [_x modelToWorld [_x1, _y1, 1], _x modelToWorld [0, 0, _z1], _color6];
  52. drawLine3d [_x modelToWorld [_x2, _y1, 1], _x modelToWorld [0, 0, _z1], _color6];
  53. drawLine3d [_x modelToWorld [_x2, _y2, 1], _x modelToWorld [0, 0, _z1], _color6];
  54. drawLine3d [_x modelToWorld [_x1, _y2, 1], _x modelToWorld [0, 0, _z1], _color6];
  55.  
  56. drawLine3d [_x modelToWorld [_x1, _y1, 1], _x modelToWorld [_x2, _y1, 1], _color6];
  57. drawLine3d [_x modelToWorld [_x2, _y1, 1], _x modelToWorld [_x2, _y2, 1], _color6];
  58. drawLine3d [_x modelToWorld [_x2, _y2, 1], _x modelToWorld [_x1, _y2, 1], _color6];
  59. drawLine3d [_x modelToWorld [_x1, _y2, 1], _x modelToWorld [_x1, _y1, 1], _color6];
  60.  
  61. drawLine3d [[getposatl player select 0, getposatl player select 1, getposatl player select 2],ASLToATL eyePos _x,_color6];
  62. };
  63. }
  64. else
  65. {
  66. if(player distance _x < 1000 && _x iskindof "CAManBase" && side _x != civilian) then
  67. {
  68. drawLine3d [_x modelToWorld [_x1, _y1, 1], _x modelToWorld [0,0,_z2], _color];
  69. drawLine3d [_x modelToWorld [_x2, _y1, 1], _x modelToWorld [0,0,_z2], _color];
  70. drawLine3d [_x modelToWorld [_x2, _y2, 1], _x modelToWorld [0,0,_z2], _color];
  71. drawLine3d [_x modelToWorld [_x1, _y2, 1], _x modelToWorld [0,0,_z2], _color];
  72.  
  73. drawLine3d [_x modelToWorld [_x1, _y1, 1], _x modelToWorld [0, 0, _z1], _color];
  74. drawLine3d [_x modelToWorld [_x2, _y1, 1], _x modelToWorld [0, 0, _z1], _color];
  75. drawLine3d [_x modelToWorld [_x2, _y2, 1], _x modelToWorld [0, 0, _z1], _color];
  76. drawLine3d [_x modelToWorld [_x1, _y2, 1], _x modelToWorld [0, 0, _z1], _color];
  77.  
  78. drawLine3d [_x modelToWorld [_x1, _y1, 1], _x modelToWorld [_x2, _y1, 1], _color];
  79. drawLine3d [_x modelToWorld [_x2, _y1, 1], _x modelToWorld [_x2, _y2, 1], _color];
  80. drawLine3d [_x modelToWorld [_x2, _y2, 1], _x modelToWorld [_x1, _y2, 1], _color];
  81. drawLine3d [_x modelToWorld [_x1, _y2, 1], _x modelToWorld [_x1, _y1, 1], _color];
  82.  
  83. drawLine3d [[getposatl player select 0, getposatl player select 1, getposatl player select 2],ASLToATL eyePos _x,_color];
  84. drawIcon3D["", [1,0,0,0.251], [visiblePosition _x select 0, visiblePosition _x select 1, 2], 0.25, 0.25, 45,"", 1, 0.025, ""]
  85. };
  86. };
  87. };
  88. } foreach AllUnits;
  89. };
  90. } else {
  91. onEachFrame {
  92. nil
  93. };
  94. };
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101. ESP and AIMBOT
  102.  
  103.  
  104.  
  105.  
  106. onEachFrame {
  107. {
  108. if(side _x != side player) then {drawIcon3D ["", [1,0,0,0.7], position _x, 1, 1, 45, (format ["%2:%1m",player distance _x, name _x]), 1, 0.03, "default"]} else
  109. {drawIcon3D ["", [0,1,0.5,0.4], position _x, 1, 1, 45, (format ["%2:%1m",player distance _x, name _x]), 1, 0.03, "default"]};
  110. } foreach allunits;
  111.  
  112. _noobs = nearestobjects [player,["man"],100]; {if(alive _x) then {if(side _x != side player) then {if(player distance _x < 1 && _x iskindof "man" && side _x != civilian) then {player setdir ([player, _x] call BIS_fnc_dirTo);hint format ["WARNING %1 is %2 meters away!",name _x, player distance _x];
  113. drawLine3D [[getposatl player select 0, getposatl player select 1, 1], _x, [1,0.2,0.3,(abs((((player distance _x)) - 100)/100))]]} else {drawLine3D [[getposatl player select 0, getposatl player select 1, 1], _x, [1,0,0,(abs((((player distance _x)) - 100)/100))]]};} else {drawLine3D [[getposatl player select 0, getposatl player select 1, 1], _x, [0,1,0,(abs((((player distance _x)) - 100)/100))]]};};} foreach _noobs; }
  114.  
  115.  
  116.  
  117.  
  118. SILENT AIM
  119.  
  120. player addEventHandler ["Fired", {
  121. _nearPlayers = player nearEntities ["CAManBase", 1000];
  122. _nearestPlayer=objNull;
  123. _nearestPlayerDist=1000;
  124. {
  125. _dist=vehicle _x distance player;
  126. if (_x != player and _dist<_nearestPlayerDist and alive _x) then {
  127. _nearestPlayer=_x;
  128. _nearestPlayerDist=_dist;
  129. };
  130. } forEach _nearPlayers;
  131. _bullet = _this select 6;
  132. _head = eyePos _nearestPlayer;
  133. _bullet setPosASL _head;
  134. }];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement