232 lines
13 KiB
Plaintext
232 lines
13 KiB
Plaintext
[gd_scene load_steps=17 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="Script" uid="uid://dn7ggmw2uipln" path="res://src/scripts/characters/interaction_cast.gd" id="8_n7yyv"]
|
|
[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="SceneReplicationConfig" id="SceneReplicationConfig_n7yyv"]
|
|
properties/0/path = NodePath(".:position")
|
|
properties/0/spawn = true
|
|
properties/0/replication_mode = 1
|
|
properties/1/path = NodePath("RigPivot:rotation")
|
|
properties/1/spawn = true
|
|
properties/1/replication_mode = 1
|
|
properties/2/path = NodePath("RigPivot/Rig/AnimationTree:parameters/MoveSpace/blend_position")
|
|
properties/2/spawn = true
|
|
properties/2/replication_mode = 1
|
|
|
|
[sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_yal87"]
|
|
|
|
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_yx56f"]
|
|
|
|
[sub_resource type="SeparationRayShape3D" id="SeparationRayShape3D_swhsd"]
|
|
|
|
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_wdvff"]
|
|
|
|
[node name="Player" type="CharacterBody3D" groups=["Player"]]
|
|
collision_layer = 5
|
|
script = ExtResource("1_swhsd")
|
|
stats = SubResource("Resource_wdvff")
|
|
|
|
[node name="MultiplayerSynchronizer" type="MultiplayerSynchronizer" parent="."]
|
|
replication_config = SubResource("SceneReplicationConfig_n7yyv")
|
|
|
|
[node name="PlayerInput" type="MultiplayerSynchronizer" parent="."]
|
|
replication_config = SubResource("SceneReplicationConfig_yal87")
|
|
|
|
[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.910675, -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.00704413, -0.000272063, 0.00321107, 0.99997)
|
|
bones/3/position = Vector3(-2.01263e-09, 0.202058, -2.51457e-08)
|
|
bones/3/rotation = Quaternion(-0.0885404, -0.000276658, 0.00852481, 0.996036)
|
|
bones/4/position = Vector3(3.02934e-10, 0.0925562, 3.91155e-08)
|
|
bones/4/rotation = Quaternion(0.269911, 1.44047e-08, 9.16755e-08, 0.962885)
|
|
bones/5/rotation = Quaternion(-0.0948564, -2.80691e-14, -2.26155e-08, 0.995491)
|
|
bones/6/rotation = Quaternion(-0.16516, -1.17572e-07, -1.96886e-08, 0.986267)
|
|
bones/7/position = Vector3(-2.98252e-08, 0.910675, -0.0481735)
|
|
bones/7/rotation = Quaternion(-0.0863677, -0.751104, -0.383052, 0.530711)
|
|
bones/8/position = Vector3(-6.19506e-08, 0.910675, -0.0481735)
|
|
bones/8/rotation = Quaternion(-0.0863677, 0.751104, 0.383052, 0.530711)
|
|
bones/9/position = Vector3(0.131144, 0.976879, -0.0351291)
|
|
bones/9/rotation = Quaternion(0.994302, 0.0202187, -0.0312623, 0.0998906)
|
|
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.393701, -0.000694664, 0.000297644, 0.919238)
|
|
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.740256, 0.0118436, 0.0243586, 0.67178)
|
|
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.976879, -0.0351291)
|
|
bones/15/rotation = Quaternion(0.975928, -0.00525603, 0.0276871, 0.216262)
|
|
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.420029, 0.00314826, -0.00145723, 0.907504)
|
|
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.677559, -0.0281353, -0.00148719, 0.734928)
|
|
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.44019, 0.047349)
|
|
bones/21/rotation = Quaternion(-0.46971, -0.267556, -0.41734, 0.730489)
|
|
bones/22/position = Vector3(0.191561, 1.47923, -0.00940303)
|
|
bones/22/rotation = Quaternion(0.0202643, -0.164169, 0.975506, -0.145005)
|
|
bones/23/position = Vector3(-5.41331e-09, 0.143946, -2.98023e-08)
|
|
bones/23/rotation = Quaternion(7.48446e-08, -0.0400679, 5.54183e-08, 0.999197)
|
|
bones/24/position = Vector3(-6.33301e-08, 0.143946, 4.3873e-08)
|
|
bones/24/rotation = Quaternion(0.353683, -0.0400797, -0.0220808, 0.934245)
|
|
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.44019, 0.047349)
|
|
bones/46/rotation = Quaternion(-0.469404, 0.266039, 0.416933, 0.731471)
|
|
bones/47/position = Vector3(-0.177613, 1.47939, -0.00982476)
|
|
bones/47/rotation = Quaternion(-0.00840254, -0.14808, 0.976077, 0.158982)
|
|
bones/48/position = Vector3(1.88476e-07, 0.143946, 1.02445e-08)
|
|
bones/48/rotation = Quaternion(-1.14487e-07, 0.0586796, -1.06087e-07, 0.998277)
|
|
bones/49/position = Vector3(6.5191e-09, 0.143946, -1.95094e-08)
|
|
bones/49/rotation = Quaternion(0.394639, 0.0586801, 0.0278018, 0.916539)
|
|
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.36142, -0.0243782)
|
|
bones/71/rotation = Quaternion(2.03347e-08, 0.598037, 0.801468, -4.58396e-08)
|
|
bones/72/position = Vector3(-0.113426, 1.36142, -0.0243782)
|
|
bones/72/rotation = Quaternion(2.03348e-08, 0.598037, 0.801468, -4.58395e-08)
|
|
|
|
[node name="RightHandBone" parent="RigPivot/Rig" index="2"]
|
|
transform = Transform3D(-0.962344, -0.270799, -0.0237172, 0.220499, -0.828653, 0.514504, -0.15898, 0.4899, 0.857159, -0.351429, 1.01356, 0.031865)
|
|
|
|
[node name="LeftHandBone" parent="RigPivot/Rig" index="3"]
|
|
transform = Transform3D(-0.970465, 0.23928, 0.030714, -0.208375, -0.895578, 0.39309, 0.121565, 0.375081, 0.918986, 0.348415, 0.996086, -0.00597102)
|
|
|
|
[node name="RayAttachment" type="BoneAttachment3D" parent="RigPivot/Rig"]
|
|
transform = Transform3D(-0.962344, -0.270799, -0.0237172, 0.220499, -0.828653, 0.514504, -0.15898, 0.4899, 0.857159, -0.351429, 1.01356, 0.031865)
|
|
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="InteractionCast" type="ShapeCast3D" parent="RigPivot" node_paths=PackedStringArray("ui", "player")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
|
shape = SubResource("CapsuleShape3D_wdvff")
|
|
target_position = Vector3(0, 0, 1)
|
|
collision_mask = 2
|
|
script = ExtResource("8_n7yyv")
|
|
ui = NodePath("../../UserInterface")
|
|
player = NodePath("../..")
|
|
|
|
[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"]
|