{
	"format_version": "1.10.0",
	"animation_controllers": {
		"controller.animation.manalabs_zombie.demolisher.movement": {
			"states": {
				"default": {
					"transitions": [
						{
							"run": "q.ground_speed > 2"
						},
						{
							"walk": "q.ground_speed > 0.01"
						}
					],
					"blend_transition": 0.2
				},
				"walk": {
					"animations": ["walk"],
					"transitions": [
						{
							"run": "q.ground_speed > 2"
						},
						{
							"default": "q.ground_speed < 0.01"
						}
					],
					"blend_transition": 0.2
				},
				"run": {
					"animations": ["run"],
					"transitions": [
						{
							"default": "q.ground_speed < 0.01"
						},
						{
							"walk": "q.ground_speed > 0.01 && q.ground_speed < 2"
						}
					],
					"blend_transition": 0.2
				}
			}
		},
		"controller.animation.manalabs_zombie.demolisher.idle": {
			"initial_state": "default",
			"states": {
				"default": {
					"on_entry": [
						"v.choose_idle = math.random(0, 100);",
						"v.idle_delay = math.random(10, 30) + q.life_time;"
					],
					"transitions": [
						{
							"random_roll_arm": "(v.idle_delay - q.life_time) < 0 && v.choose_idle > 50"
						},
						{
							"random_roll_neck": "(v.idle_delay - q.life_time) < 0"
						}
					],
					"blend_transition": 0.2
				},
				"random_roll_arm": {
					"animations": ["random_roll_arm"],
					"transitions": [
						{
							"default": "q.all_animations_finished"
						}
					],
					"blend_transition": 0.2
				},
				"random_roll_neck": {
					"animations": ["random_roll_neck"],
					"transitions": [
						{
							"default": "q.all_animations_finished"
						}
					],
					"blend_transition": 0.2
				}
			}
		},
		"controller.animation.manalabs_zombie.demolisher.hurt": {
			"initial_state": "default",
			"states": {
				"default": {
					"on_entry": ["v.prev_health = q.health;"],
					"transitions": [
						{
							"hit": "v.prev_health > q.health"
						}
					],
					"blend_transition": 0.2
				},
				"hit": {
					"animations": ["hit"],
					"transitions": [
						{
							"default": "q.all_animations_finished"
						}
					],
					"blend_transition": 0.2
				}
			}
		},
		"controller.animation.manalabs_zombie.demolisher.attack": {
			"initial_state": "default",
			"states": {
				"default": {
					"on_entry": ["v.choose_attack = math.random(0, 100);"],
					"transitions": [
						{
							"attack_swipe": "v.choose_attack > 50 && q.is_delayed_attacking"
						},
						{
							"attack_smash": "q.is_delayed_attacking"
						},
						{
							"attack_charge_start": "q.is_charging"
						}
					],
					"blend_transition": 0.2
				},
				"attack_charge_start": {
					"animations": ["attack_charge_start", "walk"],
					"transitions": [
						{
							"attack_charge_loop": "q.all_animations_finished"
						}
					],
					"blend_transition": 0.2
				},
				"attack_charge_loop": {
					"animations": ["attack_charge_loop"],
					"transitions": [
						{
							"attack_charge_end": "!q.is_charging"
						}
					],
					"blend_transition": 0.2
				},
				"attack_charge_end": {
					"animations": [
						// "attack_charge_end",
						"aggro",
						"walk"
					],
					"transitions": [
						{
							"default": "q.all_animations_finished"
						}
					],
					"blend_transition": 0.2
				},
				"attack_swipe": {
					"animations": ["attack_swipe"],
					"transitions": [
						{
							"default": "q.all_animations_finished"
						}
					],
					"blend_transition": 0.2
				},
				"attack_smash": {
					"animations": ["attack_smash"],
					"transitions": [
						{
							"default": "q.all_animations_finished"
						}
					],
					"blend_transition": 0.2
				}
			}
		},
		"controller.animation.manalabs_zombie.demolisher.death": {
			"initial_state": "default",
			"states": {
				"default": {
					"transitions": [
						{
							"death": "q.health == 1"
						}
					],
					"blend_transition": 0.2
				},
				"death": {
					"animations": ["death"]
				}
			}
		}
	}
}
