309 lines
16 KiB
Plaintext
309 lines
16 KiB
Plaintext
[gd_scene load_steps=35 format=3 uid="uid://dtehhqrqtplan"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://bd5bo4yc4n4in" path="res://models/adventures/Knight.glb" id="1_fwuyc"]
|
|
[ext_resource type="Script" path="res://scripts/knight.gd" id="2_51yjr"]
|
|
|
|
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_i3cyd"]
|
|
height = 2.4
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_bp8ho"]
|
|
animation = &"1H_Melee_Attack_Chop"
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_l1j8g"]
|
|
animation = &"1H_Melee_Attack_Slice_Diagonal"
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_petvt"]
|
|
animation = &"1H_Melee_Attack_Slice_Horizontal"
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_hx644"]
|
|
animation = &"Death_A"
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_48ty1"]
|
|
animation = &"Idle"
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_8ersd"]
|
|
animation = &"Running_A"
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_ojumq"]
|
|
animation = &"Walking_Backwards"
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_7phoq"]
|
|
animation = &"Running_Strafe_Right"
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_3i3q8"]
|
|
animation = &"Running_Strafe_Left"
|
|
|
|
[sub_resource type="AnimationNodeBlendSpace2D" id="AnimationNodeBlendSpace2D_vsgt8"]
|
|
blend_point_0/node = SubResource("AnimationNodeAnimation_48ty1")
|
|
blend_point_0/pos = Vector2(0, 0)
|
|
blend_point_1/node = SubResource("AnimationNodeAnimation_8ersd")
|
|
blend_point_1/pos = Vector2(0, 1)
|
|
blend_point_2/node = SubResource("AnimationNodeAnimation_ojumq")
|
|
blend_point_2/pos = Vector2(0, -1)
|
|
blend_point_3/node = SubResource("AnimationNodeAnimation_7phoq")
|
|
blend_point_3/pos = Vector2(1, 0)
|
|
blend_point_4/node = SubResource("AnimationNodeAnimation_3i3q8")
|
|
blend_point_4/pos = Vector2(-1, 0)
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_0ujxg"]
|
|
animation = &"Interact"
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_qnt8j"]
|
|
animation = &"Jump_Idle"
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_k0lhp"]
|
|
animation = &"Jump_Land"
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_n2bl3"]
|
|
animation = &"Jump_Start"
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_l0xk8"]
|
|
advance_mode = 2
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_0pn5a"]
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_u1hnl"]
|
|
switch_mode = 2
|
|
advance_mode = 2
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_ddrtj"]
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_vokpi"]
|
|
switch_mode = 2
|
|
advance_mode = 2
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_w32h3"]
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_x8rkg"]
|
|
switch_mode = 2
|
|
advance_mode = 2
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_ai0h0"]
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_flmvj"]
|
|
switch_mode = 2
|
|
advance_mode = 2
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_hnfj8"]
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_17t07"]
|
|
switch_mode = 2
|
|
advance_mode = 2
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_4j7ud"]
|
|
advance_mode = 2
|
|
advance_condition = &"jumping"
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_mgjn7"]
|
|
switch_mode = 2
|
|
advance_mode = 2
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_eh75m"]
|
|
advance_mode = 2
|
|
advance_condition = &"grounded"
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_qllfg"]
|
|
xfade_time = 0.2
|
|
switch_mode = 2
|
|
advance_mode = 2
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_vq1x0"]
|
|
|
|
[sub_resource type="AnimationNodeStateMachine" id="AnimationNodeStateMachine_vnar2"]
|
|
states/1h_attack_chop/node = SubResource("AnimationNodeAnimation_bp8ho")
|
|
states/1h_attack_chop/position = Vector2(566, -102)
|
|
states/1h_slice_diagonal/node = SubResource("AnimationNodeAnimation_l1j8g")
|
|
states/1h_slice_diagonal/position = Vector2(326, -102)
|
|
states/1h_slice_horizontal/node = SubResource("AnimationNodeAnimation_petvt")
|
|
states/1h_slice_horizontal/position = Vector2(808, -102)
|
|
states/Death_A/node = SubResource("AnimationNodeAnimation_hx644")
|
|
states/Death_A/position = Vector2(748, 100)
|
|
states/IWR/node = SubResource("AnimationNodeBlendSpace2D_vsgt8")
|
|
states/IWR/position = Vector2(531, 100)
|
|
states/Interact/node = SubResource("AnimationNodeAnimation_0ujxg")
|
|
states/Interact/position = Vector2(201, -33)
|
|
states/Jump_Idle/node = SubResource("AnimationNodeAnimation_qnt8j")
|
|
states/Jump_Idle/position = Vector2(504, 314)
|
|
states/Jump_Land/node = SubResource("AnimationNodeAnimation_k0lhp")
|
|
states/Jump_Land/position = Vector2(748, 239)
|
|
states/Jump_Start/node = SubResource("AnimationNodeAnimation_n2bl3")
|
|
states/Jump_Start/position = Vector2(239, 229)
|
|
transitions = ["Start", "IWR", SubResource("AnimationNodeStateMachineTransition_l0xk8"), "IWR", "Death_A", SubResource("AnimationNodeStateMachineTransition_0pn5a"), "Death_A", "End", SubResource("AnimationNodeStateMachineTransition_u1hnl"), "IWR", "Interact", SubResource("AnimationNodeStateMachineTransition_ddrtj"), "Interact", "IWR", SubResource("AnimationNodeStateMachineTransition_vokpi"), "IWR", "1h_slice_diagonal", SubResource("AnimationNodeStateMachineTransition_w32h3"), "1h_slice_diagonal", "IWR", SubResource("AnimationNodeStateMachineTransition_x8rkg"), "IWR", "1h_attack_chop", SubResource("AnimationNodeStateMachineTransition_ai0h0"), "1h_attack_chop", "IWR", SubResource("AnimationNodeStateMachineTransition_flmvj"), "IWR", "1h_slice_horizontal", SubResource("AnimationNodeStateMachineTransition_hnfj8"), "1h_slice_horizontal", "IWR", SubResource("AnimationNodeStateMachineTransition_17t07"), "IWR", "Jump_Start", SubResource("AnimationNodeStateMachineTransition_4j7ud"), "Jump_Start", "Jump_Idle", SubResource("AnimationNodeStateMachineTransition_mgjn7"), "Jump_Idle", "Jump_Land", SubResource("AnimationNodeStateMachineTransition_eh75m"), "Jump_Land", "IWR", SubResource("AnimationNodeStateMachineTransition_qllfg"), "IWR", "Jump_Idle", SubResource("AnimationNodeStateMachineTransition_vq1x0")]
|
|
graph_offset = Vector2(-413, -200)
|
|
|
|
[node name="Knight" instance=ExtResource("1_fwuyc")]
|
|
collision_layer = 2
|
|
script = ExtResource("2_51yjr")
|
|
|
|
[node name="Skeleton3D" parent="Rig" index="0"]
|
|
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, 0)
|
|
bones/0/position = Vector3(0, 0.000155538, 0)
|
|
bones/0/rotation = Quaternion(-9.45752e-12, -0.000274707, -1.63809e-11, 1)
|
|
bones/1/position = Vector3(1.34677e-20, 0.391729, -9.32372e-19)
|
|
bones/1/rotation = Quaternion(0.000373657, 0.0429939, 2.04897e-05, 0.999075)
|
|
bones/2/rotation = Quaternion(0.000448099, 0.000440358, -5.66009e-05, 1)
|
|
bones/3/rotation = Quaternion(0.000169611, 8.66795e-05, -1.25757e-05, 1)
|
|
bones/4/position = Vector3(0.211993, 0.134088, -0.000186373)
|
|
bones/4/rotation = Quaternion(-0.560737, -0.0613846, -0.643158, 0.517836)
|
|
bones/4/scale = Vector3(0.999999, 0.999999, 1)
|
|
bones/5/rotation = Quaternion(3.77598e-09, -4.59e-08, -0.495317, 0.868713)
|
|
bones/6/rotation = Quaternion(-9.73784e-11, -2.98437e-10, 0.0266581, 0.999645)
|
|
bones/6/scale = Vector3(1, 1, 1)
|
|
bones/7/rotation = Quaternion(-0.320059, -0.326101, 0.14495, 0.877616)
|
|
bones/8/position = Vector3(4.03522e-10, 0.0961252, -0.0575)
|
|
bones/8/rotation = Quaternion(-0.000205364, 0.000181415, -0.706284, 0.707929)
|
|
bones/8/scale = Vector3(1, 1, 1)
|
|
bones/14/position = Vector3(-0.211923, 0.134053, -0.000167527)
|
|
bones/14/rotation = Quaternion(-0.619012, 0.0806966, 0.61666, 0.479627)
|
|
bones/14/scale = Vector3(0.999999, 0.999999, 1)
|
|
bones/15/rotation = Quaternion(2.91882e-08, 4.7328e-08, 0.518353, 0.855166)
|
|
bones/16/rotation = Quaternion(-9.73784e-11, 2.98437e-10, -0.0266581, 0.999645)
|
|
bones/16/scale = Vector3(1, 1, 1)
|
|
bones/17/rotation = Quaternion(-0.318316, 0.301555, -0.225984, 0.869868)
|
|
bones/18/position = Vector3(-1.54781e-08, 0.0961251, -0.0575)
|
|
bones/18/rotation = Quaternion(-9.29263e-05, -7.82745e-05, 0.706372, 0.707841)
|
|
bones/18/scale = Vector3(1, 1, 1)
|
|
bones/21/rotation = Quaternion(-0.000509593, -0.0315664, -2.95604e-05, 0.999502)
|
|
bones/24/position = Vector3(0.170945, 0.113587, 0.000356948)
|
|
bones/24/rotation = Quaternion(0.993728, 0.0832267, 0.0734252, 0.0136577)
|
|
bones/24/scale = Vector3(1, 1, 1)
|
|
bones/25/rotation = Quaternion(0.198424, 6.32707e-08, -1.31878e-07, 0.980116)
|
|
bones/26/rotation = Quaternion(-0.51935, -0.208609, 0.0440003, 0.827539)
|
|
bones/27/rotation = Quaternion(-9.82177e-09, 0.920355, -0.391084, 7.82713e-08)
|
|
bones/27/scale = Vector3(1, 1, 1)
|
|
bones/28/position = Vector3(-0.170945, 0.113587, -0.000356917)
|
|
bones/28/rotation = Quaternion(0.99728, -0.0294109, 0.0313871, 0.0598505)
|
|
bones/28/scale = Vector3(1, 1, 1)
|
|
bones/29/rotation = Quaternion(0.278069, -6.31705e-08, 1.95848e-07, 0.960561)
|
|
bones/30/rotation = Quaternion(-0.55905, 0.114066, -0.00893948, 0.821201)
|
|
bones/31/rotation = Quaternion(3.0361e-08, 0.920355, -0.391084, -6.95391e-08)
|
|
bones/31/scale = Vector3(1, 1, 1)
|
|
bones/32/position = Vector3(0.170945, 0.292336, 0.575838)
|
|
bones/32/rotation = Quaternion(0.707107, -2.29302e-07, -4.60552e-08, 0.707107)
|
|
bones/33/position = Vector3(0.202061, 0.0271045, 0.206623)
|
|
bones/33/rotation = Quaternion(-0.708211, -7.04067e-08, -7.06491e-08, 0.706001)
|
|
bones/34/position = Vector3(1.94503e-08, 0.362833, -2.42861e-15)
|
|
bones/34/rotation = Quaternion(9.6269e-09, 1.76582e-09, 0.98583, -0.16775)
|
|
bones/35/position = Vector3(-2.59494e-08, 0.213436, -5.15143e-09)
|
|
bones/35/rotation = Quaternion(-1.01283e-07, 0.391084, 0.920355, -3.34974e-08)
|
|
bones/36/position = Vector3(8.5477e-09, 0.16565, -2.42004e-09)
|
|
bones/37/rotation = Quaternion(1, -2.31451e-09, 1.99757e-07, 9.76327e-13)
|
|
bones/39/position = Vector3(-0.170945, 0.292336, 0.575838)
|
|
bones/39/rotation = Quaternion(0.707107, -3.82385e-08, 1.45009e-07, 0.707107)
|
|
bones/40/position = Vector3(-0.170945, 0.0264173, 0.243014)
|
|
bones/40/rotation = Quaternion(-0.704399, -7.08172e-08, -7.02379e-08, 0.709804)
|
|
bones/41/position = Vector3(1.94816e-08, 0.362833, 2.0002e-10)
|
|
bones/41/rotation = Quaternion(-5.81779e-09, 6.41802e-10, 0.99485, 0.101363)
|
|
bones/42/position = Vector3(-1.10904e-08, 0.213436, 8.32518e-11)
|
|
bones/42/rotation = Quaternion(-1.05787e-07, 0.391084, 0.920355, -2.58827e-08)
|
|
bones/43/position = Vector3(-6.30345e-09, 0.16565, 2.79023e-09)
|
|
bones/43/rotation = Quaternion(-0.391084, -6.885e-08, -6.56287e-08, 0.920355)
|
|
bones/44/rotation = Quaternion(1, 3.75961e-09, 1.94881e-07, 7.41776e-09)
|
|
bones/46/position = Vector3(0.453379, 1.10598, -0.589302)
|
|
bones/46/rotation = Quaternion(-0.707107, 6.47043e-05, 6.47042e-05, 0.707107)
|
|
bones/47/position = Vector3(0.520812, 0.788113, -0.0570226)
|
|
bones/47/rotation = Quaternion(0.795441, 0.00177548, 0.606029, 0.000197342)
|
|
bones/48/position = Vector3(-0.45384, 1.10588, -0.588869)
|
|
bones/48/rotation = Quaternion(-0.707107, 6.47043e-05, 6.47042e-05, 0.707107)
|
|
bones/49/position = Vector3(-0.510786, 0.788113, 0.0601905)
|
|
bones/49/rotation = Quaternion(0.759165, -0.00170699, -0.650896, 0.000376884)
|
|
|
|
[node name="1H_Sword_Offhand" parent="Rig/Skeleton3D" index="0"]
|
|
transform = Transform3D(-0.00201176, 0.264045, 0.964507, 0.999997, 0.000862623, 0.00185006, -0.00034324, 0.964509, -0.264046, 0.512825, 0.636868, -0.00134114)
|
|
visible = false
|
|
|
|
[node name="Badge_Shield" parent="Rig/Skeleton3D" index="1"]
|
|
transform = Transform3D(-0.00201174, 0.264045, 0.964507, 0.999997, 0.000860088, 0.00185073, -0.000340619, 0.964509, -0.264046, 0.663178, 0.637157, -0.0425021)
|
|
visible = false
|
|
|
|
[node name="Rectangle_Shield" parent="Rig/Skeleton3D" index="2"]
|
|
transform = Transform3D(-0.00201174, 0.264045, 0.964507, 0.999997, 0.000860088, 0.00185073, -0.000340619, 0.964509, -0.264046, 0.663178, 0.637157, -0.0425021)
|
|
visible = false
|
|
|
|
[node name="Round_Shield" parent="Rig/Skeleton3D" index="3"]
|
|
transform = Transform3D(-0.00201174, 0.264045, 0.964507, 0.999997, 0.000860088, 0.00185073, -0.000340619, 0.964509, -0.264046, 0.663178, 0.637157, -0.0425021)
|
|
|
|
[node name="1H_Sword" parent="Rig/Skeleton3D" index="4"]
|
|
transform = Transform3D(0.00288414, -0.15269, 0.988269, 0.999995, 0.000861427, -0.00278562, -0.000425572, 0.988273, 0.152692, -0.497149, 0.641357, 0.139546)
|
|
|
|
[node name="2H_Sword" parent="Rig/Skeleton3D" index="5"]
|
|
transform = Transform3D(0.00288413, -0.15269, 0.988269, 0.999995, 0.000861412, -0.00278561, -0.000425559, 0.988273, 0.152692, -0.497149, 0.641357, 0.139546)
|
|
visible = false
|
|
|
|
[node name="Knight_Helmet" parent="Rig/Skeleton3D" index="6"]
|
|
transform = Transform3D(0.999727, 0.000237854, 0.0233737, -0.000215667, 0.999999, -0.000951751, -0.0233739, 0.000946449, 0.999726, 0.000123411, 1.20211, 0.00126002)
|
|
visible = false
|
|
|
|
[node name="Knight_Cape" parent="Rig/Skeleton3D" index="7"]
|
|
transform = Transform3D(0.99626, 0.000234796, 0.0864109, -6.3917e-05, 0.999998, -0.00198027, -0.0864112, 0.00196734, 0.996258, 0.000123003, 1.20211, 0.00123393)
|
|
visible = false
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="." index="1"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.2, 0)
|
|
shape = SubResource("CapsuleShape3D_i3cyd")
|
|
|
|
[node name="AnimationTree" type="AnimationTree" parent="." index="3"]
|
|
tree_root = SubResource("AnimationNodeStateMachine_vnar2")
|
|
anim_player = NodePath("../AnimationPlayer")
|
|
parameters/current_length = 1.06667
|
|
parameters/current_position = 0.0328482
|
|
parameters/current_delta = 0.0166667
|
|
parameters/conditions/grounded = false
|
|
parameters/conditions/jumping = false
|
|
parameters/1h_attack_chop/current_length = 1.06667
|
|
parameters/1h_attack_chop/current_position = 1.06667
|
|
parameters/1h_attack_chop/current_delta = 0.0181474
|
|
parameters/1h_slice_diagonal/current_length = 1.0
|
|
parameters/1h_slice_diagonal/current_position = 1.0
|
|
parameters/1h_slice_diagonal/current_delta = 0.0269584
|
|
parameters/1h_slice_horizontal/current_length = 1.06667
|
|
parameters/1h_slice_horizontal/current_position = 1.06667
|
|
parameters/1h_slice_horizontal/current_delta = 0.0184626
|
|
parameters/Death_A/current_length = 0.8
|
|
parameters/Death_A/current_position = 0.8
|
|
parameters/Death_A/current_delta = 0.0
|
|
parameters/End/current_length = 0.0
|
|
parameters/End/current_position = 0.0
|
|
parameters/End/current_delta = 0.0
|
|
parameters/IWR/current_length = 1.06667
|
|
parameters/IWR/current_position = 0.0328482
|
|
parameters/IWR/current_delta = 0.0166667
|
|
parameters/IWR/blend_position = Vector2(0.000524879, 0.00335574)
|
|
parameters/IWR/0/current_length = 1.06667
|
|
parameters/IWR/0/current_position = 0.0328482
|
|
parameters/IWR/0/current_delta = 0.0166667
|
|
parameters/IWR/1/current_length = 0.8
|
|
parameters/IWR/1/current_position = 0.0328519
|
|
parameters/IWR/1/current_delta = 0.0166667
|
|
parameters/IWR/2/current_length = 1.06667
|
|
parameters/IWR/2/current_position = 0.408754
|
|
parameters/IWR/2/current_delta = 0.0166667
|
|
parameters/IWR/3/current_length = 0.8
|
|
parameters/IWR/3/current_position = 0.0328519
|
|
parameters/IWR/3/current_delta = 0.0166667
|
|
parameters/IWR/4/current_length = 0.8
|
|
parameters/IWR/4/current_position = 0.61058
|
|
parameters/IWR/4/current_delta = 0.0166667
|
|
parameters/Interact/current_length = null
|
|
parameters/Interact/current_position = null
|
|
parameters/Interact/current_delta = null
|
|
parameters/Jump_Idle/current_length = 1.06667
|
|
parameters/Jump_Idle/current_position = 0.82916
|
|
parameters/Jump_Idle/current_delta = 0.0166667
|
|
parameters/Jump_Land/current_length = 0.666667
|
|
parameters/Jump_Land/current_position = 0.666667
|
|
parameters/Jump_Land/current_delta = 0.0320261
|
|
parameters/Jump_Start/current_length = 0.6
|
|
parameters/Jump_Start/current_position = 0.6
|
|
parameters/Jump_Start/current_delta = 0.0180555
|
|
parameters/Start/current_length = 0.0
|
|
parameters/Start/current_position = 0.0
|
|
parameters/Start/current_delta = 0.0
|
|
|
|
[node name="SpringArm3D" type="SpringArm3D" parent="." index="4"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.5, 0)
|
|
spring_length = 5.0
|
|
margin = 0.1
|
|
|
|
[node name="Camera3D" type="Camera3D" parent="SpringArm3D" index="0"]
|