Advertisement
Guest User

Explodsive GARD states

a guest
Jul 17th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.64 KB | None | 0 0
  1. ;==============================================================================================
  2. ;==========================================<GUARDING>==========================================
  3. ;==============================================================================================
  4.  
  5. ;==============================================================================================
  6. ;Here, we override the MUGEN's default guard system when the character is airborne, and add our
  7. ;own triggers. This will ensure that the player can always block as long as they are holding a
  8. ;direction away from the opponent. This block of code also adds "chicken guarding", which is allowing
  9. ;the player to air guard by holding not only back, but down-back and up-back.
  10.  
  11. ;It is also recommended that you also override the guard states (120, 130, 131, 132, 140, 150, 151,
  12. ;152, 154, 155) with an updated version that uses the EXPLODsive buffering system. A copy of those
  13. ;fixed states can be found here: http://network.mugenguild.com/jmorphman/resources/EXPLODsiveBuffering_GuardStates.txt
  14. ;==============================================================================================
  15.  
  16. [State -1, AssertSpecial: NoAirGuard]
  17. type = AssertSpecial
  18. trigger1 = P2dist x < 0 && StateType = A
  19. trigger1 = !AILevel
  20. flag = NoAirGuard
  21. ignoreHitPause = 0
  22.  
  23. [State -1, Air Blocking]
  24. type = ChangeState
  25. triggerAll = !AILevel
  26. triggerAll = InGuardDist
  27. triggerAll = StateType = A
  28. triggerAll = ctrl
  29. triggerAll = !(StateNo = [120,155])
  30. triggerAll = !NumExplod(90000004) && !NumExplod(90000006) && !NumExplod(90000001) && !NumExplod(90000003) && !NumExplod(90000007) && !NumExplod(90000009)
  31. trigger1 = (ifElse(P2dist x < 0, Facing = -1, Facing = 1) && NumExplod(90000004)) || (ifElse(P2dist x < 0, Facing = 1, Facing = -1) && NumExplod(90000006))
  32. trigger2 = (ifElse(P2dist x < 0, Facing = -1, Facing = 1) && NumExplod(90000001)) || (ifElse(P2dist x < 0, Facing = 1, Facing = -1) && NumExplod(90000003))
  33. trigger3 = (ifElse(P2dist x < 0, Facing = -1, Facing = 1) && NumExplod(90000007)) || (ifElse(P2dist x < 0, Facing = 1, Facing = -1) && NumExplod(90000009))
  34. value = 120
  35.  
  36. ;These three ChangeStates are only in use when the character has landed from a jump after switching
  37. ;sides, to get around a MUGEN bug where a character's directions don't switch until a tick has passed,
  38. ;after they've landed from a jump and switched sides. Otherwise, MUGEN's default guard behavior works
  39. ;well enough!
  40. [State -1, AssertSpecial: No StandGuard and NoCrouchGuard]
  41. type = AssertSpecial
  42. triggerAll = !AILevel
  43. trigger1 = P2dist x < 0 && StateType != A
  44. trigger2 = NumExplod(94646464) || NumExplod(92468246)
  45. trigger3 = !NumExplod(90000004) && !NumExplod(90000006) && !NumExplod(90000001) && !NumExplod(90000003) && !NumExplod(90000007) && !NumExplod(90000009)
  46. flag = NoStandGuard
  47. flag2 = NoCrouchGuard
  48. ignoreHitPause = 0
  49.  
  50. [State -1, Stand Blocking]
  51. type = ChangeState
  52. triggerAll = !AILevel
  53. triggerAll = InGuardDist
  54. triggerAll = (P2dist x < 0 && StateType != A) || NumExplod(94646464) || NumExplod(92468246)
  55. triggerAll = StateType = S
  56. triggerAll = ctrl
  57. trigger1 = (ifElse(P2dist x < 0, Facing = -1, Facing = 1) && NumExplod(90000004)) || (ifElse(P2dist x < 0, Facing = 1, Facing = -1) && NumExplod(90000006))
  58. value = 120
  59.  
  60. [State -1, Crouch Blocking]
  61. type = ChangeState
  62. triggerAll = !AILevel
  63. triggerAll = InGuardDist
  64. triggerAll = (P2dist x < 0 && StateType != A) || NumExplod(94646464) || NumExplod(92468246)
  65. triggerAll = StateType = C
  66. triggerAll = ctrl
  67. trigger1 = (ifElse(P2dist x < 0, Facing = -1, Facing = 1) && NumExplod(90000001)) || (ifElse(P2dist x < 0, Facing = 1, Facing = -1) && NumExplod(90000003))
  68. value = 120
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement