SHARE
TWEET

Horrible Code

a guest Sep 11th, 2017 40 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;---------------------------------------------------------------------------
  2. ; Stand
  3. [Statedef 0]
  4. type = S
  5. physics = S
  6. sprpriority = 0
  7.  
  8. [State 0, 1]
  9. type = ChangeAnim
  10. trigger1 = Anim != 0 && Anim != 5
  11. trigger2 = Anim = 5 && AnimTime = 0 ;Turn anim over
  12. value = 0
  13.  
  14. [State 0, 2]
  15. type = VelSet
  16. trigger1 = Time = 0
  17. y = 0
  18.  
  19. [State 0, 3] ;Stop moving if low velocity or 4 ticks pass
  20. type = VelSet
  21. trigger1 = abs(vel x) < Const(movement.stand.friction.threshold)
  22. trigger2 = Time = 4
  23. x = 0
  24.  
  25. [State 0, 4] ;Are you dead?
  26. type = ChangeState
  27. trigger1 = !alive
  28. value = 5050
  29. ctrl = 0
  30.  
  31. [State -2, Empty Helper]
  32. type = helper
  33. triggerall = var(24) <=0
  34. trigger1 = roundstate=2
  35. trigger1 = numhelper(201)=0
  36. name = "Empty Helper"
  37. ID = 201
  38. pos = 0,0
  39. postype = p1
  40. stateno = 201
  41. ownpal = 0
  42. facing = 1
  43. ignorehitpause = 1
  44.  
  45. [State -2, Empty Helper]
  46. type = helper
  47. triggerall = var(24) <=0
  48. trigger1 = roundstate=2
  49. trigger1 = numhelper(202)=0
  50. name = "Empty Helper"
  51. ID = 202
  52. pos = 0,0
  53. postype = p1
  54. stateno = 201
  55. ownpal = 0
  56. facing = 1
  57. ignorehitpause = 1
  58.  
  59. [State -2, Empty Helper]
  60. type = helper
  61. triggerall = var(24) <=0
  62. trigger1 = roundstate=2
  63. trigger1 = numhelper(203)=0
  64. name = "Empty Helper"
  65. ID = 203
  66. pos = 0,0
  67. postype = p1
  68. stateno = 201
  69. ownpal = 0
  70. facing = 1
  71. ignorehitpause = 1
  72.  
  73. [State -2, Empty Helper]
  74. type = helper
  75. triggerall = var(24) <=0
  76. trigger1 = roundstate=2
  77. trigger1 = numhelper(204)=0
  78. name = "Empty Helper"
  79. ID = 204
  80. pos = 0,0
  81. postype = p1
  82. stateno = 201
  83. ownpal = 0
  84. facing = 1
  85. ignorehitpause = 1
  86.  
  87. [State -2, Empty Helper]
  88. type = helper
  89. triggerall = var(24) <=0
  90. trigger1 = roundstate=2
  91. trigger1 = numhelper(205)=0
  92. name = "Empty Helper"
  93. ID = 205
  94. pos = 0,0
  95. postype = p1
  96. stateno = 201
  97. ownpal = 0
  98. facing = 1
  99. ignorehitpause = 1
  100.  
  101. [State -2, Empty Helper]
  102. type = helper
  103. triggerall = var(24) <=0
  104. trigger1 = roundstate=2
  105. trigger1 = numhelper(206)=0
  106. trigger1 = (var(24):=1)||1
  107. name = "Empty Helper"
  108. ID = 206
  109. pos = 0,0
  110. postype = p1
  111. stateno = 201
  112. ownpal = 0
  113. facing = 1
  114. ignorehitpause = 1
  115.  
  116. ;-----------------------
  117. ; Empty Helper
  118. [Statedef 201]
  119. type    = A                      ;State-type: S-stand, C-crouch, A-air, L-liedown
  120. movetype= I                      ;Move-type: A-attack, I-idle, H-gethit
  121. physics = N                      ;Physics: S-stand, C-crouch, A-air
  122. ctrl = 0                         ;Set ctrl (Def: no change)
  123. anim = 1998
  124. velset = 0,0
  125. sprpriority = 5                  ;Set p1's sprite layering priority to 2 (in front)
  126. movehitpersist = 1
  127.  
  128. [State 10410, ASS]
  129. type = assertspecial
  130. trigger1 = 1
  131. ignorehitpause = 1
  132. flag = noshadow
  133.  
  134. [State 10410, NHB]
  135. type = nothitby
  136. trigger1 = 1
  137. time = -1
  138. ignorehitpause = 1
  139. value = SCA,AA,AP,AT
  140.  
  141. [State 10410, Destroyself]
  142. type = changestate
  143. trigger1 = time >= 1
  144. value = 999
  145. ignorehitpause = 1
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top