[gd_scene load_steps=13 format=3 uid="uid://nsv4lbw7j8mi"] [ext_resource type="Script" uid="uid://csgybabwb8cbg" path="res://src/scripts/characters/player.gd" id="1_swhsd"] [ext_resource type="PackedScene" uid="uid://dw8f5oy13cdtx" path="res://src/scenes/characters/health_component.tscn" id="2_0xash"] [ext_resource type="Script" uid="uid://cxnvqh8ijf0ox" path="res://src/scripts/characters/boom.gd" id="2_qopur"] [ext_resource type="Script" uid="uid://dwysfismpgq07" path="res://src/resources/characters/character_stats.gd" id="2_ulq46"] [ext_resource type="PackedScene" uid="uid://ckwydalda0teo" path="res://src/scenes/characters/rig.tscn" id="3_n52bt"] [ext_resource type="Script" uid="uid://blbnvx6pe37mc" path="res://src/scripts/characters/attack_cast.gd" id="4_cx3ie"] [ext_resource type="PackedScene" uid="uid://bo62qyfwylypa" path="res://src/scenes/characters/area_attack.tscn" id="6_wmokw"] [ext_resource type="PackedScene" uid="uid://cwdsfw1g1607y" path="res://src/scenes/characters/dash.tscn" id="7_yvk1n"] [ext_resource type="PackedScene" uid="uid://blex30jj7g55d" path="res://src/scenes/ui/user_interface.tscn" id="9_wdvff"] [sub_resource type="Resource" id="Resource_wdvff"] script = ExtResource("2_ulq46") metadata/_custom_type_script = "uid://dwysfismpgq07" [sub_resource type="CapsuleShape3D" id="CapsuleShape3D_yx56f"] [sub_resource type="SeparationRayShape3D" id="SeparationRayShape3D_swhsd"] [node name="Player" type="CharacterBody3D" groups=["Player"]] collision_layer = 5 script = ExtResource("1_swhsd") stats = SubResource("Resource_wdvff") [node name="HealthComponent" parent="." node_paths=PackedStringArray("body") instance=ExtResource("2_0xash")] body = NodePath("..") [node name="CollisionShape" type="CollisionShape3D" parent="."] shape = SubResource("CapsuleShape3D_yx56f") [node name="Boom" type="SpringArm3D" parent="." node_paths=PackedStringArray("target")] transform = Transform3D(1, 0, 0, 0, 0.866025, 0.5, 0, -0.5, 0.866025, 0, 1, 0) shape = SubResource("SeparationRayShape3D_swhsd") spring_length = 4.0 script = ExtResource("2_qopur") target = NodePath("../HorizontalPivot/VerticalPivot") [node name="Camera" type="Camera3D" parent="Boom"] [node name="HorizontalPivot" type="Node3D" parent="."] [node name="VerticalPivot" type="Node3D" parent="HorizontalPivot"] [node name="RigPivot" type="Node3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -1, 0) [node name="Rig" parent="RigPivot" instance=ExtResource("3_n52bt")] [node name="Skeleton3D" parent="RigPivot/Rig/CharacterRig/GameRig" index="0"] bones/0/position = Vector3(4.44089e-15, 0.910298, -0.0481736) bones/0/rotation = Quaternion(0.12582, 1.18262e-07, 1.49989e-08, 0.992053) bones/1/rotation = Quaternion(-0.0566577, -0.00072973, -0.0117082, 0.998325) bones/2/position = Vector3(3.20474e-09, 0.146689, -1.95578e-08) bones/2/rotation = Quaternion(0.00672042, -0.00027731, 0.00321123, 0.999972) bones/3/position = Vector3(-2.01263e-09, 0.202058, -2.51457e-08) bones/3/rotation = Quaternion(-0.0887967, -0.000279992, 0.00852467, 0.996013) bones/4/position = Vector3(3.02934e-10, 0.0925562, 3.91155e-08) bones/4/rotation = Quaternion(0.270076, 1.44128e-08, 9.17163e-08, 0.962839) bones/5/rotation = Quaternion(-0.0948564, -2.80691e-14, -2.26155e-08, 0.995491) bones/6/rotation = Quaternion(-0.164953, -1.17576e-07, -1.96639e-08, 0.986301) bones/7/position = Vector3(-2.93098e-08, 0.910297, -0.0481735) bones/7/rotation = Quaternion(-0.0863677, -0.751104, -0.383052, 0.530711) bones/8/position = Vector3(-7.07406e-08, 0.910297, -0.0481735) bones/8/rotation = Quaternion(-0.0863677, 0.751104, 0.383052, 0.530711) bones/9/position = Vector3(0.131144, 0.976502, -0.0351291) bones/9/rotation = Quaternion(0.994278, 0.0202311, -0.0312563, 0.100123) bones/10/position = Vector3(-2.36129e-08, 0.26601, -2.14789e-08) bones/10/rotation = Quaternion(-3.13921e-08, -0.000695086, 1.20449e-08, 1) bones/11/position = Vector3(-4.6306e-08, 0.26601, 2.42145e-08) bones/11/rotation = Quaternion(0.394375, -0.000694897, 0.000298346, 0.918949) bones/12/position = Vector3(3.05151e-08, 0.22603, 5.03768e-08) bones/12/rotation = Quaternion(-8.19226e-09, -0.00710644, 4.16102e-08, 0.999975) bones/13/position = Vector3(-2.95495e-08, 0.22603, 2.68392e-09) bones/13/rotation = Quaternion(-0.74048, 0.0118444, 0.0243594, 0.671533) bones/14/position = Vector3(-3.05481e-08, 0.139877, 1.64787e-08) bones/14/rotation = Quaternion(-9.66743e-05, 0.967474, -0.252972, -0.000383447) bones/15/position = Vector3(-0.131144, 0.976502, -0.0351291) bones/15/rotation = Quaternion(0.975849, -0.00527174, 0.0276762, 0.216623) bones/16/position = Vector3(-1.10042e-08, 0.265705, -3.31989e-08) bones/16/rotation = Quaternion(-3.43227e-08, 0.00314323, 8.33075e-10, 0.999995) bones/17/position = Vector3(1.83545e-08, 0.265705, 6.98543e-10) bones/17/rotation = Quaternion(0.420637, 0.00315186, -0.00146145, 0.907222) bones/18/position = Vector3(1.2807e-08, 0.225719, -8.28774e-09) bones/18/rotation = Quaternion(-2.29017e-08, -0.00785732, 3.30149e-08, 0.999969) bones/19/position = Vector3(-1.27748e-08, 0.225719, 1.12004e-08) bones/19/rotation = Quaternion(-0.677933, -0.0281373, -0.00146106, 0.734584) bones/20/position = Vector3(-1.30142e-08, 0.139877, -2.77457e-09) bones/20/rotation = Quaternion(-9.96472e-05, 0.967461, -0.253021, -0.000383039) bones/21/position = Vector3(0.0251286, 1.43996, 0.0472612) bones/21/rotation = Quaternion(-0.47024, -0.267348, -0.41695, 0.730447) bones/22/position = Vector3(0.19147, 1.47876, -0.00986401) bones/22/rotation = Quaternion(0.0209388, -0.164068, 0.975492, -0.145118) bones/23/position = Vector3(-5.41331e-09, 0.143946, -2.98023e-08) bones/23/rotation = Quaternion(8.3167e-08, -0.0393034, 1.72858e-08, 0.999227) bones/24/position = Vector3(-6.33301e-08, 0.143946, 4.3873e-08) bones/24/rotation = Quaternion(0.352208, -0.0394214, -0.0219897, 0.934833) bones/25/position = Vector3(1.30385e-08, 0.127601, 6.51926e-09) bones/25/rotation = Quaternion(1.49943e-07, -1.20606e-07, 9.91859e-08, 1) bones/26/position = Vector3(2.06034e-08, 0.127601, 2.42761e-08) bones/26/rotation = Quaternion(-0.00824883, -0.00027077, -0.0328667, 0.999426) bones/28/rotation = Quaternion(0.702583, -0.000939743, -0.00133552, 0.7116) bones/29/rotation = Quaternion(0.741121, 0.00218291, 0.00265381, 0.671363) bones/30/rotation = Quaternion(0.32527, 0.890055, 0.295977, -0.119997) bones/31/rotation = Quaternion(0.514882, -0.114149, 0.114482, 0.841879) bones/32/rotation = Quaternion(0.592003, -0.0381348, -0.090699, 0.799907) bones/34/position = Vector3(-0.00316938, 0.0987206, 0.0147918) bones/34/rotation = Quaternion(-0.0674699, 0.718446, 0.0663966, 0.689112) bones/35/rotation = Quaternion(0.580803, -0.000892135, -0.0014975, 0.814042) bones/36/rotation = Quaternion(0.682777, 0.00174509, 0.00256596, 0.73062) bones/37/rotation = Quaternion(-0.00426514, 0.736714, 0.0394785, 0.675038) bones/38/position = Vector3(-0.00622951, 0.0926415, -0.0236344) bones/38/rotation = Quaternion(-0.109873, 0.743351, 0.0333507, 0.658973) bones/39/rotation = Quaternion(0.630039, 0.00151959, 0.00237944, 0.776559) bones/40/rotation = Quaternion(0.652643, -0.00308142, -0.00421108, 0.757648) bones/41/rotation = Quaternion(-0.0684174, 0.72411, 0.0332337, 0.685478) bones/42/position = Vector3(-0.00715362, 0.0679857, -0.0481983) bones/42/rotation = Quaternion(-0.120913, 0.799109, 0.0358921, 0.587807) bones/43/rotation = Quaternion(0.498693, -0.0202705, -0.0256953, 0.866161) bones/44/rotation = Quaternion(0.715385, 0.035306, 0.0573145, 0.695481) bones/45/rotation = Quaternion(-0.129059, 0.728936, -0.0250259, 0.67184) bones/46/position = Vector3(-0.0113635, 1.43996, 0.0472612) bones/46/rotation = Quaternion(-0.470567, 0.264803, 0.415772, 0.731833) bones/47/position = Vector3(-0.177371, 1.47902, -0.0106735) bones/47/rotation = Quaternion(-0.0102614, -0.147777, 0.976059, 0.159264) bones/48/position = Vector3(1.88476e-07, 0.143946, 1.02445e-08) bones/48/rotation = Quaternion(-1.69808e-08, 0.0574389, 1.36994e-08, 0.998349) bones/49/position = Vector3(6.5191e-09, 0.143946, -1.95094e-08) bones/49/rotation = Quaternion(0.392952, 0.0574393, 0.0278798, 0.91734) bones/50/position = Vector3(-1.48779e-07, 0.1276, 5.9139e-08) bones/50/rotation = Quaternion(-8.73115e-08, 2.7474e-08, -1.28057e-07, 1) bones/51/position = Vector3(1.9461e-07, 0.127601, 6.06248e-08) bones/51/rotation = Quaternion(-0.00824876, 0.000270832, 0.032867, 0.999426) bones/52/rotation = Quaternion(-0.2563, 0.855859, 0.0299184, -0.448241) bones/53/rotation = Quaternion(0.694912, 0.107145, -0.103549, 0.703488) bones/54/rotation = Quaternion(0.74112, -0.00218237, -0.00265409, 0.671363) bones/55/rotation = Quaternion(-0.325269, 0.890055, 0.295977, 0.119998) bones/56/rotation = Quaternion(0.514882, 0.11415, -0.114483, 0.841879) bones/57/rotation = Quaternion(0.592004, 0.0381346, 0.0906992, 0.799907) bones/59/position = Vector3(0.00316943, 0.0987207, 0.0147917) bones/59/rotation = Quaternion(0.138771, -0.704916, 0.15571, 0.677932) bones/60/rotation = Quaternion(0.579984, 0.0462615, -0.0308755, 0.812727) bones/61/rotation = Quaternion(0.682777, -0.00174718, -0.00256448, 0.73062) bones/62/rotation = Quaternion(-0.00426532, -0.736714, -0.0394788, 0.675038) bones/63/position = Vector3(0.00622955, 0.0926417, -0.0236344) bones/63/rotation = Quaternion(0.104095, -0.719607, 0.186262, 0.660784) bones/64/rotation = Quaternion(0.670693, 0.0163391, -0.0185663, 0.741323) bones/65/rotation = Quaternion(0.692499, 0.00330364, 0.00403917, 0.7214) bones/66/rotation = Quaternion(-0.0684178, -0.72411, -0.0332339, 0.685477) bones/67/position = Vector3(0.00715371, 0.0679859, -0.0481984) bones/67/rotation = Quaternion(0.108364, -0.768224, 0.166291, 0.608635) bones/68/rotation = Quaternion(0.629954, 0.0295149, 0.0177509, 0.775869) bones/69/rotation = Quaternion(0.816678, -0.0439534, -0.0509861, 0.573155) bones/70/rotation = Quaternion(-0.12906, -0.728937, 0.0250258, 0.67184) bones/71/position = Vector3(0.127191, 1.36091, -0.0244423) bones/71/rotation = Quaternion(2.03166e-08, 0.598303, 0.80127, -4.58502e-08) bones/72/position = Vector3(-0.113426, 1.36091, -0.0244423) bones/72/rotation = Quaternion(2.03167e-08, 0.598303, 0.80127, -4.58501e-08) [node name="RightHandBone" parent="RigPivot/Rig" index="2"] transform = Transform3D(-0.962344, -0.270799, -0.0237168, 0.221117, -0.830557, 0.511158, -0.158119, 0.486665, 0.859159, -0.351187, 1.01269, 0.0302155) [node name="LeftHandBone" parent="RigPivot/Rig" index="3"] transform = Transform3D(-0.970555, 0.238961, 0.0303579, -0.208634, -0.896912, 0.389898, 0.120399, 0.372084, 0.920357, 0.348243, 0.995264, -0.00716963) [node name="RayAttachment" type="BoneAttachment3D" parent="RigPivot/Rig"] transform = Transform3D(-0.962344, -0.270799, -0.0237168, 0.221117, -0.830557, 0.511158, -0.158119, 0.486665, 0.859159, -0.351187, 1.01269, 0.0302155) bone_name = "DEF-hand.R" bone_idx = 51 use_external_skeleton = true external_skeleton = NodePath("../CharacterRig/GameRig/Skeleton3D") [node name="AttackCast" type="RayCast3D" parent="RigPivot/Rig/RayAttachment"] unique_name_in_owner = true transform = Transform3D(0.16656, 0.0770401, -0.983017, -0.982939, 0.0918653, -0.159347, 0.078029, 0.992787, 0.0910268, -0.0211409, 0.0798348, 0.00721136) target_position = Vector3(0, 1, 0) collision_mask = 8 script = ExtResource("4_cx3ie") [node name="AreaAttack" parent="RigPivot" instance=ExtResource("6_wmokw")] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1) collision_mask = 8 [node name="Dash" parent="RigPivot" node_paths=PackedStringArray("player") instance=ExtResource("7_yvk1n")] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.191783, 0) player = NodePath("../..") [node name="UserInterface" parent="." node_paths=PackedStringArray("player") instance=ExtResource("9_wdvff")] player = NodePath("..") [node name="Inventory" parent="UserInterface" index="1" node_paths=PackedStringArray("player")] player = NodePath("../..") [connection signal="defeat" from="HealthComponent" to="." method="_on_health_component_defeat"] [connection signal="health_changed" from="HealthComponent" to="UserInterface" method="update_health"] [connection signal="heavy_attack" from="RigPivot/Rig" to="." method="_on_rig_heavy_attack"] [editable path="RigPivot/Rig"] [editable path="RigPivot/Rig/CharacterRig"] [editable path="UserInterface"]