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

56 lines
1.4 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:
2016-06-13 16:54:19 +00:00
https://github.com/EpochModTeam/Epoch/tree/release/Sources/epoch_code/compile/setup/EPOCH_clientRevive.sqf
2015-12-07 16:24:52 +00:00
Example:
_data call EPOCH_clientRevive;
Parameter(s):
_this select 0: OBJECT - player object
_this select 1: STRING - personal token
Returns:
NOTHING
*/
2016-09-01 00:29:08 +00:00
//[[[cog import generate_private_arrays ]]]
private ["_group","_playerObject","_ply"];
//[[[end]]]
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;
Epoch_canBeRevived = false;
Epoch_personalToken = _this select 1;
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 removeEventHandler [_x, 0];
2015-12-23 17:40:24 +00:00
player addEventHandler [_x,(["CfgEpochClient", _x, ""] call EPOCH_fnc_returnConfigEntryV2)];
} forEach (["CfgEpochClient", "addEventHandler", []] call EPOCH_fnc_returnConfigEntryV2);
2016-01-08 23:19:18 +00:00
// reset blood Pressure to warning level
EPOCH_playerBloodP = 120;
2015-09-14 20:55:36 +00:00
} else {
deleteVehicle _playerObject;
};
2015-10-28 15:16:00 +00:00
true call EPOCH_pushCustomVar;