Advertisement
Guest User

Untitled

a guest
Dec 16th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. private ["_Secondary"];
  2. _Secondary = currentWeapon player;
  3. _onLadder = (getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> (animationState player) >> "onLadder")) == 1;
  4. _canDo = (!r_drag_sqf && !r_player_unconscious && !_onLadder);
  5. suicide_answer=nil;
  6. if(_canDo) then {
  7. DamiSpawn =
  8. [
  9. ["Suicide Confirmation",true],
  10. ["Are you sure?", [-1], "", -5, [["expression", ""]], "1", "0"],
  11. ["", [-1], "", -5, [["expression", ""]], "1", "0"],
  12. ["No", [2], "", -5, [["expression", "suicide_answer=false;"]], "1", "1"],
  13. ["Yes", [3], "", -5, [["expression", "suicide_answer=true;"]], "1", "1"],
  14. ["", [-1], "", -5, [["expression", ""]], "1", "0"],
  15. ["Exit", [-1], "", -3, [["expression", "suicide_answer=false;"]], "1", "1"]
  16. ];
  17. showCommandingMenu "#USER:DamiSpawn";
  18. waitUntil {((!isNil 'suicide_answer')||(commandingMenu == ""))};
  19. if (isNil 'suicide_answer') then {suicide_answer=false;};
  20. if (suicide_answer) then
  21. {
  22. cutText["You have grown tired of this endless battle.","PLAIN DOWN"];
  23. player playmove "ActsPercMstpSnonWpstDnon_suicide1B";
  24. sleep 8.4;
  25. player fire _Secondary;
  26. _selection = "body";
  27. [player,'suicide'] call player_death;
  28. };
  29. } else {
  30. cutText ["You are already performing an action","PLAIN DOWN"];
  31. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement