Advertisement
MGT

earplugs fix for Epoch 0.3.8.0

MGT
Apr 10th, 2016
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 0.85 KB | None | 0 0
  1. waitUntil {alive vehicle player};
  2. waitUntil {typeOF player != "VirtualMan_EPOCH"};
  3. _OPRbreathing = alive player;
  4. _OPRtrig=true;
  5. _OPRdude = player;
  6. while {_OPRtrig} do {
  7.     uiSleep 0.001;
  8.         if (_OPRbreathing) then {
  9.             _OPRstartingpos = position player;
  10.             uiSleep 0.001;
  11.             _OPRposition = position _OPRdude;
  12.             _OPRstationary = _OPRstartingpos select 0 == _OPRposition select 0 && _OPRstartingpos select 1 == _OPRposition select 1;
  13.             if (_OPRstationary) then {} else {_OPRtrig=false;};
  14.         };
  15. };
  16. uisleep 1;
  17. 5 fadeSound 1;
  18. earplugsout=true;
  19. SuperFunEPEHVariable = false;
  20. uisleep 1;
  21. [] spawn cm_EP_LOOP;
  22. cmEarplugsKeyPressEnabled = false;
  23. if (cmEarplugsKeyPressEnabled) then {
  24. [] spawn {cmKeyPress = (findDisplay 46) displayAddEventHandler ["KeyDown","if ((_this select 1) == cmEarplugs_hotkeyDIKCodeNumber) then {[] call cm_Earplugs_FUNc;};"];};
  25. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement