Advertisement
Guest User

Untitled

a guest
Oct 25th, 2014
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.50 KB | None | 0 0
  1. {$CLEO}
  2. 04ED: load_animation "GYMNASIUM"
  3.  
  4. // Wczytywanie klawiszy
  5. if 8AF0: not 0@ = get_int_from_ini_file "motion.ini" section "Keys" key "BackFlip"
  6. if 8AF0: not 1@ = get_int_from_ini_file "motion.ini" section "Keys" key "Superman"
  7. then
  8. // Domyolny klawisz dla CoolTrick
  9. 0@ = 49 //P
  10. 1@ = 73 //P
  11. end
  12.  
  13. while 84EE: not animation "GYMNASIUM" loaded
  14. wait 250
  15. end
  16.  
  17. while true
  18. wait 0
  19.  
  20. if and
  21. 044B: actor $PLAYER_ACTOR on_foot
  22. 03EE: player $PLAYER_CHAR controllable
  23. then
  24. if 0AB0: key_pressed 0@
  25. then
  26. 0615: define_AS_pack_begin 33@
  27. if 02A0: actor $PLAYER_ACTOR stopped
  28. then
  29. 0812: AS_actor -1 perform_animation "GYMSHADOWBOX" IFP "GYMNASIUM" framedelta 3.0 loopA 0 lockX 1 lockY 1 lockF 0 time -1 // versionB
  30. else
  31. 0812: AS_actor -1 perform_animation "BIEGBIEGBIEG" IFP "GYMNASIUM" framedelta 3.0 loopA 0 lockX 1 lockY 1 lockF 0 time -1 // versionB
  32. end
  33. 0812: AS_actor -1 perform_animation "GYM_BIKE_CELEBRATE" IFP "GYMNASIUM" framedelta 4.0 loopA 0 lockX 1 lockY 1 lockF 0 time -1 // versionB
  34. 0812: AS_actor -1 perform_animation "GYM_BIKE_FAST" IFP "GYMNASIUM" framedelta 4.0 loopA 0 lockX 1 lockY 1 lockF 0 time -1 // versionB
  35. 0616: define_AS_pack_end 33@
  36.  
  37. 0618: assign_actor $PLAYER_ACTOR to_AS_pack 33@
  38. 061B: remove_references_to_AS_pack 33@
  39.  
  40. while 8611: not actor $PLAYER_ACTOR performing_animation "GYM_BIKE_CELEBRATE"
  41. wait 0
  42. end
  43.  
  44. 0AB1: call_scm_func @WybicieBack 4 actor $PLAYER_ACTOR dir 0.0 -1.0 5.0
  45.  
  46. 31@ = 0
  47. while 0.9 > 31@
  48. wait 0
  49. 0613: 31@ = actor $PLAYER_ACTOR animation "GYM_BIKE_CELEBRATE" time
  50. end
  51. 0819: 31@ = actor $PLAYER_ACTOR distance_from_ground
  52.  
  53. if and
  54. 0AB0: key_pressed 0@
  55. 31@ > 5.0
  56. then
  57.  
  58. // Double
  59. 0812: AS_actor $PLAYER_ACTOR perform_animation "gym_bike_getoff" IFP "GYMNASIUM" framedelta 1.0 loopA 0 lockX 1 lockY 1 lockF 0 time -1 // versionB
  60.  
  61. while 0AB0: key_pressed 0@
  62. wait 250
  63. end
  64. else
  65. // Ladowanie
  66.  
  67. while 0611: actor $PLAYER_ACTOR performing_animation "GYM_BIKE_CELEBRATE"
  68. wait 0
  69. end
  70.  
  71. 0819: 33@ = actor $PLAYER_ACTOR distance_from_ground
  72. if 33@ > 1.5
  73. then
  74. 0614: set_actor $PLAYER_ACTOR animation "GYM_BIKE_FAST" progress_to 0.99
  75. end
  76. end
  77. if 0AB0: key_pressed 1@ //superman
  78. then
  79. 0615: define_AS_pack_begin 33@
  80. if 02A0: actor $PLAYER_ACTOR stopped
  81. then
  82. 0812: AS_actor -1 perform_animation "GYMSHADOWBOX" IFP "GYMNASIUM" framedelta 3.0 loopA 0 lockX 1 lockY 1 lockF 0 time -1 // versionB
  83. else
  84. 0812: AS_actor -1 perform_animation "BIEGBIEGBIEG" IFP "GYMNASIUM" framedelta 3.0 loopA 0 lockX 1 lockY 1 lockF 0 time -1 // versionB
  85. end
  86. 0812: AS_actor -1 perform_animation "GYM_BIKE_CELEBRATE" IFP "GYMNASIUM" framedelta 4.0 loopA 0 lockX 1 lockY 1 lockF 0 time -1 // versionB
  87. 0812: AS_actor -1 perform_animation "GYM_BIKE_FAST" IFP "GYMNASIUM" framedelta 4.0 loopA 0 lockX 1 lockY 1 lockF 0 time -1 // versionB
  88. 0616: define_AS_pack_end 33@
  89.  
  90. 0618: assign_actor $PLAYER_ACTOR to_AS_pack 33@
  91. 061B: remove_references_to_AS_pack 33@
  92.  
  93. while 8611: not actor $PLAYER_ACTOR performing_animation "GYM_BIKE_CELEBRATE"
  94. wait 0
  95. end
  96.  
  97. 0AB1: call_scm_func @WybicieBack 4 actor $PLAYER_ACTOR dir 0.0 -5.0 4.0
  98.  
  99. 31@ = 0
  100. while 0.9 > 31@
  101. wait 0
  102. 0613: 31@ = actor $PLAYER_ACTOR animation "GYM_BIKE_CELEBRATE" time
  103. end
  104. 0819: 31@ = actor $PLAYER_ACTOR distance_from_ground
  105.  
  106. if and
  107. 0AB0: key_pressed 1@
  108. 31@ > 5.0
  109. then
  110.  
  111. // Double
  112. 0812: AS_actor $PLAYER_ACTOR perform_animation "gym_bike_getoff" IFP "GYMNASIUM" framedelta 1.0 loopA 0 lockX 1 lockY 1 lockF 0 time -1 // versionB
  113.  
  114. while 0AB0: key_pressed 1@
  115. wait 250
  116. end
  117. else
  118. // Ladowanie
  119.  
  120. while 0611: actor $PLAYER_ACTOR performing_animation "GYM_BIKE_CELEBRATE"
  121. wait 0
  122. end
  123.  
  124. 0819: 33@ = actor $PLAYER_ACTOR distance_from_ground
  125. if 33@ > 1.5
  126. then
  127. 0614: set_actor $PLAYER_ACTOR animation "GYM_BIKE_FAST" progress_to 0.99
  128. end
  129. end
  130. end
  131.  
  132. end
  133. end
  134.  
  135. :WybicieBack
  136. 0172: 4@ = actor 0@ Z_angle
  137. 02F6: 5@ = sine 4@
  138. 02F7: 6@ = cosine 4@
  139.  
  140. 0087: 7@ = 1@
  141. 006B: 7@ *= 6@
  142. 0087: 9@ = 2@
  143. 006B: 9@ *= 5@
  144. 0063: 7@ -= 9@
  145.  
  146. 0087: 8@ = 1@
  147. 006B: 8@ *= 5@
  148. 0087: 9@ = 2@
  149. 006B: 9@ *= 6@
  150. 005B: 8@ += 9@
  151.  
  152. if 8818: not actor $PLAYER_ACTOR in_air
  153. then
  154. 083C: set_actor $PLAYER_ACTOR velocity_in_direction_XYZ 0 0 10.0
  155. wait 0
  156. end
  157. 083C: set_actor $PLAYER_ACTOR velocity_in_direction_XYZ 7@ 8@ 3@
  158. 0AB2: ret 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement