fix(sar): align hoist timing with winch audio

This commit is contained in:
2026-06-24 16:04:38 -03:00
parent cff68d95f4
commit 4c70125409
6 changed files with 72 additions and 53 deletions
+9 -8
View File
@@ -1,25 +1,27 @@
// Declaração de variáveis
params ["_heli", "_player"];
// Declaracao de variaveis
params ["_heli"];
// Récupération des victimes (thx to Tetet)
private _basket = _heli getVariable ["rescueseat", objNull];
private _rope = _heli getVariable ["hoistrope", objNull];
private _length = ropeLength _rope;
if (isNull _rope) then {
if (isNull _rope) exitWith {
_heli vehicleChat "no rope!";
};
private _length = ropeLength _rope;
if (_length <= 3.1) then {
{
if (!isNil "_x") then {
_x leaveVehicle _basket;
_x action["GetOut", _basket];
_x action ["GetOut", _basket];
sleep 0.1;
_basket lock 0;
[_x, _heli] remoteExec ["moveInCargo", _x];
_x assignAsCargo _heli;
};
} forEach crew _basket;
ropeDestroy _rope;
deleteVehicle _basket;
_heli setVariable ["rescueseat", nil];
@@ -29,6 +31,5 @@ if (_length <= 3.1) then {
_heli vehicleChat "First Raise The Basket To Cabin Door";
};
// Corte do Cabo
// ropeCut [_heli getVariable "hoistrope", 0];
// deleteVehicle (_heli getVariable "rescueseat");
// deleteVehicle (_heli getVariable "rescueseat");