Jump to content
  • 0

Bombguy suicide


juandayz

Question

a lil adaptation of known suicide script.   player explode.

suicide.sqf

Spoiler

private ["_playerPos"];

_onLadder =    (getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> (animationState player) >> "onLadder")) == 1;
_canDo = (!r_drag_sqf && !r_player_unconscious && !_onLadder);
_playerPos = getPosATL player;

bombexp = {
_bomb = ["HelicopterExploSmall"];
_dabomb = objNull;
if (true) then
{
_this = createVehicle [_bomb,_playerPos, [], 2, "CAN_COLLIDE"];
_dabomb = _this;
};
};


suicide_answer=nil;
if(_canDo) then {
    DamiSpawn =
    [
        ["Suicide Confirmation",true],
        ["Are you sure?", [-1], "", -5, [["expression", ""]], "1", "0"],
        ["", [-1], "", -5,         [["expression", ""]], "1", "0"],
        ["No", [2], "", -5,     [["expression", "suicide_answer=false;"]], "1", "1"],
        ["Yes", [3], "", -5,     [["expression", "suicide_answer=true;"]], "1", "1"],
        ["", [-1], "", -5,         [["expression", ""]], "1", "0"],
        ["Exit", [-1], "", -3,     [["expression", "suicide_answer=false;"]], "1", "1"]
    ];
    showCommandingMenu "#USER:DamiSpawn";
    waitUntil {((!isNil 'suicide_answer')||(commandingMenu == ""))};
    if (isNil 'suicide_answer') then {suicide_answer=false;};
    if (suicide_answer) then
    {
        cutText["!!!!!!!!!!!!!BOMBGUY!!!!!!!!!!","PLAIN DOWN"];
        player playActionNow "PutDown";
        sleep 1;
        call bombexp;
    };
} else {
    cutText ["You are already performing an action","PLAIN DOWN"];
};

 

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Discord

×
×
  • Create New...