Uploading new files for load functions

The files are heavily edited.
This commit is contained in:
worldwidesorrow
2019-12-11 18:34:41 -06:00
committed by GitHub
parent 1b9679d646
commit bbdaf0cffe
4 changed files with 78 additions and 90 deletions

View File

@@ -1,31 +1,23 @@
// Load_act.sqf
// JULY 2010 - norrin
// Updated December 2019 - JasonTM
private ["_args","_dragger","_vcl","_wounded"];
private ["_args","_medic","_vcl","_wounded"];
_args = _this select 3;
_dragger = _args select 0;
_medic = _args select 0;
_vcl = _args select 1;
_wounded = _args select 2;
r_drag_sqf = false;
r_action = false;
r_action_load = false;
call fnc_usec_medic_removeActions;
_wounded removeAction NORRN_loadWoundedAction;
if ((_vcl emptyPositions "cargo") > 0) then
{
detach _wounded;
_dragger switchMove "";
_wounded setVariable ["NORRN_LoadVcl", _vcl, true];
uiSleep 1;
//["PVDZ_drg_RLact",_wounded] call broadcastRpcCallAll;
[_wounded] execVM "\z\addons\dayz_code\medical\load\load_wounded.sqf";
PVDZ_drg_RLact = _wounded;
publicVariable "PVDZ_drg_RLact";
player removeAction NORRN_dropAction;
if ((_vcl emptyPositions "cargo") > 0) then {
// Send information to start the load process
PVDZ_send = [_wounded,"LoadWounded",[_wounded,_medic,_vcl],[_wounded,dayz_authKey,_medic]];
publicVariableServer "PVDZ_send";
} else {
localize "str_dragnospace" call dayz_rollingMessages;//hint "No space left in vehicle";
localize "str_dragnospace" call dayz_rollingMessages; // "No space left in vehicle"
};
NORRN_load_wounded_action = true;