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
+13 -4
View File
@@ -1,5 +1,14 @@
// Declaração de variáveis:
params ["_panther"];
// Declaracao de variaveis:
params ["_heli"];
// Extensão do Cabo
ropeUnwind [_panther getVariable "hoistrope", 1.15, 25, false];
private _rope = _heli getVariable ["hoistrope", objNull];
if (isNull _rope) exitWith {};
private _targetLength = 25;
private _duration = 16;
private _currentLength = ropeLength _rope;
private _speed = ((_targetLength - _currentLength) max 0.01) / _duration;
// Extensao do cabo com duracao alinhada ao audio do guincho.
ropeUnwind [_rope, _speed, _targetLength, false];