Bug #13009

Fix for isTurnedOut for new OA turned out animations

Added by jaynus almost 5 years ago. Updated almost 5 years ago.

Status:Closed Start date:08/17/2010
Priority:Normal Due date:
Assignee:killswitch % Done:

100%

Category:Misc Functions
Target version:v0.7.0
Component: Affected Version:
Close Reason:

Description

The turned out animations for new OA vehicles were given a _ep1 postfix, which would (obviously) cause isTurnedOut to always fail for anyone in a new OA vehicle.

The important portion of the code should now be:

PARAMS_1(_unit);
_anim = toArray(toLower(animationState _unit));
_count = (count _anim)-1;
_out = toString([_anim select (_count-2),_anim select (_count-1),_anim select _count]);
if(_out == "ep1") then {
_out = toString([_anim select (_count-6),_anim select (_count-5),_anim select (_count-4)]);
};
if (_out == "out") then { _ret = true; } else { _ret = false; };
_ret

Attaching a patched fnc_isTurnedOut.sqf

fnc_isTurnedOut.sqf (1 kB) jaynus, 08/17/2010 18:17

Associated revisions

Revision 32503e88
Added by killswitch almost 5 years ago

Fixed: isTurnedOut would fail for units in OA vehicles. Fixes #13009

Revision 32503e88
Added by killswitch almost 5 years ago

Fixed: isTurnedOut would fail for units in OA vehicles. Fixes #13009

History

Updated by killswitch almost 5 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Updated by killswitch almost 5 years ago

  • Category set to Misc Functions
  • Assignee set to killswitch
  • Target version set to 750

Updated by Sickboy almost 5 years ago

  • Status changed from Resolved to Closed

Updated by Sickboy almost 5 years ago

  • Target version changed from 750 to v0.7.0

Also available in: Atom PDF