Advertisement
Guest User

Untitled

a guest
Nov 19th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.52 KB | None | 0 0
  1. begin 0x0, 0x7
  2. try. loc_15
  3. pushVar. 0x1, 0x27
  4. pushInt. script_71
  5. callFunc 0x1
  6.  
  7. loc_15:
  8. if loc_20
  9. pushInt. 0x1
  10. return_6
  11.  
  12. loc_20:
  13. pushVar. 0x1, 0x12
  14. pushInt. 0x2
  15. notEquals.
  16. if loc_35
  17. pushInt. 0x0
  18. return_6
  19.  
  20. loc_35:
  21. pushVar. 0x1, 0x18
  22. pushInt. 0x400000
  23. bitAnd.
  24. if loc_72
  25. pushInt. 0x15
  26. pushInt. 0x1e00003d #"Action Status-Type1? 61"
  27. sys. 0x2, 0x16
  28. if loc_72
  29. try loc_6C
  30. pushInt. 0x0 #NOTE: SPEED CALCULATION STARTS HERE:
  31. pushInt. 0xffffffff
  32. sys. 0x2, 0x11 #currentXSpeed = var0
  33. setVar 0x0, 0x0
  34. pushInt. 0x1
  35. pushInt. 0xffffffff
  36. sys. 0x2, 0x11 #currentYSpeed = var1
  37. setVar 0x0, 0x1
  38. pushInt. 0x0
  39. sys. 0x1, 0xf #stickX = var2
  40. setVar 0x0, 0x2
  41. pushInt. 0x1
  42. sys. 0x1, 0xf #stickY = var3
  43. setVar 0x0, 0x3
  44. pushVar. 0x0, 0x2
  45. pushInt. script_13 #get absolute value of stickX
  46. callFunc 0x1
  47. pushInt. 0x6
  48. pushInt. 0x2000002d #roll sensitivity
  49. sys. 0x2, 0x16
  50. floatLess.
  51. pushVar. 0x0, 0x3
  52. pushInt. script_13 #get absolute value of stickY
  53. callFunc 0x1
  54. pushInt. 0x6
  55. pushInt. 0x20000063 #up/down special sensitivity
  56. sys. 0x2, 0x16
  57. floatLess.
  58. bitAnd. #if stickX and stickY are both inside the sensitivity "zone"
  59. if loc_40
  60. pushInt. 0x0
  61. pushVar. 0x0, 0x2
  62. pushVar. 0x0, 0x2
  63. multf.
  64. pushVar. 0x0, 0x3
  65. pushVar. 0x0, 0x3
  66. multf.
  67. addf.
  68. sys. 0x2, 0xa #magnitude of stick displacement
  69. setVar 0x0, 0x4
  70. pushVar. 0x0, 0x2
  71. pushVar. 0x0, 0x4
  72. divf.
  73. setVar 0x0, 0x5 #X value of unit vector
  74. pushVar. 0x0, 0x3
  75. pushVar. 0x0, 0x4
  76. divf.
  77. setVar 0x0, 0x6 #Y value of unit vector
  78. else loc_41
  79.  
  80. loc_40:
  81. pushInt 0x0
  82. setVar. 0x0, 0x5
  83. pushInt. 0x0
  84. setVar 0x0, 0x6
  85.  
  86. loc_41:
  87. pushInt. 0x40466666 #base speed
  88. setVar 0x0, 0x7
  89. pushInt. 0x11
  90. pushInt. 0x2
  91. pushVar. 0x0, 0x5
  92. pushVar. 0x0, 0x7
  93. multf.
  94. pushVar. 0x0, 0x0
  95. subf. #final value is HComponent * Speed - SpeedX
  96. pushVar. 0x0, 0x6
  97. pushVar. 0x0, 0x7
  98. multf.
  99. pushVar. 0x0, 0x1
  100. subf. #final value is VComponent * Speed - SpeedY
  101. sys 0x4, 0x10 #set speed
  102. pushInt. 0xb
  103. pushInt. 0x2
  104. sys 0x2, 0x10 #apply speed
  105. pushInt. 0x22
  106. pushInt. 0x1
  107. pushInt. script_16 #"call action EscapeAir"
  108. callFunc 0x2
  109.  
  110. loc_6C:
  111. pushInt. 0x1
  112. return_6
  113.  
  114. loc_72:
  115. pushInt. 0x0
  116. return_6
  117. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement