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"];
|
||||
|
||||
// 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];
|
||||
|
||||
Reference in New Issue
Block a user