Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- File: fn_teargas.sqf
- Author: Blackd0g, Updated by Jokahghost
- Description:
- Fucks their shit up
- */
- playerNearGas=false;
- [] spawn {
- sleep 2;
- while {true} do
- {
- if
- (
- (((nearestObject [getpos player, "SmokeShellYellow"]) distance player < 20))
- ) then
- {
- playerNearGas=true;
- }
- else
- {
- playerNearGas=false;
- };
- uiSleep 3;
- };
- };
- [] spawn {
- sleep 2;
- while {true} do
- {
- "dynamicBlur" ppEffectEnable true; // enables ppeffect
- "dynamicBlur" ppEffectAdjust [0]; // enables normal vision
- "dynamicBlur" ppEffectCommit 15; // time it takes to normal
- resetCamShake; // resets the shake
- 20 fadeSound 1; //fades the sound back to normal
- waituntil {playerNearGas}; // Wait till a Gas Grenade is near player
- if (goggles player == "CPE_MK50" or goggles player == "Skyline_Glasses_Masque_GP5_01_F" or headgear player == "TAC_SF10H" ) then {
- antidote1 = 2581
- }else{
- antidote1 = 2583
- };
- if (antidote1 == 2583) then {
- "dynamicBlur" ppEffectEnable true; // enables ppeffect
- "dynamicBlur" ppEffectAdjust [20]; // intensity of blur
- "dynamicBlur" ppEffectCommit 3; // time till vision is fully blurred
- enableCamShake false; // enables camera shake
- addCamShake [10, 45, 10]; // sets shakevalues
- player setFatigue 1; // sets the fatigue to 100%
- 5 fadeSound 0.1; // fades the sound to 10% in 5 seconds
- };
- uiSleep 1;
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement