fix(sar): align hoist timing with winch audio
This commit is contained in:
@@ -1,5 +1,14 @@
|
||||
// Declaração de variáveis
|
||||
params ["_panther"];
|
||||
// Declaracao de variaveis
|
||||
params ["_heli"];
|
||||
|
||||
// Recuperação do Cabo
|
||||
ropeUnwind [_panther getVariable "hoistrope", 1.15, 0.25, false];
|
||||
private _rope = _heli getVariable ["hoistrope", objNull];
|
||||
|
||||
if (isNull _rope) exitWith {};
|
||||
|
||||
private _targetLength = 0.25;
|
||||
private _duration = 16;
|
||||
private _currentLength = ropeLength _rope;
|
||||
private _speed = ((_currentLength - _targetLength) max 0.01) / _duration;
|
||||
|
||||
// Recuperacao do cabo com duracao alinhada ao audio do guincho.
|
||||
ropeUnwind [_rope, _speed, _targetLength, false];
|
||||
|
||||
Reference in New Issue
Block a user