godot-third-person-basic-scene/addons/AMSG/Components/AnimationTreeComponent.tscn

261 lines
12 KiB
Text
Raw Normal View History

2023-04-07 11:41:06 +00:00
[gd_scene load_steps=45 format=3 uid="uid://dsdvjuk7muqkf"]
[ext_resource type="Script" path="res://addons/AMSG/Components/AnimationBlend.gd" id="1_iikhh"]
2023-04-07 11:41:06 +00:00
[ext_resource type="AnimationNodeStateMachinePlayback" uid="uid://b8p1518kwrou2" path="res://addons/AMSG/Components/StandingStateMachine.tres" id="2_oomli"]
2023-04-07 11:41:06 +00:00
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_mb2kt"]
animation = &"TurnLeft"
2023-04-07 11:41:06 +00:00
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_2rfjg"]
animation = &"TurnRight"
2023-04-07 11:41:06 +00:00
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_v6381"]
animation = &"Falling"
2023-04-07 11:41:06 +00:00
[sub_resource type="AnimationNodeBlend2" id="AnimationNodeBlend2_nojly"]
sync = true
2023-04-07 11:41:06 +00:00
[sub_resource type="AnimationNodeBlend2" id="AnimationNodeBlend2_85ljr"]
sync = true
2023-04-07 11:41:06 +00:00
[sub_resource type="AnimationNodeBlend2" id="AnimationNodeBlend2_2agtf"]
filter_enabled = true
filters = ["Armature/Skeleton3D:Hips", "Armature/Skeleton3D:LeftFoot", "Armature/Skeleton3D:LeftLeg", "Armature/Skeleton3D:LeftToeBase", "Armature/Skeleton3D:LeftUpLeg", "Armature/Skeleton3D:RightFoot", "Armature/Skeleton3D:RightLeg", "Armature/Skeleton3D:RightToeBase", "Armature/Skeleton3D:RightUpLeg"]
sync = true
2023-04-07 11:41:06 +00:00
[sub_resource type="AnimationNodeTransition" id="AnimationNodeTransition_3twx3"]
sync = true
enabled_inputs = 2
xfade_time = 0.3
input_0/name = "stand"
input_0/auto_advance = false
input_1/name = "crouch"
input_1/auto_advance = false
2023-04-07 11:41:06 +00:00
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_id6x0"]
animation = &"CrouchIdle"
2023-04-07 11:41:06 +00:00
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_cri6g"]
animation = &"CrouchWalkingForward"
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_urt4k"]
2023-04-07 11:41:06 +00:00
advance_mode = 2
advance_condition = &"idle"
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_6juuf"]
xfade_time = 0.2
switch_mode = 1
2023-04-07 11:41:06 +00:00
advance_mode = 2
advance_condition = &"walking"
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_611fp"]
xfade_time = 0.2
switch_mode = 1
2023-04-07 11:41:06 +00:00
advance_mode = 2
advance_condition = &"idle"
2023-04-07 11:41:06 +00:00
[sub_resource type="AnimationNodeStateMachine" id="AnimationNodeStateMachine_2xodt"]
states/CrouchIdle/node = SubResource("AnimationNodeAnimation_id6x0")
states/CrouchIdle/position = Vector2(321, 100)
2023-04-07 11:41:06 +00:00
states/CrouchWalkingForward/node = SubResource("AnimationNodeAnimation_cri6g")
states/CrouchWalkingForward/position = Vector2(560, 100)
states/Start/position = Vector2(157, 100)
transitions = ["Start", "CrouchIdle", SubResource("AnimationNodeStateMachineTransition_urt4k"), "CrouchIdle", "CrouchWalkingForward", SubResource("AnimationNodeStateMachineTransition_6juuf"), "CrouchWalkingForward", "CrouchIdle", SubResource("AnimationNodeStateMachineTransition_611fp")]
2023-04-07 11:41:06 +00:00
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_u8pjd"]
animation = &"Idle"
2023-04-07 11:41:06 +00:00
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_4dxpj"]
animation = &"Jogbackward"
2023-04-07 11:41:06 +00:00
[sub_resource type="AnimationNodeTransition" id="AnimationNodeTransition_mk3d0"]
enabled_inputs = 2
input_0/name = "Forward"
input_0/auto_advance = false
input_1/name = "Backward"
input_1/auto_advance = false
2023-04-07 11:41:06 +00:00
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_6bsh6"]
animation = &"JogForward"
2023-04-07 11:41:06 +00:00
[sub_resource type="AnimationNodeBlendTree" id="AnimationNodeBlendTree_r61ry"]
graph_offset = Vector2(-467, 62.6111)
2023-04-07 11:41:06 +00:00
nodes/Backward/node = SubResource("AnimationNodeAnimation_4dxpj")
nodes/Backward/position = Vector2(-100, 220)
2023-04-07 11:41:06 +00:00
nodes/FB/node = SubResource("AnimationNodeTransition_mk3d0")
nodes/FB/position = Vector2(140, 140)
2023-04-07 11:41:06 +00:00
nodes/Forward/node = SubResource("AnimationNodeAnimation_6bsh6")
nodes/Forward/position = Vector2(-100, 100)
node_connections = [&"output", 0, &"FB", &"FB", 0, &"Forward", &"FB", 1, &"Backward"]
2023-04-07 11:41:06 +00:00
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_pgipy"]
animation = &"Run"
2023-04-07 11:41:06 +00:00
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_hwdqf"]
animation = &"RunToStop"
2023-04-07 11:41:06 +00:00
[sub_resource type="AnimationNodeTimeSeek" id="AnimationNodeTimeSeek_3wh8r"]
2023-04-07 11:41:06 +00:00
[sub_resource type="AnimationNodeBlendTree" id="AnimationNodeBlendTree_xw0ge"]
graph_offset = Vector2(-348.252, 95.8945)
2023-04-07 11:41:06 +00:00
nodes/StopAnim/node = SubResource("AnimationNodeAnimation_hwdqf")
nodes/StopAnim/position = Vector2(-260, 180)
2023-04-07 11:41:06 +00:00
nodes/StopSeek/node = SubResource("AnimationNodeTimeSeek_3wh8r")
nodes/StopSeek/position = Vector2(-60, 160)
node_connections = [&"output", 0, &"StopSeek", &"StopSeek", 0, &"StopAnim"]
2023-04-07 11:41:06 +00:00
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_dxjg6"]
animation = &"WalkingBackward"
2023-04-07 11:41:06 +00:00
[sub_resource type="AnimationNodeTransition" id="AnimationNodeTransition_tyxgb"]
enabled_inputs = 2
input_0/name = "Forward"
input_0/auto_advance = false
input_1/name = "Backward"
input_1/auto_advance = false
2023-04-07 11:41:06 +00:00
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_3y4dp"]
animation = &"Walk"
2023-04-07 11:41:06 +00:00
[sub_resource type="AnimationNodeBlendTree" id="AnimationNodeBlendTree_3e37y"]
graph_offset = Vector2(-388, 64)
nodes/Backward/node = SubResource("AnimationNodeAnimation_dxjg6")
nodes/Backward/position = Vector2(-100, 180)
2023-04-07 11:41:06 +00:00
nodes/FB/node = SubResource("AnimationNodeTransition_tyxgb")
nodes/FB/position = Vector2(140, 100)
2023-04-07 11:41:06 +00:00
nodes/Forward/node = SubResource("AnimationNodeAnimation_3y4dp")
nodes/Forward/position = Vector2(-60, 60)
node_connections = [&"output", 0, &"FB", &"FB", 0, &"Forward", &"FB", 1, &"Backward"]
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_wnbtw"]
xfade_time = 0.2
switch_mode = 2
2023-04-07 11:41:06 +00:00
advance_mode = 2
advance_condition = &"idle"
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_rvsaa"]
2023-04-07 11:41:06 +00:00
advance_mode = 2
advance_condition = &"stop"
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_s0egl"]
xfade_time = 0.2
switch_mode = 1
2023-04-07 11:41:06 +00:00
advance_mode = 2
advance_condition = &"sprinting"
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_xf5i1"]
2023-04-07 11:41:06 +00:00
advance_mode = 2
advance_condition = &"idle"
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_nbs2g"]
xfade_time = 0.2
switch_mode = 1
2023-04-07 11:41:06 +00:00
advance_mode = 2
advance_condition = &"walking"
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_rs3n0"]
2023-04-07 11:41:06 +00:00
advance_mode = 2
advance_condition = &"stop"
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_6gab4"]
xfade_time = 0.2
switch_mode = 1
2023-04-07 11:41:06 +00:00
advance_mode = 2
advance_condition = &"running"
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_6m5a2"]
xfade_time = 0.2
switch_mode = 1
2023-04-07 11:41:06 +00:00
advance_mode = 2
advance_condition = &"walking"
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_hy2h2"]
xfade_time = 0.2
switch_mode = 1
2023-04-07 11:41:06 +00:00
advance_mode = 2
advance_condition = &"running"
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_2tyel"]
xfade_time = 0.2
switch_mode = 1
2023-04-07 11:41:06 +00:00
advance_mode = 2
advance_condition = &"sprinting"
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_7h1qf"]
2023-04-07 11:41:06 +00:00
advance_mode = 2
advance_condition = &"stop"
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_4twgu"]
xfade_time = 0.2
switch_mode = 1
2023-04-07 11:41:06 +00:00
advance_mode = 2
advance_condition = &"running"
2023-04-07 11:41:06 +00:00
[sub_resource type="AnimationNodeStateMachine" id="AnimationNodeStateMachine_ieguh"]
states/Idle/node = SubResource("AnimationNodeAnimation_u8pjd")
states/Idle/position = Vector2(137, 278)
2023-04-07 11:41:06 +00:00
states/Jog/node = SubResource("AnimationNodeBlendTree_r61ry")
states/Jog/position = Vector2(687.227, 134)
2023-04-07 11:41:06 +00:00
states/Run/node = SubResource("AnimationNodeAnimation_pgipy")
states/Run/position = Vector2(881, 296)
states/Start/position = Vector2(22, 278)
2023-04-07 11:41:06 +00:00
states/Stopping/node = SubResource("AnimationNodeBlendTree_xw0ge")
states/Stopping/position = Vector2(505, 327)
2023-04-07 11:41:06 +00:00
states/Walk/node = SubResource("AnimationNodeBlendTree_3e37y")
states/Walk/position = Vector2(216.227, 134)
transitions = ["Stopping", "Idle", SubResource("AnimationNodeStateMachineTransition_wnbtw"), "Run", "Stopping", SubResource("AnimationNodeStateMachineTransition_rvsaa"), "Idle", "Run", SubResource("AnimationNodeStateMachineTransition_s0egl"), "Start", "Idle", SubResource("AnimationNodeStateMachineTransition_xf5i1"), "Idle", "Walk", SubResource("AnimationNodeStateMachineTransition_nbs2g"), "Walk", "Stopping", SubResource("AnimationNodeStateMachineTransition_rs3n0"), "Walk", "Jog", SubResource("AnimationNodeStateMachineTransition_6gab4"), "Jog", "Walk", SubResource("AnimationNodeStateMachineTransition_6m5a2"), "Run", "Jog", SubResource("AnimationNodeStateMachineTransition_hy2h2"), "Jog", "Run", SubResource("AnimationNodeStateMachineTransition_2tyel"), "Jog", "Stopping", SubResource("AnimationNodeStateMachineTransition_7h1qf"), "Idle", "Jog", SubResource("AnimationNodeStateMachineTransition_4twgu")]
2023-04-07 11:41:06 +00:00
graph_offset = Vector2(-45.773, 131)
2023-04-07 11:41:06 +00:00
[sub_resource type="AnimationNodeBlendTree" id="AnimationNodeBlendTree_ml0kl"]
graph_offset = Vector2(-389.513, 396.941)
nodes/crouch/node = SubResource("AnimationNodeTransition_3twx3")
nodes/crouch/position = Vector2(100, 180)
2023-04-07 11:41:06 +00:00
nodes/crouching/node = SubResource("AnimationNodeStateMachine_2xodt")
nodes/crouching/position = Vector2(-100, 420)
nodes/standing/node = SubResource("AnimationNodeStateMachine_ieguh")
nodes/standing/position = Vector2(-120, 40)
node_connections = [&"output", 0, &"crouch", &"crouch", 0, &"standing", &"crouch", 1, &"crouching"]
2023-04-07 11:41:06 +00:00
[sub_resource type="AnimationNodeBlendTree" id="AnimationNodeBlendTree_5nmia"]
resource_local_to_scene = true
2023-04-07 11:41:06 +00:00
graph_offset = Vector2(288.5, 1117.67)
nodes/AnimTurnLeft/node = SubResource("AnimationNodeAnimation_mb2kt")
nodes/AnimTurnLeft/position = Vector2(500, 1540)
2023-04-07 11:41:06 +00:00
nodes/AnimTurnRight/node = SubResource("AnimationNodeAnimation_2rfjg")
nodes/AnimTurnRight/position = Vector2(500, 1660)
2023-04-07 11:41:06 +00:00
nodes/FallAnimation/node = SubResource("AnimationNodeAnimation_v6381")
nodes/FallAnimation/position = Vector2(1060, 1600)
nodes/InAir/node = SubResource("AnimationNodeBlend2_nojly")
nodes/InAir/position = Vector2(1280, 1380)
2023-04-07 11:41:06 +00:00
nodes/RightOrLeft/node = SubResource("AnimationNodeBlend2_85ljr")
nodes/RightOrLeft/position = Vector2(720, 1560)
2023-04-07 11:41:06 +00:00
nodes/Turn/node = SubResource("AnimationNodeBlend2_2agtf")
nodes/Turn/position = Vector2(980, 1400)
2023-04-07 11:41:06 +00:00
nodes/VelocityDirection/node = SubResource("AnimationNodeBlendTree_ml0kl")
nodes/VelocityDirection/position = Vector2(680, 1400)
nodes/output/position = Vector2(1540, 1400)
2023-04-07 11:41:06 +00:00
node_connections = [&"output", 0, &"InAir", &"InAir", 0, &"Turn", &"InAir", 1, &"FallAnimation", &"RightOrLeft", 0, &"AnimTurnLeft", &"RightOrLeft", 1, &"AnimTurnRight", &"Turn", 0, &"VelocityDirection", &"Turn", 1, &"RightOrLeft"]
[sub_resource type="AnimationNodeStateMachinePlayback" id="AnimationNodeStateMachinePlayback_wc2uc"]
[node name="AnimationTree" type="AnimationTree"]
2023-04-07 11:41:06 +00:00
tree_root = SubResource("AnimationNodeBlendTree_5nmia")
anim_player = NodePath("../Character/AnimationPlayer")
parameters/InAir/blend_amount = 0.0
parameters/RightOrLeft/blend_amount = 0.0
parameters/Turn/blend_amount = 0.0
parameters/VelocityDirection/crouch/current = 0
parameters/VelocityDirection/crouching/playback = SubResource("AnimationNodeStateMachinePlayback_wc2uc")
parameters/VelocityDirection/crouching/conditions/idle = false
parameters/VelocityDirection/crouching/conditions/walking = false
2023-04-07 11:41:06 +00:00
parameters/VelocityDirection/standing/playback = ExtResource("2_oomli")
parameters/VelocityDirection/standing/conditions/idle = true
parameters/VelocityDirection/standing/conditions/running = false
parameters/VelocityDirection/standing/conditions/sprinting = false
parameters/VelocityDirection/standing/conditions/stop = false
parameters/VelocityDirection/standing/conditions/walking = false
parameters/VelocityDirection/standing/Jog/FB/current = 0
parameters/VelocityDirection/standing/Stopping/StopSeek/seek_position = -1.0
parameters/VelocityDirection/standing/Walk/FB/current = 0
script = ExtResource("1_iikhh")