Advertisement
Guest User

Untitled

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