Advertisement
Guest User

Untitled

a guest
May 30th, 2015
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. // disableTheral.sqf
  2. // by CRE4MPIE
  3. // ver 0.2
  4. // 2015-04-29 11:44pm
  5. // contributions from BIStudio Forums, edited by CRE4MPIE
  6.  
  7.  
  8. _layer = 85125;
  9. _launchers =["launch_I_Titan_short_F","launch_O_Titan_short_F","launch_B_Titan_short_F","launch_Titan_short_F","launch_Titan_F","launch_O_Titan_F","launch_I_Titan_F","launch_B_Titan_F","Laserdesignator"]; // launcher array
  10.  
  11.  
  12. while {true} do
  13. {
  14. if (currentVisionMode player == 2) then // check for TI Mode
  15. {
  16. if (currentweapon player in _launchers) then // check if player has launcher as current weapon
  17. {
  18. _layer cutText ["Thermal Imaging OFFLINE!.","BLACK",-1]; // Blackout screen with Text
  19. playSound "FD_CP_Not_Clear_F";
  20. waituntil {currentVisionMode player != 2};
  21. _layer cutText ["", "PLAIN"];
  22. }
  23. else
  24. {
  25. if (alive (getConnectedUAV player)) then // check if player is connected to a UAV
  26. {
  27. _layer cutText ["Thermal Imaging OFFLINE while connected to a UAV terminal!.","BLACK",-1]; // Blackout screen with Text
  28. playSound "FD_CP_Not_Clear_F";
  29. waituntil {currentVisionMode player != 2};
  30. _layer cutText ["", "PLAIN"];
  31. };
  32. };
  33. sleep 1;
  34. };
  35. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement