TinyAdventure/objects/player.tscn

286 lines
14 KiB
Plaintext
Raw Normal View History

[gd_scene load_steps=33 format=3 uid="uid://ch0s3dxx3rpir"]
2024-09-08 16:57:39 +02:00
[ext_resource type="Script" path="res://objects/player.gd" id="1_qkf7c"]
[ext_resource type="Script" path="res://objects/player_right_hand_attachement.gd" id="2_db8xg"]
[ext_resource type="PackedScene" uid="uid://dmvl0igyslm80" path="res://assets/tools/Shovel.tscn" id="2_wyjbd"]
[ext_resource type="PackedScene" uid="uid://c0ot1kp5fekqy" path="res://assets/3rdparty/KayKit_Adventurers_1.0_EXTRA/Characters/gltf/Rogue.glb" id="4_6j8ok"]
[ext_resource type="AnimationLibrary" uid="uid://dbaynxuqbkor6" path="res://assets/characters/rogue_animation_library.tres" id="5_0thdi"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_jd31k"]
albedo_color = Color(1, 1, 0.698039, 1)
[sub_resource type="CapsuleMesh" id="CapsuleMesh_dwrtd"]
material = SubResource("StandardMaterial3D_jd31k")
radius = 0.12
height = 0.6
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_7kfad"]
radius = 0.187322
height = 0.844669
[sub_resource type="SphereShape3D" id="SphereShape3D_wrkyq"]
radius = 0.194932
[sub_resource type="Animation" id="Animation_6nify"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
2024-11-01 18:07:23 +01:00
tracks/0/path = NodePath("%Geometry/..:tool_damage")
tracks/0/interp = 0
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [false]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_j2k78"]
_data = {
"RESET": SubResource("Animation_6nify")
}
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_duxpv"]
animation = &"rogue/1H_Melee_Attack_Chop"
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_njp2v"]
animation = &"rogue/1H_Melee_Attack_Slice_Horizontal"
[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")
states/rogue_1H_Melee_Attack_Chop/position = Vector2(470, 23)
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-11-17 22:00:24 +01:00
graph_offset = Vector2(0, 79)
[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"
[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"]
xfade_time = 0.2
advance_mode = 2
advance_condition = &"running"
[sub_resource type="AnimationNodeStateMachine" id="AnimationNodeStateMachine_h0y4b"]
states/End/position = Vector2(902, 102)
states/Interact/node = SubResource("AnimationNodeStateMachine_bqf2d")
states/Interact/position = Vector2(694, 123)
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)
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)
[node name="Player" type="CharacterBody3D"]
2024-12-28 18:30:23 +01:00
collision_layer = 2
collision_mask = 99
2024-09-08 16:57:39 +02:00
script = ExtResource("1_qkf7c")
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.3, 0)
visible = false
mesh = SubResource("CapsuleMesh_dwrtd")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.399047, 0)
shape = SubResource("CapsuleShape3D_7kfad")
[node name="ActionableDetector" type="Area3D" parent="."]
unique_name_in_owner = true
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.325311)
collision_layer = 0
collision_mask = 16
[node name="CollisionShape3D" type="CollisionShape3D" parent="ActionableDetector"]
shape = SubResource("SphereShape3D_wrkyq")
[node name="BuildLocation" type="Node3D" parent="."]
unique_name_in_owner = true
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.98728)
[node name="RightHandBone" type="BoneAttachment3D" parent="."]
2024-12-28 18:30:23 +01:00
transform = Transform3D(-0.0010606, -0.0645303, 0.394759, 0.399975, -0.00441319, 0.000353067, 0.00429856, 0.394736, 0.0645381, -0.19614, 0.249861, 0.0430095)
bone_name = "Knife"
bone_idx = 17
use_external_skeleton = true
external_skeleton = NodePath("../Geometry/Rogue/Rig/Skeleton3D")
[node name="RightHandAttachement" type="Node3D" parent="RightHandBone"]
unique_name_in_owner = true
script = ExtResource("2_db8xg")
[node name="ShovelScene" parent="RightHandBone/RightHandAttachement" instance=ExtResource("2_wyjbd")]
[node name="Geometry" type="Node3D" parent="."]
unique_name_in_owner = true
transform = Transform3D(0.4, 0, 0, 0, 0.4, 0, 0, 0, 0.4, 0, 0, 0)
[node name="Rogue" parent="Geometry" instance=ExtResource("4_6j8ok")]
2024-11-17 22:00:24 +01:00
[node name="Skeleton3D" parent="Geometry/Rogue/Rig" index="0"]
bones/0/rotation = Quaternion(0, 1.19209e-07, 0, 1)
2024-12-28 18:30:23 +01:00
bones/1/position = Vector3(0, 0.368152, 0)
2024-11-17 22:00:24 +01:00
bones/1/rotation = Quaternion(-1.11123e-10, 0.0431578, 2.57241e-09, 0.999068)
bones/2/rotation = Quaternion(0, 7.10543e-15, 0, 1)
bones/4/position = Vector3(0.212007, 0.134132, 8.40246e-08)
2024-12-28 18:30:23 +01:00
bones/4/rotation = Quaternion(-0.550562, -0.0569332, -0.640382, 0.532496)
bones/5/rotation = Quaternion(4.26205e-08, -3.37907e-08, -0.512092, 0.85893)
bones/7/rotation = Quaternion(-0.320528, -0.338814, 0.147834, 0.872131)
2024-11-17 22:00:24 +01:00
bones/8/position = Vector3(8.34815e-10, 0.0961251, -0.0575001)
2024-12-28 18:30:23 +01:00
bones/8/rotation = Quaternion(0.00121838, 0.00121838, -0.70262, 0.711563)
2024-11-17 22:00:24 +01:00
bones/10/position = Vector3(-0.212007, 0.134132, 8.40246e-08)
2024-12-28 18:30:23 +01:00
bones/10/rotation = Quaternion(-0.609342, 0.077468, 0.615692, 0.493583)
bones/11/rotation = Quaternion(5.15856e-08, 5.32673e-08, 0.534607, 0.845101)
bones/13/rotation = Quaternion(-0.31965, 0.314774, -0.230016, 0.863617)
2024-11-17 22:00:24 +01:00
bones/14/position = Vector3(-8.34815e-10, 0.0961251, -0.0575001)
2024-12-28 18:30:23 +01:00
bones/14/rotation = Quaternion(0.00376201, 0.0044311, 0.703185, 0.710983)
2024-11-17 22:00:24 +01:00
bones/19/rotation = Quaternion(-5.8061e-11, -0.0313416, -1.88013e-09, 0.999509)
bones/21/position = Vector3(0.170945, 0.113587, 1.39233e-08)
2024-12-28 18:30:23 +01:00
bones/21/rotation = Quaternion(0.98935, 0.0838184, 0.0788919, 0.0890948)
bones/22/rotation = Quaternion(0.400425, 5.67776e-08, -2.71737e-07, 0.91633)
bones/23/rotation = Quaternion(-0.624352, -0.200486, 0.0777503, 0.750963)
2024-11-17 22:00:24 +01:00
bones/24/rotation = Quaternion(-3.04797e-08, 0.920355, -0.391084, 6.94849e-08)
bones/25/position = Vector3(-0.170945, 0.113587, 1.39233e-08)
2024-12-28 18:30:23 +01:00
bones/25/rotation = Quaternion(0.991162, -0.0335157, 0.0297454, 0.124861)
bones/26/rotation = Quaternion(0.444001, -5.88264e-08, 3.12121e-07, 0.896026)
bones/27/rotation = Quaternion(-0.650146, 0.112372, -0.0238416, 0.751075)
2024-11-17 22:00:24 +01:00
bones/28/rotation = Quaternion(3.04797e-08, 0.920355, -0.391084, -6.94849e-08)
bones/29/position = Vector3(0.170945, 0.29231, 0.575812)
bones/29/rotation = Quaternion(0.707107, -2.29302e-07, -4.60551e-08, 0.707107)
bones/30/position = Vector3(0.202182, 0.0259903, 0.205181)
bones/30/rotation = Quaternion(-0.707107, -7.05285e-08, -7.05285e-08, 0.707107)
bones/31/position = Vector3(1.94581e-08, 0.362833, -2.42861e-15)
bones/31/rotation = Quaternion(9.65792e-09, 1.77955e-09, 0.985719, -0.168398)
bones/32/position = Vector3(-1.11482e-08, 0.213436, -2.50942e-15)
bones/32/rotation = Quaternion(-1.04035e-07, 0.391084, 0.920355, -2.9526e-08)
bones/33/position = Vector3(8.58988e-09, 0.16565, -5.09137e-09)
bones/34/rotation = Quaternion(1, -3.10863e-15, 1.94707e-07, -6.91739e-22)
bones/36/position = Vector3(-0.170945, 0.29231, 0.575812)
bones/36/rotation = Quaternion(0.707107, -3.82385e-08, 1.45009e-07, 0.707107)
bones/37/position = Vector3(-0.170945, 0.0259903, 0.245789)
bones/37/rotation = Quaternion(-0.707107, -7.05285e-08, -7.05285e-08, 0.707107)
bones/38/position = Vector3(1.94581e-08, 0.362833, 2.42861e-15)
bones/38/rotation = Quaternion(-5.83589e-09, 6.43837e-10, 0.994809, 0.101756)
bones/39/position = Vector3(3.75294e-09, 0.213436, 0)
bones/39/rotation = Quaternion(-1.04035e-07, 0.391084, 0.920355, -2.95261e-08)
bones/40/position = Vector3(-6.31128e-09, 0.16565, 1.36608e-09)
bones/41/rotation = Quaternion(1, 4.44086e-16, 1.94707e-07, 6.91739e-22)
bones/43/position = Vector3(0.453507, 1.10676, -0.588859)
bones/43/rotation = Quaternion(-0.707107, -7.27951e-08, -7.27951e-08, 0.707107)
2024-12-28 18:30:23 +01:00
bones/44/position = Vector3(0.520841, 0.77165, -0.0576374)
2024-11-17 22:00:24 +01:00
bones/44/rotation = Quaternion(0.794627, -1.2666e-07, 0.607098, -5.96046e-08)
bones/45/position = Vector3(-0.453507, 1.10676, -0.58886)
bones/45/rotation = Quaternion(-0.707107, -7.27951e-08, -7.27951e-08, 0.707107)
2024-12-28 18:30:23 +01:00
bones/46/position = Vector3(-0.510844, 0.77165, 0.0597369)
2024-11-17 22:00:24 +01:00
bones/46/rotation = Quaternion(-0.758253, -1.82539e-07, 0.651961, -1.11759e-08)
[node name="Knife_Offhand" parent="Geometry/Rogue/Rig/Skeleton3D" index="0"]
2024-12-28 18:30:23 +01:00
transform = Transform3D(-1.88394e-07, 0.262864, 0.964832, 0.999913, -0.0126474, 0.00344631, 0.0131088, 0.96475, -0.262841, 0.50728, 0.620143, -0.017604)
2024-11-17 22:00:24 +01:00
[node name="1H_Crossbow" parent="Geometry/Rogue/Rig/Skeleton3D" index="1"]
2024-12-28 18:30:23 +01:00
transform = Transform3D(0.986897, -0.161326, 0.0026515, 0.000882647, -0.0110331, -0.999938, 0.161346, 0.986839, -0.0107466, -0.488958, 0.729389, 0.098426)
2024-11-17 22:00:24 +01:00
[node name="2H_Crossbow" parent="Geometry/Rogue/Rig/Skeleton3D" index="2"]
2024-12-28 18:30:23 +01:00
transform = Transform3D(0.986897, -0.161326, 0.0026515, 0.000882647, -0.0110331, -0.999938, 0.161346, 0.986839, -0.0107466, -0.488958, 0.729389, 0.098426)
2024-11-17 22:00:24 +01:00
[node name="Knife" parent="Geometry/Rogue/Rig/Skeleton3D" index="3"]
2024-12-28 18:30:23 +01:00
transform = Transform3D(-0.00265149, -0.161326, 0.986897, 0.999938, -0.011033, 0.000882668, 0.0107464, 0.986839, 0.161345, -0.490351, 0.624652, 0.107524)
2024-11-17 22:00:24 +01:00
[node name="Throwable" parent="Geometry/Rogue/Rig/Skeleton3D" index="4"]
2024-12-28 18:30:23 +01:00
transform = Transform3D(-0.00265147, -0.161326, 0.986897, 0.999938, -0.011033, 0.000882653, 0.0107464, 0.986839, 0.161345, -0.51943, 0.622664, 0.285398)
2024-11-17 22:00:24 +01:00
[node name="Rogue_Cape" parent="Geometry/Rogue/Rig/Skeleton3D" index="5"]
2024-12-28 18:30:23 +01:00
transform = Transform3D(0.996275, -5.14962e-09, 0.0862354, 5.13044e-09, 1, 4.44078e-10, -0.0862354, 1.47756e-15, 0.996275, -4.17227e-09, 1.17836, 1.19714e-15)
2024-11-17 22:00:24 +01:00
[node name="AnimationPlayer" type="AnimationPlayer" parent="Geometry"]
root_node = NodePath("../Rogue")
libraries = {
"": SubResource("AnimationLibrary_j2k78"),
"rogue": ExtResource("5_0thdi")
}
[node name="AnimationTree" type="AnimationTree" parent="Geometry"]
root_node = NodePath("../Rogue")
tree_root = SubResource("AnimationNodeStateMachine_h0y4b")
anim_player = NodePath("../AnimationPlayer")
parameters/conditions/idle = false
parameters/conditions/interact = false
parameters/conditions/running = false
parameters/Interact/conditions/tool_action_chop = false
parameters/Interact/conditions/tool_action_slice = false
parameters/running/TimeScale/scale = 1.5
2024-11-17 22:00:24 +01:00
[editable path="Geometry/Rogue"]