Advertisement
klm88

высадка пассажиров из скриптовых поездов

Aug 15th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.08 KB | None | 0 0
  1. {$CLEO .cs}
  2.  
  3.  
  4. 0000:
  5.  
  6. 6@ = 2.1
  7. 7@ = 2.1
  8. 8@ = 1.1
  9.  
  10.  
  11. 0662: NOP "sitting v STREAKC"
  12.  
  13. :TROL_1
  14. wait 0
  15. if
  16. Player.Defined($PLAYER_CHAR)
  17. jf @TROL_1
  18. 0AB5: store_actor $PLAYER_ACTOR closest_vehicle_to 5@ closest_ped_to 1@
  19. if
  20. //056D: actor 1@ defined
  21. 056E: car 5@ defined
  22. jf @TROL_1
  23. if or
  24. 0137: car 5@ model == #STREAK
  25. 0137: car 5@ model == #STREAKC
  26. 0137: car 5@ model == #FREIGHT
  27. 0137: car 5@ model == #FREIFLAT
  28. 0137: car 5@ model == #FREIBOX
  29. 0137: car 5@ model == #TRAM
  30. //0137: car 5@ model == 793
  31. //0137: car 5@ model == 794
  32. //0137: car 5@ model == 612
  33. //0137: car 5@ model == 613
  34. //jf @IFOR_2
  35. jf @TROL_1
  36. jump @TRAIN
  37.  
  38. :TRAIN
  39. wait 0
  40. if or
  41. 0205: actor $PLAYER_ACTOR near_car 5@ radius 70.0 70.0 70.0 flag 0
  42. 0206: actor $PLAYER_ACTOR near_car 5@ radius 70.0 70.0 70.0 flag 0 on_foot
  43. 0207: actor $PLAYER_ACTOR near_car 5@ radius 70.0 70.0 70.0 flag 0 in_car
  44. 00DB: actor $PLAYER_ACTOR in_car 5@
  45. //00DD: actor $PLAYER_ACTOR driving_car_with_model #STREAK
  46. //00DD: actor $PLAYER_ACTOR driving_car_with_model #FREIGHT
  47. 09AE: actor $PLAYER_ACTOR driving_train
  48. 00DF: actor $PLAYER_ACTOR driving
  49. jf @TROL_1
  50. if and
  51. not Actor.Dead($PLAYER_ACTOR)
  52. 8741: not actor $PLAYER_ACTOR busted
  53. jf @TROL_1
  54. //05CA: AS_actor 1@ enter_car 5@ passenger_seat 0 2500 ms
  55. jump @PASSENGERS
  56.  
  57. :PASSENGERS
  58. wait 0
  59. 0561: 29@ = create_passenger_in_car 5@ seat 0
  60. 0561: 30@ = create_passenger_in_car 5@ seat 0
  61. 0561: 28@ = create_passenger_in_car 5@ seat 0
  62. 0561: 27@ = create_passenger_in_car 5@ seat 0
  63. 0561: 26@ = create_passenger_in_car 5@ seat 0
  64. 0561: 25@ = create_passenger_in_car 5@ seat 0
  65. 0561: 24@ = create_passenger_in_car 5@ seat 0
  66. //0561: 23@ = create_passenger_in_car 5@ seat 0
  67. jump @CARSTOP
  68.  
  69. :CARSTOP
  70. wait 0
  71. if and
  72. 056D: actor 29@ defined
  73. 056D: actor 30@ defined
  74. 056D: actor 28@ defined
  75. 056D: actor 27@ defined
  76. 056D: actor 26@ defined
  77. 056D: actor 25@ defined
  78. 056D: actor 24@ defined
  79. //056D: actor 23@ defined
  80. 01C1: car 5@ stopped
  81. //0205: actor $PLAYER_ACTOR near_car 5@ radius 55.0 55.0 55.0 flag 0
  82. jf @CARSTOP
  83. jump @EXIT
  84.  
  85. :EXIT
  86. wait 0
  87. 0464: put_actor 24@ into_turret_on_car 5@ at_car_offset 6@ 7@ 8@ position 0 shooting_angle_limit 0.0 with_weapon 0
  88. 0464: put_actor 25@ into_turret_on_car 5@ at_car_offset 6@ 7@ 8@ position 0 shooting_angle_limit 0.0 with_weapon 0
  89. //0633: AS_actor 23@ exit_car
  90. //0633: AS_actor 24@ exit_car
  91. //01C2: remove_references_to_actor 23@ // Like turning an actor into a random pedestrian
  92. 01C2: remove_references_to_actor 24@ // Like turning an actor into a random pedestrian
  93. //0633: AS_actor 25@ exit_car
  94. //0633: AS_actor 26@ exit_car
  95. 01C2: remove_references_to_actor 25@ // Like turning an actor into a random pedestrian
  96. wait 100
  97. 0464: put_actor 26@ into_turret_on_car 5@ at_car_offset 6@ 7@ 8@ position 0 shooting_angle_limit 0.0 with_weapon 0
  98. 0464: put_actor 27@ into_turret_on_car 5@ at_car_offset 6@ 7@ 8@ position 0 shooting_angle_limit 0.0 with_weapon 0
  99. 0464: put_actor 28@ into_turret_on_car 5@ at_car_offset 6@ 7@ 8@ position 0 shooting_angle_limit 0.0 with_weapon 0
  100. 01C2: remove_references_to_actor 26@ // Like turning an actor into a random pedestrian
  101. //0633: AS_actor 27@ exit_car
  102. //0633: AS_actor 28@ exit_car
  103. 01C2: remove_references_to_actor 27@ // Like turning an actor into a random pedestrian
  104. 01C2: remove_references_to_actor 28@ // Like turning an actor into a random pedestrian
  105. wait 200
  106. //0633: AS_actor 29@ exit_car
  107. //0633: AS_actor 30@ exit_car
  108. 0464: put_actor 29@ into_turret_on_car 5@ at_car_offset 6@ 7@ 8@ position 0 shooting_angle_limit 0.0 with_weapon 0
  109. 0464: put_actor 30@ into_turret_on_car 5@ at_car_offset 6@ 7@ 8@ position 0 shooting_angle_limit 0.0 with_weapon 0
  110. 01C2: remove_references_to_actor 29@ // Like turning an actor into a random pedestrian
  111. 01C2: remove_references_to_actor 30@ // Like turning an actor into a random pedestrian
  112. wait 6000
  113. 01C2: remove_references_to_actor 1@ // Like turning an actor into a random pedestrian
  114. 01C3: remove_references_to_car 5@ // Like turning a car into any random car
  115. wait 0
  116. jump @TROL_1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement