Files
frog/scenes/client.tscn
T
E250429F 3e857fa9f3 credit
2026-09-17 23:19:43 +02:00

171 lines
8.8 KiB
Plaintext

[gd_scene format=3 uid="uid://dkl8xiwoeqj08"]
[ext_resource type="Script" uid="uid://biax3djgh5pyc" path="res://scripts/client.gd" id="1_r26j7"]
[ext_resource type="PackedScene" uid="uid://ben6bv5gilclx" path="res://assets/blender/character.glb" id="2_r26j7"]
[ext_resource type="Shader" uid="uid://cnuead630a8a6" path="res://assets/shader/skin_chooser.gdshader" id="3_r26j7"]
[ext_resource type="Texture2DArray" uid="uid://qpcfjg7ajf8u" path="res://assets/img/textures/faces/faces.tres" id="4_t0ykn"]
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_ka232"]
radius = 0.5551758
height = 3.8041992
[sub_resource type="ShaderMaterial" id="ShaderMaterial_t0ykn"]
render_priority = 0
shader = ExtResource("3_r26j7")
shader_parameter/skins = ExtResource("4_t0ykn")
[sub_resource type="ViewportTexture" id="ViewportTexture_ka232"]
viewport_path = NodePath("Sprite3D/SubViewport")
[sub_resource type="BoxShape3D" id="BoxShape3D_ka232"]
size = Vector3(3.0332031, 4.130371, 6.7510376)
[sub_resource type="ViewportTexture" id="ViewportTexture_r26j7"]
viewport_path = NodePath("Sprite3DE/SubViewport")
[sub_resource type="BoxShape3D" id="BoxShape3D_8cky5"]
size = Vector3(3.0283203, 4.118286, 6.7390137)
[node name="client" type="CharacterBody3D" unique_id=1499167018]
transform = Transform3D(0.8, 0, 0, 0, 0.8, 0, 0, 0, 0.8, 0, 0, 0)
script = ExtResource("1_r26j7")
[node name="CollisionShape3D" type="CollisionShape3D" parent="." unique_id=1826042797]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.9161952, 0)
shape = SubResource("CapsuleShape3D_ka232")
[node name="character" parent="." unique_id=431323508 instance=ExtResource("2_r26j7")]
transform = Transform3D(-1, 0, -8.742278e-08, 0, 1, 0, 8.742278e-08, 0, -1, 0, 0, 0)
[node name="Skeleton3D" parent="character/Root" parent_id_path=PackedInt32Array(431323508, 235057639) index="0" unique_id=2004346143]
bones/0/position = Vector3(0.30285504, 0.19320479, -0.14881)
bones/0/rotation = Quaternion(0.7071068, 5.7818575e-08, -0.7071068, -1.7506823e-08)
bones/1/rotation = Quaternion(-0.50750303, 0.5082179, -0.49191687, -0.49211094)
bones/2/rotation = Quaternion(0.01571679, -0.0020774016, 0.99462503, -0.10232161)
bones/3/rotation = Quaternion(0.9461286, -0.021871006, 0.07550294, -0.3141045)
bones/7/rotation = Quaternion(0.49999997, 0.50000006, -0.5, 0.49999997)
bones/11/position = Vector3(-0.6179577, -0.5867008, 0.025887094)
bones/11/rotation = Quaternion(0.7071068, 4.1310471e-07, -0.7071068, 2.1367017e-09)
bones/15/position = Vector3(-0.3023726, 0.1932048, -0.14881)
bones/15/rotation = Quaternion(0.7071068, 5.7795454e-08, -0.7071068, -1.7497571e-08)
bones/16/rotation = Quaternion(-0.50767356, 0.5078903, -0.49174002, -0.4924498)
bones/17/rotation = Quaternion(0.015652154, 0.0011499289, 0.9946261, 0.102335915)
bones/18/rotation = Quaternion(0.948112, 0.011445162, -0.04409267, -0.31465614)
bones/22/rotation = Quaternion(0.5, 0.5, -0.49999997, 0.50000006)
bones/26/position = Vector3(-0.61795783, -0.5867008, -0.029198151)
bones/26/rotation = Quaternion(0.7071068, 6.633757e-07, -0.7071068, -1.2299172e-07)
bones/30/position = Vector3(0.12506424, 1.516867, 0.0026325695)
bones/30/rotation = Quaternion(-0.13201123, 0.0382027, 0.98971665, -0.03968083)
bones/31/position = Vector3(0.00046459844, 0.32195136, -4.720135e-08)
bones/31/rotation = Quaternion(9.337571e-05, -1.3143746e-07, 0.99999905, 0.0014434524)
bones/32/rotation = Quaternion(-0.11108282, 0.00494363, -0.05375013, 0.9923443)
bones/33/rotation = Quaternion(0.011894986, 1.6188353e-09, 5.7361044e-13, 0.99992925)
bones/34/rotation = Quaternion(0.049166173, -1.16289e-09, -4.309804e-11, 0.9987906)
bones/35/rotation = Quaternion(0.17870703, -0.009969545, -0.014004092, 0.9837522)
bones/36/rotation = Quaternion(-0.16755466, 0.019765962, 0.0013515824, 0.9856637)
bones/40/rotation = Quaternion(0.5400856, 0.388822, 0.632417, -0.39645138)
bones/41/rotation = Quaternion(-0.38247386, 0.615932, -0.31531706, 0.61230445)
bones/42/rotation = Quaternion(0.2118748, 0.008711082, -0.020744847, 0.9770378)
bones/43/rotation = Quaternion(0.087827355, 0.82385904, -0.031761564, 0.5590473)
bones/44/rotation = Quaternion(0.1383001, -0.078749195, -0.018940188, 0.9870729)
bones/45/rotation = Quaternion(0.1664572, 0.06614296, -0.041648168, 0.98294586)
bones/46/rotation = Quaternion(0.25281447, -0.031171605, -0.046276893, 0.96590465)
bones/47/position = Vector3(9.370156e-08, 0.13049893, 2.8120754e-05)
bones/48/position = Vector3(9.0221825e-08, 0.13049889, 2.828832e-05)
bones/50/rotation = Quaternion(-0.0015789904, 0.8138975, 0.16129076, 0.55817)
bones/51/rotation = Quaternion(0.329318, -0.01569343, 0.04876892, 0.9428282)
bones/55/rotation = Quaternion(0.6589884, -0.5560123, 0.3872317, 0.326552)
bones/56/rotation = Quaternion(0.20651984, 0.8324116, 0.51411694, -0.011154903)
bones/57/rotation = Quaternion(0.03111567, -0.0133721335, 0.24481033, 0.9689793)
bones/58/rotation = Quaternion(-0.013150448, -0.16411309, 0.0111621125, 0.98629075)
bones/59/rotation = Quaternion(-0.21893147, -0.07719913, 0.014340837, 0.9725758)
bones/60/rotation = Quaternion(-0.11421786, 0.06669786, 0.012202773, 0.9911392)
bones/61/rotation = Quaternion(-0.23302835, -0.030309526, 0.013288561, 0.9719067)
bones/62/position = Vector3(7.265673e-08, 0.13049936, 1.229213e-05)
bones/63/position = Vector3(1.4435512e-08, 0.13049886, 1.2719094e-05)
bones/65/rotation = Quaternion(-0.12253983, 0.8854742, -0.15755568, -0.4196377)
bones/66/rotation = Quaternion(-0.3526958, -0.00295117, 0.2031368, 0.91341805)
bones/70/rotation = Quaternion(0.99165314, -0.08392846, -0.041765872, 0.08851978)
bones/70/scale = Vector3(0.99999565, 0.99999964, 0.9999994)
bones/71/rotation = Quaternion(0.28450325, -0.04875962, 0.04196792, 0.9565141)
bones/71/scale = Vector3(0.9999999, 0.9999999, 0.9999998)
bones/72/rotation = Quaternion(-0.563389, -0.16344607, -0.2195347, 0.77954006)
bones/72/scale = Vector3(1, 1.0000001, 0.9999999)
bones/73/rotation = Quaternion(-0.019817414, 0.9522868, -0.29825535, 0.061652247)
bones/77/rotation = Quaternion(0.97535646, -0.12596358, 0.059539057, 0.1710796)
bones/78/rotation = Quaternion(0.37384546, -0.057357263, -0.04784607, 0.92447853)
bones/79/rotation = Quaternion(-0.73124987, 0.05387121, 0.014398671, 0.67982674)
bones/80/rotation = Quaternion(0.028260527, 0.95394105, -0.29757455, -0.025441805)
[node name="characterMedium" parent="character/Root/Skeleton3D" index="0" unique_id=769221832]
surface_material_override/0 = SubResource("ShaderMaterial_t0ykn")
[node name="Sprite3D" type="Sprite3D" parent="." unique_id=1464118033]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.9459236, 3.222941, 0.1897316)
billboard = 1
texture = SubResource("ViewportTexture_ka232")
[node name="SubViewport" type="SubViewport" parent="Sprite3D" unique_id=748191708]
transparent_bg = true
size = Vector2i(700, 300)
[node name="RichTextLabel" type="RichTextLabel" parent="Sprite3D/SubViewport" unique_id=1321935142]
offset_right = 40.0
offset_bottom = 40.0
theme_override_font_sizes/normal_font_size = 40
bbcode_enabled = true
text = "yo comment"
fit_content = true
autowrap_mode = 0
[node name="NavigationAgent3D" type="NavigationAgent3D" parent="." unique_id=1094148667]
path_height_offset = 0.5
[node name="Timer" type="Timer" parent="." unique_id=893835033]
[node name="StaticBody3D" type="StaticBody3D" parent="." unique_id=373760399 groups=["client"]]
collision_layer = 2
collision_mask = 2
[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D" unique_id=220667643]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.044213, -2.4672549)
shape = SubResource("BoxShape3D_ka232")
[node name="Sprite3DE" type="Sprite3D" parent="." unique_id=650657634]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.078995824, 3.6393547, -5.129134)
visible = false
billboard = 2
texture = SubResource("ViewportTexture_r26j7")
[node name="SubViewport" type="SubViewport" parent="Sprite3DE" unique_id=1770407613]
transparent_bg = true
[node name="Label" type="Label" parent="Sprite3DE/SubViewport" unique_id=2068139338]
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -26.5
offset_top = -21.0
offset_right = 26.5
offset_bottom = 21.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 4
theme_override_font_sizes/font_size = 30
text = "[ E ]"
[node name="Area3DE" type="Area3D" parent="." unique_id=1612871680]
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3DE" unique_id=571401217]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.0465019, -2.4608154)
shape = SubResource("BoxShape3D_8cky5")
[connection signal="navigation_finished" from="NavigationAgent3D" to="." method="_on_navigation_agent_3d_navigation_finished"]
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
[connection signal="body_entered" from="Area3DE" to="." method="_on_area_3de_body_entered"]
[connection signal="body_exited" from="Area3DE" to="." method="_on_area_3de_body_exited"]
[editable path="character"]