Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. findDisplay 0 displayCtrl 999 setVariable['_agwduygauywgu', 1];
  2. _enabled = (findDisplay 0 displayCtrl 999 getVariable '_agwduygauywgu');
  3. if (_enabled == 1) then {
  4.  
  5. waitUntil {!isNull player};
  6. systemChat "aim assist on";
  7. findDisplay 0 displayCtrl 999 setVariable['_agwduygauywgu', 0];
  8. player addEventHandler ["Fired", {
  9. {
  10. player reveal _x;
  11. } forEach allPlayers;
  12. _target = cursorTarget;
  13. if (!isNull _target) then {
  14. if ((!isNull (vehicle _target))) then {
  15. _target = driver _target;
  16. };
  17. if ((alive _target) && (_target isKindOf "Man") && (group _target != group player)) then {
  18. _bullet = _this select 6;
  19. _head = _target modelToWorld (_target selectionPosition "neck");
  20. _bullet setPos _head;
  21. };
  22. };
  23. }];
  24. addMissionEventHandler ["Draw3D", {
  25. _target = cursorTarget;
  26. if (!isNull _target) then {
  27. if ((!isNull (vehicle _target))) then {
  28. _target = driver _target;
  29. };
  30. if ((alive _target) && (_target isKindOf "Man") && (group _target != group player)) then {
  31. drawIcon3D ["", [1,0,0,1], position cursorTarget, 0, 0, 0, "Target", 1, 0.04, "PuristaMedium"];
  32. };
  33. };
  34. }];
  35. } else {
  36. findDisplay 0 displayCtrl 999 setVariable['_agwduygauywgu', 1];
  37. player removeEventHandler ["Fired", 0];
  38. player removeEventHandler ["Draw3D", 0];
  39. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement