Advertisement
Guest User

Untitled

a guest
Oct 21st, 2014
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.06 KB | None | 0 0
  1. /*
  2. Tortures the player
  3. */
  4. private["_unit","_rand","_damage", "_fatigue"];
  5. _unit = [_this,0,ObjNull,[ObjNull]] call BIS_fnc_param;
  6. if(isNull _unit) exitWith {};
  7. if(playerSide == west) exitWith {};
  8. if(life_action_inUse) exitWith {};
  9.  
  10. if(player distance _unit > 5 || !alive player || !alive _unit) exitWith {hint "Du kannst die Person nicht foltern."};
  11.  
  12. life_action_inUse = true;
  13.  
  14. _rand = [0,4] call life_fnc_randomRound;
  15.  
  16.  
  17. switch(_rand) do
  18. {
  19. case 0:
  20. {
  21. hintSilent "Du hast dem Spieler in den Magen geschlagen.";
  22. //Play sound on _unit
  23.  
  24. //Damage _unit
  25. _damage = damage _unit;
  26. _damage = _damage + 0.07;
  27.  
  28. if(_damage >= 1) then { _damage = 0.95; };
  29.  
  30. _unit setDamage _damage;
  31.  
  32. //Fatigure unit
  33. _fatigue = getFatigue _unit;
  34. _fatigue = _fatigue + 0.2;
  35.  
  36. if(_fatigue >= 1) then { _fatigue = 1; };
  37.  
  38. _unit setFatigue _fatigue;
  39.  
  40. [player,"punch"] call life_fnc_globalSound;
  41. [[player,_unit],"life_fnc_pSound1",_unit,false] spawn life_fnc_MP
  42. };
  43. case 1:
  44. {
  45. hintSilent "Du hast dem Spieler ins Gesicht geschlagen.";
  46. //Play sound on _unit
  47.  
  48. //Damage _unit
  49. _damage = damage _unit;
  50. _damage = _damage + 0.1;
  51.  
  52. if(_damage >= 1) then { _damage = 0.98; };
  53.  
  54. _unit setDamage _damage;
  55.  
  56. //Fatigure unit
  57. _fatigue = getFatigue _unit;
  58. _fatigue = _fatigue + 0.25;
  59.  
  60. if(_fatigue >= 1) then { _fatigue = 1; };
  61.  
  62. [player,"punch"] call life_fnc_globalSound;
  63. [[player,_unit],"life_fnc_pSound1",_unit,false] spawn life_fnc_MP;
  64.  
  65. };
  66. case 2:
  67. {
  68. hintSilent "Du hast den Spieler getreten.";
  69. //Play sound on _unit
  70.  
  71. //Damage _unit
  72. _damage = damage _unit;
  73. _damage = _damage + 0.11;
  74.  
  75. if(_damage >= 1) then { _damage = 0.98; };
  76.  
  77. _unit setDamage _damage;
  78.  
  79. //Fatigure unit
  80. _fatigue = getFatigue _unit;
  81. _fatigue = _fatigue + 0.1;
  82.  
  83. if(_fatigue >= 1) then { _fatigue = 1; };
  84.  
  85. [player,"punch_break"] call life_fnc_globalSound;
  86.  
  87. [[player,_unit],"life_fnc_pSound2",_unit,false] spawn life_fnc_MP;
  88. };
  89. case 3:
  90. {
  91. hintSilent "Du hast dem Spieler in eine sensible Stelle getreten.";
  92. //Play sound on _unit
  93.  
  94. //Damage _unit
  95. _damage = damage _unit;
  96. _damage = _damage + 0.5;
  97.  
  98. if(_damage >= 1) then { _damage = 0.99; };
  99.  
  100. _unit setDamage _damage;
  101.  
  102. _unit setFatigue 1;
  103.  
  104. [player,"punch_balls"] call life_fnc_globalSound;
  105. [[player,_unit],"life_fnc_pSound3",_unit,false] spawn life_fnc_MP;
  106. };
  107. default
  108. {
  109. hintSilent "Du hast dem Spieler einige Zähne ausgeschlagen.";
  110. //Play sound on _unit
  111.  
  112. //Damage _unit
  113. _damage = damage _unit;
  114. _damage = _damage + 0.1;
  115.  
  116. if(_damage >= 1) then { _damage = 0.98; };
  117.  
  118. _unit setDamage _damage;
  119.  
  120. //Fatigure unit
  121. _fatigue = getFatigue _unit;
  122. _fatigue = _fatigue + 0.1;
  123.  
  124. if(_fatigue >= 1) then { _fatigue = 1; };
  125.  
  126. [player,"punch"] call life_fnc_globalSound;
  127. [[player,_unit],"life_fnc_pSound1",_unit,false] spawn life_fnc_MP;
  128. };
  129. };
  130.  
  131.  
  132. life_action_inUse = false;
  133. [[getPlayerUID player,name player,"26"],"life_fnc_wantedAdd",false,false] spawn life_fnc_MP;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement