Advertisement
Guest User

Untitled

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