Advertisement
Guest User

Untitled

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