Advertisement
Guest User

pipesmoke.sqf

a guest
Mar 30th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. [] spawn {
  2.  
  3. if("ItemKiloHemp" in Magazines Player)then {
  4.  
  5. call spawnhigh;
  6. } else {
  7. cutText [format["You don't have any kush bro!!!"], "PLAIN DOWN"];
  8. };
  9.  
  10. spawnhigh = {
  11. hint "Put Some Kush In And Make It Bubble! (lasts 90 seconds)";
  12. player removeMagazine 'ItemKiloHemp';
  13. player setDamage 0;
  14. r_player_inpain = false;
  15. r_player_injured = false;
  16. dayz_hunger = dayz_hunger + 0.4;
  17. dayz_thirst = dayz_thirst + 0.4;
  18. r_player_lowblood = false;
  19. dayz_sourceBleeding = objNull;
  20. player setVariable ["USEC_injured",false,true];
  21. {player setVariable[_x,false,true];} forEach USEC_woundHit;
  22. player setVariable['medForceUpdate',true,true];
  23.  
  24. playSound "bong";
  25. sleep 5;
  26. playSound "cough";
  27. sleep 5;
  28. playSound "cough";
  29.  
  30. Remove_Drug_effects =
  31. {
  32. {ppEffectDestroy _x;} forEach (_this select 0);
  33. ppEffectDestroy ppe2;
  34. ppEffectDestroy ppe3;
  35. setaperture 0;
  36. };
  37.  
  38. _time = time;
  39. _effects = [];
  40. player playMoveNow "ActsPercMstpSnonWpstDnon_sceneBardak01";
  41. while {true} do
  42. {
  43. ppe2 = ppEffectCreate ["chromAberration", 1555];
  44. _effects = _effects + [ppe2];
  45. ppe2 ppEffectAdjust [random 0.25,random 0.25,true];
  46. ppe2 ppEffectCommit 1;
  47. ppe2 ppEffectEnable true;
  48. ppe3 = ppEffectCreate ["radialBlur", 1555];
  49. _effects = _effects + [ppe3];
  50. ppe3 ppEffectEnable true;
  51. ppe3 ppEffectAdjust [random 0.02,random 0.02,0.15,0.15];
  52. ppe3 ppEffectCommit 1;
  53. sleep random(1);
  54. if (_time + 60 < time) exitWith {[_effects] call Remove_Drug_effects;};
  55. };
  56. };
  57. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement