Advertisement
Guest User

Untitled

a guest
Oct 17th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1. /*
  2. File: fn_teargas.sqf
  3. Author: Blackd0g, Updated by Jokahghost
  4. Description:
  5. Fucks their shit up
  6. */
  7. playerNearGas=false;
  8.  
  9. [] spawn {
  10.  
  11. sleep 2;
  12.  
  13. while {true} do
  14. {
  15.  
  16. if
  17. (
  18. (((nearestObject [getpos player, "SmokeShellYellow"]) distance player < 20))
  19. ) then
  20. {
  21. playerNearGas=true;
  22. }
  23. else
  24. {
  25. playerNearGas=false;
  26. };
  27.  
  28. uiSleep 3;
  29. };
  30. };
  31.  
  32. [] spawn {
  33.  
  34. sleep 2;
  35.  
  36. while {true} do
  37. {
  38.  
  39. "dynamicBlur" ppEffectEnable true; // enables ppeffect
  40. "dynamicBlur" ppEffectAdjust [0]; // enables normal vision
  41. "dynamicBlur" ppEffectCommit 15; // time it takes to normal
  42. resetCamShake; // resets the shake
  43. 20 fadeSound 1; //fades the sound back to normal
  44.  
  45. waituntil {playerNearGas}; // Wait till a Gas Grenade is near player
  46.  
  47. if (goggles player == "CPE_MK50" or goggles player == "Skyline_Glasses_Masque_GP5_01_F" or headgear player == "TAC_SF10H" ) then {
  48. antidote1 = 2581
  49. }else{
  50. antidote1 = 2583
  51. };
  52.  
  53. if (antidote1 == 2583) then {
  54.  
  55. "dynamicBlur" ppEffectEnable true; // enables ppeffect
  56. "dynamicBlur" ppEffectAdjust [20]; // intensity of blur
  57. "dynamicBlur" ppEffectCommit 3; // time till vision is fully blurred
  58. enableCamShake false; // enables camera shake
  59. addCamShake [10, 45, 10]; // sets shakevalues
  60. player setFatigue 1; // sets the fatigue to 100%
  61. 5 fadeSound 0.1; // fades the sound to 10% in 5 seconds
  62. };
  63.  
  64. uiSleep 1;
  65. };
  66. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement