Advertisement
Guest User

Untitled

a guest
Mar 17th, 2018
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.09 KB | None | 0 0
  1. #include "..\..\script_macros.hpp"
  2. /*
  3. fn_radArea.sqf
  4.  
  5. Created by Rness & Francesco
  6. */
  7.  
  8. _player = [_this,0,objNull,[objNull]] call BIS_fnc_param;
  9. _damage = getDammage _player;
  10. _uniform = uniform _player;
  11. _vest = vest _player;
  12. _goggles = goggles _player;
  13. _rad1 = ppEffectCreate ["ChromAberration",200];
  14. _rad2 = ppEffectCreate ["DynamicBlur",500];
  15. _rad3 = ppEffectCreate ["FilmGrain",2000];
  16.  
  17. if (!alive _player || (_damage == 1) || (_player getVariable ["exitRad",true])) exitWith {
  18.  
  19. _player setVariable ["exitRad",true];
  20. _rad1 ppEffectEnable false;
  21. _rad1 ppEffectAdjust [0,0,true];
  22. _rad1 ppEffectCommit 1;
  23. _rad2 ppEffectEnable false;
  24. _rad2 ppEffectAdjust [0];
  25. _rad2 ppEffectCommit 1;
  26. _rad3 ppEffectEnable false;
  27. _rad3 ppEffectAdjust [0,0,0,0,0,true];
  28. _rad3 ppEffectCommit 1;};
  29.  
  30. // this is the check to see if they are wearing protective clothing
  31. if ((_uniform isEqualTo "U_C_Scientist") && (_vest isEqualTo "V_Pocketed_black_F") && (_goggles isEqualTo "G_Respirator_white_F")) then {
  32.  
  33.  
  34. // edit this for the length of the effect
  35. for "_i" from 0 to 4 do {
  36. _rad1 ppEffectEnable true;
  37. _rad1 ppEffectAdjust [-0.02,0,true];
  38. _rad1 ppEffectCommit 1;
  39. _rad2 ppEffectEnable true;
  40. _rad2 ppEffectAdjust [0.03];
  41. _rad2 ppEffectCommit 1;
  42. _rad3 ppEffectEnable true;
  43. _rad3 ppEffectAdjust [0.12,1.52,3.54,2,2,true];
  44. _rad3 ppEffectCommit 1;
  45. };
  46. sleep 5;
  47.  
  48. //loops the script until they exit
  49. [_player] remoteExec ["life_fnc_radArea",_player];
  50.  
  51. } else {
  52.  
  53. // edit this for the length of the effect
  54. for "_i" from 0 to 4 do {
  55. _rad1 ppEffectEnable true;
  56. _rad1 ppEffectAdjust [-0.02,0,true];
  57. _rad1 ppEffectCommit 1;
  58. _rad2 ppEffectEnable true;
  59. _rad2 ppEffectAdjust [0.03];
  60. _rad2 ppEffectCommit 1;
  61. _rad3 ppEffectEnable true;
  62. _rad3 ppEffectAdjust [0.12,1.52,3.54,2,2,true];
  63. _rad3 ppEffectCommit 1;
  64. };
  65. sleep 5;
  66.  
  67. //set the damage to player
  68. _player setDamage (_damage + 0.1);
  69.  
  70. //loops the script until they exit
  71. [_player] remoteExec ["life_fnc_radArea",_player];
  72. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement