Advertisement
Guest User

Untitled

a guest
May 11th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 1.35 KB | None | 0 0
  1. if (!isNull _source) then {
  2.     if (_source != _unit) then {
  3.         if (currentWeapon _source in ["hgun_P07_snds_F"] && _projectile in ["B_9x21_Ball"]) then {
  4.             if(side _source in [west] && playerSide != west) then {
  5.                 _damage = 0;
  6.                 if (alive player && !life_istazed && !life_isknocked && !(_unit getVariable ["restrained",false])) then {
  7.                     private ["_distance"];
  8.                     _distance = 35;
  9.                     if (_projectile == "B_556x45_dual") then {_distance = 100;};
  10.                     if (_unit distance _source < _distance) then {
  11.                         if !(isNull objectParent player) then {
  12.                             if (typeOf (vehicle player) == "B_Quadbike_01_F") then {
  13.                                 player action ["Eject",vehicle player];
  14.                                 [_unit,_source] spawn life_fnc_tazed;
  15.                             };
  16.                         } else {
  17.                             [_unit,_source] spawn life_fnc_tazed;
  18.                         };
  19.                     };
  20.                 };
  21.             };
  22.  
  23.  
  24.             //Temp fix for super tasers on cops.
  25.             if (side _source isEqualTo west && (playerSide isEqualTo west || playerSide isEqualTo independent)) then {
  26.                 _damage = false;
  27.             };
  28.         };
  29.     };
  30. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement