{
	"format_version": "1.19.0",
	"animation_controllers": {
		"controller.animation.goblin_berserker.root": {
			"initial_state": "idle",
			"states": {
				"idle": {
					"animations": ["idle_berserker"],
					"transitions": [
						{"walking": "q.ground_speed > 1.0 && !q.is_avoiding_mobs"},
						{"avoiding": "q.ground_speed > 1.0 && q.is_avoiding_mobs"},
						{"rage": "query.is_stunned"},
						{"pounce": "query.is_jumping"}
					],
					"blend_transition": 0.2,
					"blend_via_shortest_path": true
				},
				"walking": {
					"animations": ["walk_berserker"],
					"transitions": [
						{"idle": "q.ground_speed < 0.5"},
						{"avoiding": "q.ground_speed > 1.0 && q.is_avoiding_mobs"},
						{"rage": "query.is_stunned"},
						{"pounce": "query.is_jumping"}
					],
					"blend_transition": 0.2,
					"blend_via_shortest_path": true
				},
				"avoiding": {
					"animations": ["avoiding_berserker"],
					"transitions": [
						{"idle": "q.ground_speed < 0.5"},
						{"walking": "q.ground_speed > 1.0 && !q.is_avoiding_mobs"},
						{"rage": "query.is_stunned"}
					],
					"blend_transition": 0.2,
					"blend_via_shortest_path": true
				},
				"rage": {
					"animations": ["rage_berserker"],
					"transitions": [
						{"idle": "!query.is_stunned"}
					],
					"blend_transition": 0.2,
					"blend_via_shortest_path": true
				},
				"on_flight": {
					"transitions": [
						{"idle": "!query.is_stalking"}
					]
				},
				"pounce": {
					"animations": ["rage_berserker", "avoiding_berserker"],
					"transitions": [
						{"idle": "query.is_on_ground"}
					],
					"blend_transition": 0.2,
					"blend_via_shortest_path": true
				}
			}
		},
		"controller.animation.goblin_berserker.attack_": {
			"initial_state": "default",
			"states": {
				"default": {
					"transitions": [
						{"hand": "variable.attack_time && query.mark_variant == 6"},
						{"weapon": "variable.attack_time && query.mark_variant > 6"}
					],
					"blend_transition": 0.2,
					"blend_via_shortest_path": true
				},
				"hand": {
					"animations": ["punch_berserker"],
					"transitions": [
						{"alternate": "query.all_animations_finished"}
					],
					"blend_transition": 0.2,
					"blend_via_shortest_path": true
				},
				"alternate": {
					"transitions": [
						{"hand_alt": "variable.attack_time && query.mark_variant == 6"},
						{"weapon_alt": "variable.attack_time && query.mark_variant > 6"}
					],
					"blend_transition": 0.2,
					"blend_via_shortest_path": true
				},
				"hand_alt": {
					"animations": ["punch_alt_berserker"],
					"transitions": [
						{"default": "query.all_animations_finished"}
					],
					"blend_transition": 0.2,
					"blend_via_shortest_path": true
				},
				"weapon": {
					"animations": ["weapon_attack_berserker"],
					"transitions": [
						{"alternate": "query.all_animations_finished"}
					],
					"blend_transition": 0.2,
					"blend_via_shortest_path": true
				},
				"weapon_alt": {
					"animations": ["weapon_attack_alt_berserker"],
					"transitions": [
						{"default": "query.all_animations_finished"}
					],
					"blend_transition": 0.2,
					"blend_via_shortest_path": true
				}
			}
		},
		"controller.animation.goblin_berserker.attack2": {
			"states": {
				"default": {
					"transitions": [
						{"hand": "variable.attack_time && query.mark_variant == 6"},
						{"weapon": "variable.attack_time && query.mark_variant > 6"}
					],
					"blend_transition": 0.2,
					"blend_via_shortest_path": true
				},
				"hand": {
					"animations": [
						{"punch_berserker": "variable.attack_time > 0"}
					],
					"transitions": [
						{"hand_alt": "variable.attack_time == 0"}
					],
					"blend_transition": 0.2,
					"blend_via_shortest_path": true
				},
				"hand_alt": {
					"animations": [
						{"punch_alt_berserker": "variable.attack_time > 0"}
					],
					"transitions": [
						{"default": "variable.attack_time == 0"}
					],
					"blend_transition": 0.2,
					"blend_via_shortest_path": true
				},
				"weapon": {
					"animations": ["weapon_attack_berserker"],
					"transitions": [
						{"weapon_alt": "query.all_animations_finished"}
					],
					"blend_transition": 0.2,
					"blend_via_shortest_path": true
				},
				"weapon_alt": {
					"animations": ["weapon_attack_alt_berserker"],
					"transitions": [
						{"default": "query.all_animations_finished"}
					],
					"blend_transition": 0.2,
					"blend_via_shortest_path": true
				}
			}
		},
		"controller.animation.goblin_berserker.attack": {
			"states": {
				"default": {
					"transitions": [
						{"random_chance_barehand": "(variable.attack_time || query.is_delayed_attacking) && query.mark_variant == 6"},
						{"random_chance_weapon": "(variable.attack_time || query.is_delayed_attacking) && query.mark_variant > 6"}
					],
					"blend_transition": 0.2,
					"blend_via_shortest_path": true
				},
				"random_chance_barehand": {
					"transitions": [
						{"hand": "math.sin(query.anim_time*3600) > 0\n"},
						{"hand_alt": "math.sin(query.anim_time*3600) < 0\n"}
					]
				},
				"random_chance_weapon": {
					"transitions": [
						{"weapon": "math.sin(query.anim_time*3600) > 0\n"},
						{"weapon_alt": "math.sin(query.anim_time*3600) < 0\n"}
					]
				},
				"hand": {
					"animations": [
						{"punch_berserker": "!query.is_delayed_attacking"},
						{"mace_ability_berserker": "query.is_delayed_attacking"}
					],
					"transitions": [
						{"default": "query.all_animations_finished"}
					],
					"blend_transition": 0.2,
					"blend_via_shortest_path": true
				},
				"hand_alt": {
					"animations": [
						{"punch_alt_berserker": "!query.is_delayed_attacking"},
						{"mace_ability_berserker": "query.is_delayed_attacking"}
					],
					"transitions": [
						{"default": "query.all_animations_finished"}
					],
					"blend_transition": 0.2,
					"blend_via_shortest_path": true
				},
				"weapon": {
					"animations": [
						{"weapon_attack_berserker": "!query.is_delayed_attacking && !query.is_sheared"},
						{"mace_ability_berserker": "query.is_delayed_attacking"},
						{"axe_ability_berserker": "query.is_sheared"}
					],
					"transitions": [
						{"default": "query.all_animations_finished"}
					],
					"blend_transition": 0.2,
					"blend_via_shortest_path": true
				},
				"weapon_alt": {
					"animations": [
						{"weapon_attack_alt_berserker": "!query.is_delayed_attacking && !query.is_sheared"},
						{"mace_ability_berserker": "query.is_delayed_attacking"},
						{"axe_ability_berserker": "query.is_sheared"}
					],
					"transitions": [
						{"default": "query.all_animations_finished"}
					],
					"blend_transition": 0.2,
					"blend_via_shortest_path": true
				}
			}
		}
	}
}