Epoch/Sources/epoch_code/compile/functions/EPOCH_fnc_playerDeathDetonate.sqf
vbawol ee7f7497c0 0.3.9 b568
change gamemode from Survival to Survive
enabled Ryan Zombies support by default.
added random delay in revenge detonation.
added min alive time setting for player revenge options. Default 15
minutes (900 seconds).
2016-07-12 14:19:56 -05:00

44 lines
991 B
Plaintext

/*
Author: Andrew Gregory - EpochMod.com
Contributors:
Description:
Detonate player body.
Licence:
Arma Public License Share Alike (APL-SA) - https://www.bistudio.com/community/licenses/arma-public-license-share-alike
Github:
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/functions/EPOCH_fnc_playerDeathDetonate.sqf
Example:
[] call EPOCH_fnc_playerDeathDetonate;
Parameter(s):
Returns:
BOOM
*/
params ["_player"];
openmap [false,false];
closeDialog 2;
[] spawn{
// todo: add paricle effect here.
// random delay of up to 30 seconds,
uisleep (random 25) + 5;
[_player, Epoch_personalToken] remoteExec ["EPOCH_server_deadPlayerDetonate",2];
deleteVehicle player;
player setVariable ["doneBoom", true];
while {!alive player} do {
//Handle clean up
if(player getVariable["doneBoom",false])exitWith{player setVariable ["doneBoom",nil]; uiSleep 5; (findDisplay 46) closeDisplay 0;};
uiSleep 0.1;
};
};