juandayz Posted November 1, 2016 Report Share Posted November 1, 2016 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"]; }; theduke and Hooty 2 Link to comment Share on other sites More sharing options...
0 Hooty Posted November 30, 2016 Report Share Posted November 30, 2016 Lol to funny. I like it. juandayz 1 Link to comment Share on other sites More sharing options...
Question
juandayz
a lil adaptation of known suicide script. player explode.
suicide.sqf
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 accountSign in
Already have an account? Sign in here.
Sign In Now