{
	"format_version": "1.10.0",
	"animation_controllers": {
		"controller.animation.manalabs_zombie.hitch_hiker.movement": {
			"initial_state": "default",
			"states": {
				"default": {
					"transitions": [
						{
							"run": "q.ground_speed > 2"
						},
						{
							"walk": "q.ground_speed > 0.01"
						}
					]
				},
				"walk": {
					"animations": ["walk"],
					"transitions": [
						{
							"run": "q.ground_speed > 2"
						},
						{
							"default": "q.ground_speed <= 0.01"
						}
					],
					"blend_transition": 0.2
				},
				"run": {
					"animations": ["run"],
					"transitions": [
						{
							"walk": "q.ground_speed > 0.01 && q.ground_speed <= 2"
						},
						{
							"default": "q.ground_speed <= 0.01"
						}
					],
					"blend_transition": 0.2
				}
			}
		},
		"controller.animation.manalabs_zombie.hitch_hiker.slash_attack":{
			"initial_state": "default",
			"states": {
				"default": {
					"on_entry": [
						"v.random_slash = math.random(0, 100);"
					],
					"transitions": [
						{
							"attack_slash_left": "q.is_delayed_attacking && v.random_slash > 50"
						},
						{
							"attack_slash_right": "q.is_delayed_attacking"
						}
					]
				},
				"attack_slash_left": {
					"animations": ["attack_slash_left"],
					"transitions": [
						{
							"default": "q.all_animations_finished"
						}
					],
					"blend_transition": 0.2
				},
				"attack_slash_right": {
					"animations": ["attack_slash_right"],
					"transitions": [
						{
							"default": "q.all_animations_finished"
						}
					],
					"blend_transition": 0.2
				}
			}
		},
		"controller.animation.manalabs_zombie.hitch_hiker.jump": {
			"initial_state": "default",
			"states": {
				"default": {
					"transitions": [
						{
							"jump": "q.ground_speed > 10"
						}
					],
					"blend_transition": 0.2
				},
				"jump": {
					"animations": ["grab_jump"],
					"transitions": [
						{
							"grab_success": "q.all_animations_finished && q.property('manalabs_zombie:hitch_hiking')"
						},
						{
							"grab_fail": "q.all_animations_finished && !q.property('manalabs_zombie:hitch_hiking')"
						}
					],
					"blend_transition": 0.2
				},
				"grab_success": {
					"animations": ["grab_success"],
					"transitions": [
						{
							"default": "q.all_animations_finished"
						}
					],
					"blend_transition": 0.2
				},
				"grab_fail": {
					"animations": ["grab_fail"],
					"transitions": [
						{
							"default": "q.all_animations_finished"
						}
					],
					"blend_transition": 0.2
				}
			}
		},
		"controller.animation.manalabs_zombie.hitch_hiker.random_yawn": {
			"initial_state": "default",
			"states": {
				"default": {
					"on_entry": ["v.yawn_delay = math.random(10, 30) + q.life_time;"],
					"transitions": [
						{
							"random_yawn": "(v.yawn_delay - q.life_time) < 0"
						}
					],
					"blend_transition": 0.2
				},
				"random_yawn": {
					"animations": ["random_yawn"],
					"transitions": [
						{
							"default": "q.all_animations_finished"
						}
					],
					"blend_transition": 0.2
				}
			}
		},
		"controller.animation.manalabs_zombie.hitch_hiker.random_hit": {
			"initial_state": "default",
			"states": {
				"default": {
					"on_entry": [
						"v.random_hit = math.random(1, 3);",
						"v.prev_health = q.health;"
					],
					"transitions": [
						{
							"hit1": "!q.property('manalabs_zombie:hitch_hiking') && v.random_hit == 1 && q.health < v.prev_health"
						},
						{
							"hit2": "!q.property('manalabs_zombie:hitch_hiking') && v.random_hit == 2 && q.health < v.prev_health"
						},
						{
							"hit3": "!q.property('manalabs_zombie:hitch_hiking') && v.random_hit == 3 && q.health < v.prev_health"
						},
						{
							"on_player_hit": "q.property('manalabs_zombie:hitch_hiking') && q.health < v.prev_health"
						}
					],
					"blend_transition": 0.2
				},
				"hit1": {
					"animations": ["hit1"],
					"transitions": [
						{
							"default": "q.all_animations_finished"
						}
					],
					"blend_transition": 0.2
				},
				"hit2": {
					"animations": ["hit2"],
					"transitions": [
						{
							"default": "q.all_animations_finished"
						}
					],
					"blend_transition": 0.2
				},
				"hit3": {
					"animations": ["hit3"],
					"transitions": [
						{
							"default": "q.all_animations_finished"
						}
					],
					"blend_transition": 0.2
				},
				"on_player_hit": {
					"animations": ["on_player_hit"],
					"transitions": [
						{
							"default": "q.all_animations_finished"
						}
					],
					"blend_transition": 0.2
				}
			}
		},
		"controller.animation.manalabs_zombie.hitch_hiker.death": {
			"initial_state": "default",
			"states": {
				"default": {
					"transitions": [
						{
							"on_player_death": "q.property('manalabs_zombie:hitch_hiking') && q.health == 1"
						},
						{
							"death": "!q.property('manalabs_zombie:hitch_hiking') && q.health == 1" 
						}
					],
					"blend_transition": 0.2
				},
				"death": {
					"animations": [
						"death"
					]
				},
				"on_player_death": {
					"animations": [
						"on_player_death"
					]
				}
			}
		}
	}
}
