Advertisement
Faguss

Untitled

Nov 6th, 2018
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.78 KB | None | 0 0
  1.  
  2. if (!TR_Actv) then {TR_Actv=true} else {TR_Actv=false; exit}
  3.  
  4.  
  5. _l = _this select 0
  6. _s = _this select 1
  7. _r = (TR_List select ((TR_List find _l)-1))
  8.  
  9. 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}}}
  10.  
  11. _t = 50 + (random 25)
  12. _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
  13. ? _v < 0 : _v=_v+360
  14.  
  15. _s playMove (if ((_s call CHECK_STANCE_CWA_GET_ANIM) in CHECK_STANCE_CWA_HANDGUN) then {"HandGunStand"} else {"combat"})
  16.  
  17.  
  18.  
  19. #1
  20. ~0.001
  21. ? !alive _s || !alive _l || _s distance _l>12.75 || !TR_Actv || _t<_time || leader _s!=_s || fuel _r!=0 : TR_Actv=false; exit
  22.  
  23. _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;
  24. ? _v < 0 : _v=_v+360
  25.  
  26. _v = (_v+7.5)/15 - ((_v+7.5)/15) % 1
  27. ? _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"
  28. ? _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}
  29. ? _v in [13,14,15,16,17,18,19,20,21,22,23] : call {_s setpos getpos _s;_s setdir getdir _s-6.5}
  30. goto "1"
  31.  
  32.  
  33.  
  34. #2
  35. ~0.001
  36. ? !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
  37.  
  38. ? _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
  39. ? _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}
  40.  
  41. _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;
  42. ? _v < 0 : _v=_v+360
  43.  
  44. _s setdir _v
  45. ? 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"});
  46. goto "2"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement