2023-10-01 18:55:13 +00:00
|
|
|
#include "..\script_component.hpp"
|
|
|
|
/*
|
|
|
|
* Author: drofseh
|
|
|
|
* Places a body bag inside a grave.
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Medic <OBJECT>
|
|
|
|
* 1: Patient <OBJECT>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* None
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* [cursorObject, player] call ace_medical_treatment_fnc_placeBodyBagInGrave
|
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
2023-10-02 15:05:56 +00:00
|
|
|
params ["_bodybag", "_medic"];
|
|
|
|
TRACE_2("placeBodyBagInGrave",_bodybag,_medic);
|
2023-10-01 18:55:13 +00:00
|
|
|
|
|
|
|
[
|
2023-10-02 15:05:56 +00:00
|
|
|
GVAR(treatmentTimeGrave),
|
2023-10-01 18:55:13 +00:00
|
|
|
_this,
|
|
|
|
{
|
2023-10-02 15:05:56 +00:00
|
|
|
TRACE_1("finished",_this);
|
|
|
|
(_this#0) params ["_bodybag","_medic"];
|
|
|
|
private _graveClassname = "";
|
|
|
|
if (GVAR(graveDiggingMarker)) then {
|
|
|
|
_graveClassname = missionNamespace getVariable [QGVAR(graveClassname), "ACE_Grave"];
|
|
|
|
};
|
|
|
|
private _graveRotation = missionNameSpace getVariable [QGVAR(graveRotation), 0];
|
|
|
|
|
|
|
|
[[_medic, _bodybag], _graveClassname, [0,0,0], _graveRotation, true] call FUNC(placeInBodyBagOrGrave);
|
2023-10-01 18:55:13 +00:00
|
|
|
},
|
2023-10-02 15:05:56 +00:00
|
|
|
{TRACE_1("failed",_this);},
|
2023-10-01 18:55:13 +00:00
|
|
|
LLSTRING(DiggingGrave)
|
2023-10-02 15:05:56 +00:00
|
|
|
// ToDo: check FUNC(canDigGrave)? - what if body dragged/burried by someone else
|
2023-10-01 18:55:13 +00:00
|
|
|
] call EFUNC(common,progressBar);
|