DubStepMad

Untitled

May 1st, 2017
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. //Check if it's a dead body.
  2. if (_curObject isKindOf "Man" && !(_curObject isKindOf "Animal") && {!alive _curObject} && !(_curObject getVariable["Revive",false]) && {playerSide in [west,independent]}) exitWith {
  3. //Hotfix code by ins0
  4. if (((playerSide isEqualTo west && {(LIFE_SETTINGS(getNumber,"revive_cops") isEqualTo 1)}) || playerSide isEqualTo independent)) then {
  5. if (life_inv_defibrillator > 0) then {
  6. [_curObject] call life_fnc_revivePlayer;
  7. };
  8. };
  9. };
Advertisement
Add Comment
Please, Sign In to add comment