1
- if (! isServer ) exitWith {};
1
+ if (! isServer ) exitWith {};
2
2
3
3
_unit = _this select 0 ;
4
4
_anim = _this select 1 ;
@@ -18,81 +18,81 @@ _unit setcaptive true;
18
18
19
19
IF (alive _unit ) then {
20
20
21
- _numberOfKits = {" FirstAidKit" == _x } count (items _unit );
22
- [_unit , " firstaidkit" ] remoteExec [" removeItems" , 0 ];
23
-
21
+ _numberOfKits = {" FirstAidKit" == _x } count (items _unit );
22
+ [_unit , " firstaidkit" ] remoteExec [" removeItems" , 0 ];
23
+
24
24
_stanceu = 0 ;
25
25
IF (" STAND" == stance _unit ) then {
26
- [_unit ,(selectRandom [" AinvPknlMstpSlayWrflDnon_healed" , " AinvPknlMstpSlayWrflDnon_healed2" ])] remoteExec [" playMove" , 0 ];
26
+ [_unit ,(selectRandom [" AinvPknlMstpSlayWrflDnon_healed" , " AinvPknlMstpSlayWrflDnon_healed2" ])] remoteExec [" playMove" , 0 ];
27
27
_stanceu = 1 ;
28
28
} ELSE {
29
29
IF (" CROUCH" == stance _unit ) then {
30
30
_stanceu = 2 ;
31
- [_unit ," AmovPknlMstpSrasWrflDnon_AinvPknlMstpSlayWrflDnon" ] remoteExec [" switchMove" , 0 ];
31
+ [_unit ," AmovPknlMstpSrasWrflDnon_AinvPknlMstpSlayWrflDnon" ] remoteExec [" switchMove" , 0 ];
32
32
sleep 0.76 ;
33
33
[_unit ,(selectRandom [" AinvPknlMstpSlayWrflDnon_healed" , " AinvPknlMstpSlayWrflDnon_healed2" ])] remoteExec [" switchMove" , 0 ];
34
34
} ELSE {
35
35
IF (" PRONE" == stance _unit ) then {
36
- [_unit ," AmovPpneMstpSrasWrflDnon_healed" ] remoteExec [" playMove" , 0 ];
36
+ [_unit ," AmovPpneMstpSrasWrflDnon_healed" ] remoteExec [" playMove" , 0 ];
37
37
} ELSE {
38
38
IF (" UNDEFINED" == stance _unit ) then {
39
- [_unit ,(selectRandom [" AinvPknlMstpSlayWrflDnon_healed" , " AinvPknlMstpSlayWrflDnon_healed2" ])] remoteExec [" playMove" , 0 ];
39
+ [_unit ,(selectRandom [" AinvPknlMstpSlayWrflDnon_healed" , " AinvPknlMstpSlayWrflDnon_healed2" ])] remoteExec [" playMove" , 0 ];
40
40
};
41
41
};
42
42
};
43
43
};
44
44
45
45
46
- waitUntil { sleep 0.1 ; ((AnimationState _unit == " AinvPknlMstpSlayWrflDnon_healed" ) or (AnimationState _unit == " AinvPknlMstpSlayWrflDnon_healed2" ) or (AnimationState _unit == " AmovPpneMstpSrasWrflDnon_healed" ) or (! alive _unit ))
46
+ waitUntil { sleep 0.1 ; ((AnimationState _unit == " AinvPknlMstpSlayWrflDnon_healed" ) or (AnimationState _unit == " AinvPknlMstpSlayWrflDnon_healed2" ) or (AnimationState _unit == " AmovPpneMstpSrasWrflDnon_healed" ) or (! alive _unit ))
47
47
};
48
- sleep (3 + (random 2 ));
48
+ sleep (3 + (random 2 ));
49
49
IF (! alive _unit ) exitWith {
50
50
_unit setVariable [" dam_ignore_injured0" ,false ];
51
51
};
52
52
53
-
54
- // __________________________________________________________Выход_______________________________________________________________
53
+
54
+ // __________________________________________________________Выход_______________________________________________________________
55
55
56
56
IF (_numberOfKits > 0 ) then {
57
57
for " _i" from 1 to _numberOfKits do { _unit addItem " FirstAidKit" };
58
58
};
59
59
60
- IF (alive _unit ) then {
60
+ IF (alive _unit ) then {
61
61
IF ((_shans - (random 15 )) >= 0 ) then {
62
- IF ((_shans - (random 18 )) >= 0 ) then {
62
+ IF ((_shans - (random 18 )) >= 0 ) then {
63
63
[_unit ," AmovPknlMstpSrasWrflDnon_AmovPpneMstpSrasWrflDnon" ] remoteExec [" switchMove" , 0 ];
64
- sleep 0.05 ;
64
+ sleep 0.05 ;
65
65
_null = [_unit , _anim , _shans , _shooter ] spawn Crawl;
66
-
67
- } ELSE {
66
+
67
+ } ELSE {
68
68
[_unit ," AmovPknlMstpSrasWrflDnon_AmovPpneMstpSrasWrflDnon" ] remoteExec [" switchMove" , 0 ];
69
69
sleep 0.05 ;
70
70
_null = [_unit , _anim , _shans , _shooter ] spawn Uncondition;
71
71
72
72
};
73
73
74
74
} ELSE {
75
-
76
- waitUntil { sleep 0.1 ; (((AnimationState _unit ! = " AinvPknlMstpSlayWrflDnon_healed" ) && (AnimationState _unit ! = " AinvPknlMstpSlayWrflDnon_healed2" ) && (AnimationState _unit ! = " AmovPpneMstpSrasWrflDnon_healed" )) or (! alive _unit ))
75
+
76
+ waitUntil { sleep 0.1 ; (((AnimationState _unit ! = " AinvPknlMstpSlayWrflDnon_healed" ) && (AnimationState _unit ! = " AinvPknlMstpSlayWrflDnon_healed2" ) && (AnimationState _unit ! = " AmovPpneMstpSrasWrflDnon_healed" )) or (! alive _unit ))
77
77
};
78
78
79
- IF (_stanceu == 1 ) then {
79
+ IF (_stanceu == 1 ) then {
80
80
[_unit ," AinvPknlMstpSlayWrflDnon_AmovPercMstpSrasWrflDnon" ] remoteExec [" switchMove" , 0 ];
81
- waitUntil { sleep 0.1 ; (((AnimationState _unit ! = " AinvPknlMstpSlayWrflDnon_AmovPercMstpSrasWrflDnon" ) && (AnimationState _unit ! = " AinvPknlMstpSlayWrflDnon_AmovPknlMstpSrasWrflDnon" ) && (AnimationState _unit ! = " AinvPknlMstpSlayWrflDnon" ) && (AnimationState _unit ! = " AinvPknlMstpSlayWrflDnon_1" ) && (AnimationState _unit ! = " AmovPknlMstpSrasWrflDnon_AinvPknlMstpSlayWrflDnon" )) or (! alive _unit ))
81
+ waitUntil { sleep 0.1 ; (((AnimationState _unit ! = " AinvPknlMstpSlayWrflDnon_AmovPercMstpSrasWrflDnon" ) && (AnimationState _unit ! = " AinvPknlMstpSlayWrflDnon_AmovPknlMstpSrasWrflDnon" ) && (AnimationState _unit ! = " AinvPknlMstpSlayWrflDnon" ) && (AnimationState _unit ! = " AinvPknlMstpSlayWrflDnon_1" ) && (AnimationState _unit ! = " AmovPknlMstpSrasWrflDnon_AinvPknlMstpSlayWrflDnon" )) or (! alive _unit ))
82
82
};
83
83
[_unit ," AmovPercMstpSrasWrflDnon" ] remoteExec [" switchMove" , 0 ];
84
-
84
+
85
85
};
86
86
IF (_stanceu == 2 ) then {
87
87
[_unit ," AinvPknlMstpSlayWrflDnon_AmovPknlMstpSrasWrflDnon" ] remoteExec [" switchMove" , 0 ];
88
- waitUntil { sleep 0.1 ; (((AnimationState _unit ! = " AinvPknlMstpSlayWrflDnon_AmovPercMstpSrasWrflDnon" ) && (AnimationState _unit ! = " AinvPknlMstpSlayWrflDnon_AmovPknlMstpSrasWrflDnon" ) && (AnimationState _unit ! = " AinvPknlMstpSlayWrflDnon" ) && (AnimationState _unit ! = " AinvPknlMstpSlayWrflDnon_1" ) && (AnimationState _unit ! = " AmovPknlMstpSrasWrflDnon_AinvPknlMstpSlayWrflDnon" )) or (! alive _unit ))
89
- };
88
+ waitUntil { sleep 0.1 ; (((AnimationState _unit ! = " AinvPknlMstpSlayWrflDnon_AmovPercMstpSrasWrflDnon" ) && (AnimationState _unit ! = " AinvPknlMstpSlayWrflDnon_AmovPknlMstpSrasWrflDnon" ) && (AnimationState _unit ! = " AinvPknlMstpSlayWrflDnon" ) && (AnimationState _unit ! = " AinvPknlMstpSlayWrflDnon_1" ) && (AnimationState _unit ! = " AmovPknlMstpSrasWrflDnon_AinvPknlMstpSlayWrflDnon" )) or (! alive _unit ))
89
+ };
90
90
IF (" STAND" == stance _unit ) then {
91
91
[_unit ," AmovPercMstpSrasWrflDnon" ] remoteExec [" switchMove" , 0 ];
92
92
} Else {
93
93
[_unit ," AmovPknlMstpSrasWrflDnon" ] remoteExec [" switchMove" , 0 ];
94
94
};
95
-
95
+
96
96
};
97
97
_unit setVariable [" dam_ignore_injured0" ,false ];
98
98
@@ -104,10 +104,8 @@ _stanceu = 0;
104
104
IF ! (PiR_captive_on) then {
105
105
_unit setcaptive false ;
106
106
};
107
- };
107
+ };
108
108
};
109
- // _______________________________________________________________________________________________________________________________
109
+ // _______________________________________________________________________________________________________________________________
110
110
111
111
};
112
-
113
-
0 commit comments