Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (!TR_Actv) then {TR_Actv=true} else {TR_Actv=false; exit}
- _l = _this select 0
- _s = _this select 1
- _r = (TR_List select ((TR_List find _l)-1))
- if (!alive _s || !alive _l) then {hint localize "STR_v3s_badlydammaged"; exit} else {if (leader _s != _s) then {hint localize "STR_repairtruck_onlyleader";exit} else {if (fuel _r!=0) then {hint localize "STR_nofix";exit}}}
- _t = 50 + (random 25)
- _v = ((getpos _s select 0)-((getpos _l select 0)-1*(sin getdir _l))) atan2 ((getpos _s select 1)-((getpos _l select 1)-1*(cos getdir _l))) + 180
- ? _v < 0 : _v=_v+360
- _s playMove (if ((_s call CHECK_STANCE_CWA_GET_ANIM) in CHECK_STANCE_CWA_HANDGUN) then {"HandGunStand"} else {"combat"})
- #1
- ~0.001
- ? !alive _s || !alive _l || _s distance _l>12.75 || !TR_Actv || _t<_time || leader _s!=_s || fuel _r!=0 : TR_Actv=false; exit
- _v = ((getpos _s select 0)-((getpos _l select 0)-1*(sin getdir _l)))atan2((getpos _s select 1)-((getpos _l select 1)-1*(cos getdir _l)))+180-getdir _s;
- ? _v < 0 : _v=_v+360
- _v = (_v+7.5)/15 - ((_v+7.5)/15) % 1
- ? _v in [0,24] || _time>5 : _v=((getpos _s select 0)-((getpos _l select 0)-1*(sin getdir _l)))atan2((getpos _s select 1)-((getpos _l select 1)-1*(cos getdir _l)))+180;if(_v<0)then{_v=_v+360};_s setdir _v;_s playMove (if ((_s call CHECK_STANCE_CWA_GET_ANIM) in CHECK_STANCE_CWA_HANDGUN) then {"HandGunStandToHandGunMedic"} else {"combattomedic"}); if(TR_Msgs)then{TR_Msgs=false;player groupchat"Press NumPad 5 to fix the camera"};_z=_time+1.5;_s setpos [(getpos _l select 0)+0.75*(sin (getdir _l-75)),(getpos _l select 1)+0.75*(cos (getdir _l-75)),(getpos _l select 2)+9.75];_s setvelocity [0,0,0];goto"2"
- ? _v in [1,2,3,4,5,6,7,8,9,10,11,12] : call {_s setpos getpos _s;_s setdir getdir _s+6.5}
- ? _v in [13,14,15,16,17,18,19,20,21,22,23] : call {_s setpos getpos _s;_s setdir getdir _s-6.5}
- goto "1"
- #2
- ~0.001
- ? !alive _s || !alive _l || _s distance _l>12.75 || !TR_Actv : hint localize "STR_interruptedRE"; _l setdamage 1; TR_Actv=false; _s playMove (if ((_s call CHECK_STANCE_CWA_GET_ANIM) in CHECK_STANCE_CWA_HANDGUN) then {"HandGunStand"} else {"combat"}); exit
- ? _t < _time : hint localize "STR_hint_1"; _l setdamage 1; _r setfuel 0.05; TR_Actv=false; _s playMove (if ((_s call CHECK_STANCE_CWA_GET_ANIM) in CHECK_STANCE_CWA_HANDGUN) then {"HandGunStand"} else {"combat"}); exit
- ? _z < _time : _a=random 5;_a=(_a-_a%1)+1;_l say("repair"+format["%1",_a]);if(_a==3)then{_z=_time+7.5}else{_z=_time+5}
- _v = ((getpos _s select 0)-((getpos _l select 0)-1*(sin getdir _l))) atan2 ((getpos _s select 1)-((getpos _l select 1)-1*(cos getdir _l)))+180;
- ? _v < 0 : _v=_v+360
- _s setdir _v
- ? speed _s > -0.00001 && speed _s < 0 : _s switchmove (if ((_s call CHECK_STANCE_CWA_GET_ANIM) in CHECK_STANCE_CWA_HANDGUN) then {"HandGunMedic"} else {"Medic"});
- goto "2"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement