Advertisement
Guest User

Untitled

a guest
Jul 15th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. is this waitUntil {!isNull player};
  2. systemChat "aim assist on";
  3. player addEventHandler ["Fired", {
  4. {
  5. player reveal _x;
  6. } forEach allPlayers;
  7. _target = cursorTarget;
  8. if (!isNull _target) then {
  9. if ((!isNull (vehicle _target))) then {
  10. _target = driver _target;
  11. };
  12. if ((alive _target) && (_target isKindOf "Man") && (group _target != group player)) then {
  13. _bullet = _this select 6;
  14. _head = _target modelToWorld (_target selectionPosition "neck");
  15. _bullet setPos _head;
  16. };
  17. };
  18. }];
  19. addMissionEventHandler ["Draw3D", {
  20. _target = cursorTarget;
  21. if (!isNull _target) then {
  22. if ((!isNull (vehicle _target))) then {
  23. _target = driver _target;
  24. };
  25. if ((alive _target) && (_target isKindOf "Man") && (group _target != group player)) then {
  26. drawIcon3D ["", [1,0,0,1], position cursorTarget, 0, 0, 0, "Target", 1, 0.04, "PuristaMedium"];
  27. };
  28. };
  29. }];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement