Advertisement
Guest User

Untitled

a guest
Apr 19th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1.  
  2. vectorDiv = {
  3. _returnValue=[];
  4. _vector = _this select 0;
  5. _divisor = _this select 1;
  6. {
  7. _returnValue pushBack (_x / _divisor);
  8. nil
  9. } count _vector;
  10. _returnValue
  11. };
  12.  
  13. _handle = [{
  14. if((cameraView == "GUNNER" && vehicle player isKindOf "Air")|| ((UAVControl getConnectedUAV player) select 1 == "Gunner")) then {
  15. {
  16. _center = positionCameraToWorld [0,0,3];
  17. _x params ["_letter", "_color", "_offset1", "_offset2"];
  18. _div= ((call CBA_fnc_getFov)select 1);
  19. _offset1 = [_offset1, _div] call vectorDiv;
  20. _offset2 = [_offset2, _div] call vectorDiv;
  21. drawIcon3D [
  22. "",
  23. _color,
  24. _center vectorAdd _offset1,
  25. 0,
  26. 0,
  27. 0,
  28. _letter,
  29. 2,
  30. 0.05,
  31. "PuristaMedium"
  32. ];
  33. drawIcon3D [
  34. "",
  35. _color,
  36. _center vectorAdd _offset2,
  37. 0,
  38. 0,
  39. 0,
  40. ".",
  41. 2,
  42. 0.05,
  43. "PuristaMedium"
  44. ];
  45. } count [
  46. ["N",[1,1,1,1],[0,1,0],[0,0.5,0]],
  47. ["S",[1,1,1,0.7],[0,-1,0],[0,-0.5,0]],
  48. ["E",[1,1,1,0.7],[1,0,0],[0.5,0,0]],
  49. ["W",[1,1,1,0.7],[-1,0,0],[-0.5,0,0]]
  50. ];
  51. };
  52. }] call CBA_fnc_addPerFrameHandler;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement