humanoid.state_machine 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. _guid = "4d08a505-9289-4f5a-84d0-050df77ecd6f"
  2. _type = "state_machine"
  3. initial_state = "42d8083d-f42b-48b8-92e2-1fb3a5bb3d8b"
  4. states = [
  5. {
  6. _guid = "03001f3e-8b7f-481c-bce4-b0ad9393182a"
  7. _type = "state_machine_node"
  8. animations = [
  9. {
  10. _guid = "2463a8ec-6735-496b-9558-338e655a2e4f"
  11. _type = "node_animation"
  12. name = "units/humanoid_run_up"
  13. weight = "match(speed_y, 1)"
  14. }
  15. {
  16. _guid = "8cc273ec-9eb8-4f85-ac6f-dccd1c908847"
  17. _type = "node_animation"
  18. name = "units/humanoid_run_dn"
  19. weight = "match(speed_y, -1)"
  20. }
  21. {
  22. _guid = "a7ec104b-1add-4700-80da-73f7c0aa261e"
  23. _type = "node_animation"
  24. name = "units/humanoid_run_sx"
  25. weight = "match(speed_x, -1)"
  26. }
  27. {
  28. _guid = "c723b25c-3bd1-4c10-ae78-2aa5fcdbb699"
  29. _type = "node_animation"
  30. name = "units/humanoid_run_dx"
  31. weight = "match(speed_x, 1)"
  32. }
  33. ]
  34. loop = true
  35. speed = "speed"
  36. transitions = [
  37. {
  38. _guid = "13e14fa3-2cf9-474b-9c8a-fc7c7b227641"
  39. _type = "node_transition"
  40. event = "idle"
  41. mode = "immediate"
  42. to = "42d8083d-f42b-48b8-92e2-1fb3a5bb3d8b"
  43. }
  44. ]
  45. }
  46. {
  47. _guid = "42d8083d-f42b-48b8-92e2-1fb3a5bb3d8b"
  48. _type = "state_machine_node"
  49. animations = [
  50. {
  51. _guid = "00921d69-e419-4cd7-9f45-8236053e1e25"
  52. _type = "node_animation"
  53. name = "units/humanoid_idle_dn"
  54. weight = "match(speed_y, -1)"
  55. }
  56. {
  57. _guid = "1dd6f580-3c86-4699-9139-2d1fcd4f9bc5"
  58. _type = "node_animation"
  59. name = "units/humanoid_idle_dx"
  60. weight = "match(speed_x, 1)"
  61. }
  62. {
  63. _guid = "7fea4f46-89a6-4ae5-93df-74990834240f"
  64. _type = "node_animation"
  65. name = "units/humanoid_idle_up"
  66. weight = "match(speed_y, 1)"
  67. }
  68. {
  69. _guid = "ca2509e1-fee9-44a8-b5f8-07c10034a6b3"
  70. _type = "node_animation"
  71. name = "units/humanoid_idle_sx"
  72. weight = "match(speed_x, -1)"
  73. }
  74. ]
  75. loop = true
  76. speed = "1"
  77. transitions = [
  78. {
  79. _guid = "06cef18c-83ea-498d-815c-c764b2c6bcee"
  80. _type = "node_transition"
  81. event = "run"
  82. mode = "immediate"
  83. to = "03001f3e-8b7f-481c-bce4-b0ad9393182a"
  84. }
  85. ]
  86. }
  87. ]
  88. variables = [
  89. {
  90. _guid = "2050d2ca-3906-4577-b44f-4d7e9705a6e2"
  91. _type = "state_machine_variable"
  92. name = "speed_y"
  93. value = 0
  94. }
  95. {
  96. _guid = "29015d56-f6d9-478d-baba-73f234bbdf2d"
  97. _type = "state_machine_variable"
  98. name = "speed_x"
  99. value = 0
  100. }
  101. {
  102. _guid = "86fcf50c-6daf-432d-b4d9-60b87b879505"
  103. _type = "state_machine_variable"
  104. name = "speed"
  105. value = 0
  106. }
  107. ]