2024-09-30 18:02:20 +02:00
|
|
|
[gd_scene load_steps=24 format=3 uid="uid://dy8vjf760prhq"]
|
2024-09-08 16:57:39 +02:00
|
|
|
|
|
|
|
[ext_resource type="PackedScene" uid="uid://c0ot1kp5fekqy" path="res://assets/3rdparty/KayKit_Adventurers_1.0_EXTRA/Characters/gltf/Rogue.glb" id="1_rsxsi"]
|
|
|
|
[ext_resource type="AnimationLibrary" uid="uid://dbaynxuqbkor6" path="res://assets/characters/rogue_animation_library.tres" id="2_18sv4"]
|
|
|
|
|
2024-09-30 18:02:20 +02:00
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_duxpv"]
|
2024-09-08 16:57:39 +02:00
|
|
|
animation = &"rogue/1H_Melee_Attack_Chop"
|
|
|
|
|
2024-09-30 18:02:20 +02:00
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_njp2v"]
|
2024-11-01 11:51:59 +01:00
|
|
|
animation = &"rogue/1H_Melee_Attack_Slice_Horizontal"
|
2024-09-30 18:02:20 +02:00
|
|
|
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_go27t"]
|
|
|
|
animation = &"rogue/Unarmed_Melee_Attack_Kick"
|
|
|
|
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_glihl"]
|
|
|
|
advance_mode = 2
|
|
|
|
advance_condition = &"tool_action_chop"
|
|
|
|
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_qm71c"]
|
|
|
|
priority = 2
|
|
|
|
advance_mode = 2
|
|
|
|
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_t6she"]
|
|
|
|
advance_mode = 2
|
|
|
|
advance_condition = &"tool_action_slice"
|
|
|
|
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_oq6xv"]
|
|
|
|
reset = false
|
|
|
|
switch_mode = 2
|
|
|
|
advance_mode = 2
|
|
|
|
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_5ovo5"]
|
|
|
|
reset = false
|
|
|
|
switch_mode = 2
|
|
|
|
advance_mode = 2
|
|
|
|
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_kjkqd"]
|
|
|
|
reset = false
|
|
|
|
switch_mode = 2
|
|
|
|
advance_mode = 2
|
|
|
|
|
|
|
|
[sub_resource type="AnimationNodeStateMachine" id="AnimationNodeStateMachine_bqf2d"]
|
|
|
|
states/Start/position = Vector2(142, 162)
|
|
|
|
states/rogue_1H_Melee_Attack_Chop/node = SubResource("AnimationNodeAnimation_duxpv")
|
2024-11-01 11:51:59 +01:00
|
|
|
states/rogue_1H_Melee_Attack_Chop/position = Vector2(470, 23)
|
2024-09-30 18:02:20 +02:00
|
|
|
states/rogue_1H_Melee_Attack_Slice_Diagonal/node = SubResource("AnimationNodeAnimation_njp2v")
|
|
|
|
states/rogue_1H_Melee_Attack_Slice_Diagonal/position = Vector2(480, 162)
|
|
|
|
states/rogue_Unarmed_Melee_Attack_Kick/node = SubResource("AnimationNodeAnimation_go27t")
|
|
|
|
states/rogue_Unarmed_Melee_Attack_Kick/position = Vector2(485, 257)
|
|
|
|
transitions = ["Start", "rogue_1H_Melee_Attack_Chop", SubResource("AnimationNodeStateMachineTransition_glihl"), "Start", "rogue_Unarmed_Melee_Attack_Kick", SubResource("AnimationNodeStateMachineTransition_qm71c"), "Start", "rogue_1H_Melee_Attack_Slice_Diagonal", SubResource("AnimationNodeStateMachineTransition_t6she"), "rogue_1H_Melee_Attack_Chop", "End", SubResource("AnimationNodeStateMachineTransition_oq6xv"), "rogue_Unarmed_Melee_Attack_Kick", "End", SubResource("AnimationNodeStateMachineTransition_5ovo5"), "rogue_1H_Melee_Attack_Slice_Diagonal", "End", SubResource("AnimationNodeStateMachineTransition_kjkqd")]
|
|
|
|
|
2024-09-08 16:57:39 +02:00
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_dqt6d"]
|
|
|
|
animation = &"rogue/Idle"
|
|
|
|
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_g5g2g"]
|
|
|
|
animation = &"rogue/Running_A"
|
|
|
|
|
|
|
|
[sub_resource type="AnimationNodeTimeScale" id="AnimationNodeTimeScale_7v7om"]
|
|
|
|
|
|
|
|
[sub_resource type="AnimationNodeBlendTree" id="AnimationNodeBlendTree_uc6vu"]
|
|
|
|
nodes/Animation/node = SubResource("AnimationNodeAnimation_g5g2g")
|
|
|
|
nodes/Animation/position = Vector2(40, 180)
|
|
|
|
nodes/TimeScale/node = SubResource("AnimationNodeTimeScale_7v7om")
|
|
|
|
nodes/TimeScale/position = Vector2(340, 180)
|
|
|
|
nodes/output/position = Vector2(640, 160)
|
|
|
|
node_connections = [&"TimeScale", 0, &"Animation", &"output", 0, &"TimeScale"]
|
|
|
|
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_ryaua"]
|
|
|
|
advance_mode = 2
|
|
|
|
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_chmuj"]
|
|
|
|
xfade_time = 0.1
|
|
|
|
advance_mode = 2
|
|
|
|
advance_condition = &"running"
|
|
|
|
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_oa1w1"]
|
|
|
|
xfade_time = 0.1
|
|
|
|
advance_mode = 2
|
|
|
|
advance_condition = &"idle"
|
|
|
|
|
2024-09-30 18:02:20 +02:00
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_7j7mm"]
|
|
|
|
xfade_time = 0.1
|
|
|
|
advance_mode = 2
|
|
|
|
advance_condition = &"interact"
|
|
|
|
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_6s34y"]
|
|
|
|
switch_mode = 2
|
|
|
|
advance_mode = 2
|
|
|
|
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_g3yva"]
|
2024-09-08 16:57:39 +02:00
|
|
|
xfade_time = 0.2
|
|
|
|
advance_mode = 2
|
|
|
|
advance_condition = &"running"
|
|
|
|
|
|
|
|
[sub_resource type="AnimationNodeStateMachine" id="AnimationNodeStateMachine_h0y4b"]
|
|
|
|
states/End/position = Vector2(902, 102)
|
2024-09-30 18:02:20 +02:00
|
|
|
states/Interact/node = SubResource("AnimationNodeStateMachine_bqf2d")
|
|
|
|
states/Interact/position = Vector2(694, 123)
|
2024-09-08 16:57:39 +02:00
|
|
|
states/Start/position = Vector2(189, 123)
|
|
|
|
states/rogue_Idle/node = SubResource("AnimationNodeAnimation_dqt6d")
|
|
|
|
states/rogue_Idle/position = Vector2(422, 123)
|
|
|
|
states/running/node = SubResource("AnimationNodeBlendTree_uc6vu")
|
|
|
|
states/running/position = Vector2(422, 285)
|
2024-09-30 18:02:20 +02:00
|
|
|
transitions = ["Start", "rogue_Idle", SubResource("AnimationNodeStateMachineTransition_ryaua"), "rogue_Idle", "running", SubResource("AnimationNodeStateMachineTransition_chmuj"), "running", "rogue_Idle", SubResource("AnimationNodeStateMachineTransition_oa1w1"), "rogue_Idle", "Interact", SubResource("AnimationNodeStateMachineTransition_7j7mm"), "Interact", "rogue_Idle", SubResource("AnimationNodeStateMachineTransition_6s34y"), "Interact", "running", SubResource("AnimationNodeStateMachineTransition_g3yva")]
|
|
|
|
graph_offset = Vector2(-12, 57.7514)
|
2024-09-08 16:57:39 +02:00
|
|
|
|
|
|
|
[node name="Rogue" type="Node3D"]
|
|
|
|
|
|
|
|
[node name="Rogue" parent="." instance=ExtResource("1_rsxsi")]
|
|
|
|
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
|
|
root_node = NodePath("../Rogue")
|
|
|
|
libraries = {
|
|
|
|
"rogue": ExtResource("2_18sv4")
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="AnimationTree" type="AnimationTree" parent="."]
|
|
|
|
root_node = NodePath("../Rogue")
|
|
|
|
tree_root = SubResource("AnimationNodeStateMachine_h0y4b")
|
|
|
|
anim_player = NodePath("../AnimationPlayer")
|
|
|
|
parameters/conditions/idle = false
|
2024-09-30 18:02:20 +02:00
|
|
|
parameters/conditions/interact = false
|
2024-09-08 16:57:39 +02:00
|
|
|
parameters/conditions/running = false
|
2024-09-30 18:02:20 +02:00
|
|
|
parameters/Interact/conditions/tool_action_chop = false
|
|
|
|
parameters/Interact/conditions/tool_action_slice = false
|
2024-09-08 16:57:39 +02:00
|
|
|
parameters/running/TimeScale/scale = 1.5
|