mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
ee7f7497c0
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).
44 lines
991 B
Plaintext
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;
|
|
};
|
|
};
|