@@ -7,40 +7,43 @@ if (_type == 0) then {
77 params [" _target" , " _caller" , " _actionId" , " _arguments" ];
88 _anim = (animationState _target ) select [0 ,11 ];
99 if (_anim ! = " unconscious" ) exitWith {[0 ," Patient isn't Ready!" ] call AIO_fnc_customHint };
10- _target setAnimSpeedCoef 2.4 ;
11- _caller setAnimSpeedCoef 2 ;
10+ _target setAnimSpeedCoef 2.02 ;
11+ _caller setAnimSpeedCoef 1.75 ;
1212 _target switchMove " AinjPfalMstpSnonWrflDnon_carried_Up" ;
1313 _target playMoveNow " AinjPfalMstpSnonWrflDnon_carried_Up" ;
1414 _caller switchMove " AcinPknlMstpSrasWrflDnon_AcinPercMrunSrasWrflDnon" ;
1515 _caller playMoveNow " AcinPknlMstpSrasWrflDnon_AcinPercMrunSrasWrflDnon" ;
16- _target disableAI " ANIM" ;
1716 _cond1 = {
1817 params [" _caller" , " _initTime" ];
1918 if (_x distance2D _caller > 5 ) exitWith {true };
2019 _animS = animationState _caller ;
21- if (_animS == " acinpknlmstpsraswrfldnon_acinpercmrunsraswrfldnon" && time - _initTime < 8 ) exitWith {false };
22- _x setAnimSpeedCoef 1 ;
20+ if (animationState _x == " ainjpfalmstpsnonwrfldnon_carried_still" && {abs ((getDir _x ) - (getDir _caller )) > 5 }) then {
21+ _x setDir 0 ; _x attachTo [_caller , [0.2 ,0.1 ,0.1 ]]
22+ };
23+ if (count _animS > 26 && time - _initTime < 8 ) exitWith {false };
24+ hintSilent str count _animS ;
2325 _caller setAnimSpeedCoef 1 ;
24- _fail = ((lifeState _caller == " INCAPACITATED" ) || (lifeState _x ! = " INCAPACITATED" ) || {_animS select [0 ,5 ] ! = " AcinP" });
26+ _x setAnimSpeedCoef 1 ;
27+ _fail = ((lifeState _caller == " INCAPACITATED" ) || (lifeState _x ! = " INCAPACITATED" ) || {_animS select [0 ,4 ] ! = " Acin" });
2528 _fail
2629 };
2730 _code1 = {
2831 params [" _caller" ];
2932 // _caller playMoveNow "AcinPercMrunSrasWrflDf_AmovPercMstpSlowWrflDnon";
3033 // _x switchMove "AinjPfalMstpSnonWrflDnon_carried_Down";
34+ _x enableAI " ANIM" ;
3135 detach _x ;
3236 _x playMoveNow " unconsciousReviveDefault" ;
3337 _x setAnimSpeedCoef 1 ;
3438 _caller setAnimSpeedCoef 1 ;
3539 _x setVariable [" AIO_medic" , objNull ];
3640 if (lifeState _caller ! = " INCAPACITATED" ) then {_caller switchMove " " };
37- _x enableAI " PATH" ;
38- _x enableAI " ANIM" ;
3941 _caller removeAction (_caller getVariable [" AIO_actionDrop" , - 1 ]);
40- _x setPos ([_caller , 0.5 ] call AIO_fnc_exactPos );
4142 _caller setVariable [" AIO_actionDrop" , - 1 ];
4243 [_x , 0 ] call AIO_fnc_dragAction ;
4344 };
45+ _target disableAI " MOVE" ;
46+ _target disableAI " ANIM" ;
4447 _cond2 = {false };
4548 _code2 = {};
4649 _target setVariable [" AIO_animation" , [[], [], [_cond1 , _code1 , _cond2 , _code2 , [_caller , time ]], [" AinjPfalMstpSnonWrflDnon_carried_Up" ,1 ], time + 1000 ]];
@@ -76,21 +79,19 @@ if (_type == 0) then {
7679 params [" _caller" ];
7780 if (_x distance2D _caller > 5 ) exitWith {true };
7881 _animS = animationState _caller ;
79- if (_animS == " amovpercmstpslowwrfldnon_acinpknlmwlkslowwrfldb_2 " ) exitWith {false };
80- _fail = ((lifeState _caller == " INCAPACITATED" ) || (lifeState _x ! = " INCAPACITATED" ) || {_animS select [0 ,5 ] ! = " AcinP " });
82+ if (count _animS > 26 ) exitWith {false };
83+ _fail = ((lifeState _caller == " INCAPACITATED" ) || (lifeState _x ! = " INCAPACITATED" ) || {_animS select [0 ,4 ] ! = " Acin " });
8184 _fail
8285 };
8386 _code1 = {
8487 params [" _caller" ];
8588 // _caller playMoveNow "AcinPknlMstpSrasWrflDnon_AmovPknlMstpSrasWrflDnon";
89+ _x enableAI " ANIM" ;
8690 detach _x ;
8791 _x switchMove " AinjPpneMstpSnonWrflDb_release" ;
8892 _x playMoveNow " unconsciousReviveDefault" ;
8993 _x setVariable [" AIO_medic" , objNull ];
90- _x enableAI " PATH" ;
91- _x enableAI " ANIM" ;
9294 _caller playMoveNow " AcinPknlMstpSrasWrflDnon_AmovPknlMstpSrasWrflDnon" ;
93- _x setPos ([_caller , 0.5 ] call AIO_fnc_exactPos );
9495 _caller removeAction (_caller getVariable [" AIO_actionDrop" , - 1 ]);
9596 _caller setVariable [" AIO_actionDrop" , - 1 ];
9697 [_x , 0 ] call AIO_fnc_dragAction ;
@@ -106,7 +107,8 @@ if (_type == 0) then {
106107 AIO_animatedUnits pushBackUnique _target ;
107108
108109 _target setVariable [" AIO_medic" , _caller ];
109-
110+ _target disableAI " MOVE" ;
111+ _target disableAI " ANIM" ;
110112 _target attachTo [_caller , [0 ,0.8 ,0 ]];
111113 _target setDir 180 ;
112114 _target removeAction _actionId ;
@@ -133,26 +135,24 @@ if (_type == 0) then {
133135 _arguments params [" _type" , " _target" ];
134136 _animS = animationState _caller ;
135137 if (_type == 1 ) then {
136- if (_animS select [ 0 , 5 ] ! = " AcinP " ) exitWith {[0 ," Try again in a moment." ] call AIO_fnc_customHint };
138+ if (count _animS > 26 ) exitWith {[0 ," Try again in a moment." ] call AIO_fnc_customHint };
137139 AIO_animatedUnits = AIO_animatedUnits - [_target ];
140+ _target enableAI " ANIM" ;
138141 detach _target ;
139142 _target playMoveNow " unconsciousReviveDefault" ;
140143 _caller playMoveNow " AcinPercMrunSrasWrflDf_AmovPercMstpSlowWrflDnon" ;
141144 _target setVariable [" AIO_medic" , objNull ];
142- _target enableAI " PATH" ;
143- _target enableAI " ANIM" ;
144145 // _target setPos ([_caller, 0.5] call AIO_fnc_exactPos);
145146 _unit removeAction _actionId ;
146147 [_target , 0 ] call AIO_fnc_dragAction ;
147148 } else {
148- if (_animS select [ 0 , 5 ] ! = " AcinP " ) exitWith {[0 ," Try again in a moment." ] call AIO_fnc_customHint };
149+ if (count _animS > 26 ) exitWith {[0 ," Try again in a moment." ] call AIO_fnc_customHint };
149150 AIO_animatedUnits = AIO_animatedUnits - [_target ];
151+ _target enableAI " ANIM" ;
150152 detach _target ;
151153 _caller playMoveNow " AcinPknlMstpSrasWrflDnon_AmovPknlMstpSrasWrflDnon" ;
152154 _target playMoveNow " unconsciousReviveDefault" ;
153155 _target setVariable [" AIO_medic" , objNull ];
154- _target enableAI " PATH" ;
155- _target enableAI " ANIM" ;
156156 // _target setPos ([_caller, 0.5] call AIO_fnc_exactPos);
157157 _unit removeAction _actionId ;
158158 [_target , 0 ] call AIO_fnc_dragAction ;
0 commit comments