Epoch/Sources/epoch_code/compile/setup/EPOCH_clientRevive.sqf

51 lines
1.3 KiB
Plaintext
Raw Normal View History

2015-12-07 16:24:52 +00:00
/*
Author: Aaron Clark - EpochMod.com
Contributors:
Description:
Unisex check for vests, gives swing ammo and performs radio changed check
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/master/Sources/epoch_code/compile/setup/EPOCH_clientRevive.sqf
Example:
_data call EPOCH_clientRevive;
Parameter(s):
_this select 0: OBJECT - player object
_this select 1: STRING - personal token
Returns:
NOTHING
*/
2015-09-14 20:55:36 +00:00
_playerObject = _this select 0;
if !(alive player && alive _playerObject && !isPlayer _playerObject) then {
_ply = player;
_group = group player;
selectPlayer _playerObject;
deleteVehicle _ply;
// deleteGroup _group;
Epoch_canBeRevived = false;
Epoch_personalToken = _this select 1;
// call EPOCH_clientInit;
2015-12-07 16:24:52 +00:00
[] spawn EPOCH_masterLoop;
2015-09-14 20:55:36 +00:00
[5, 100] call EPOCH_niteLight;
closeDialog 0;
("BIS_fnc_respawnCounter" call BIS_fnc_rscLayer) cutText ["","PLAIN"];
2015-12-23 17:40:24 +00:00
{
player addEventHandler [_x,(["CfgEpochClient", _x, ""] call EPOCH_fnc_returnConfigEntryV2)];
} forEach (["CfgEpochClient", "addEventHandler", []] call EPOCH_fnc_returnConfigEntryV2);
2015-09-14 20:55:36 +00:00
} else {
deleteVehicle _playerObject;
};
2015-10-28 15:16:00 +00:00
true call EPOCH_pushCustomVar;