[gd_scene load_steps=6 format=3 uid="uid://4hmftsrl305n"] [ext_resource type="Script" uid="uid://dtlssj0xohnpc" path="res://entities/player.gd" id="1_merdl"] [sub_resource type="CapsuleShape3D" id="CapsuleShape3D_u3f3p"] radius = 0.4 height = 1.8 [sub_resource type="CapsuleMesh" id="CapsuleMesh_merdl"] radius = 0.4 height = 1.8 [sub_resource type="CylinderShape3D" id="CylinderShape3D_merdl"] height = 0.2 radius = 0.05 [sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_merdl"] properties/0/path = NodePath(".:position") properties/0/spawn = true properties/0/replication_mode = 1 properties/1/path = NodePath(".:rotation") properties/1/spawn = true properties/1/replication_mode = 1 properties/2/path = NodePath("Syringe:position") properties/2/spawn = true properties/2/replication_mode = 1 properties/3/path = NodePath(".:visible") properties/3/spawn = true properties/3/replication_mode = 1 properties/4/path = NodePath(".:health") properties/4/spawn = true properties/4/replication_mode = 1 [node name="Player" type="CharacterBody3D"] script = ExtResource("1_merdl") [node name="Collision" type="CollisionShape3D" parent="."] shape = SubResource("CapsuleShape3D_u3f3p") [node name="Mesh" type="MeshInstance3D" parent="."] mesh = SubResource("CapsuleMesh_merdl") [node name="Syringe" type="CSGCylinder3D" parent="."] transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0.4, 0, -0.3) visible = false radius = 0.05 height = 1.0 [node name="SyringeNeedle" type="Area3D" parent="Syringe"] [node name="Collision" type="CollisionShape3D" parent="Syringe/SyringeNeedle"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.4, 0) shape = SubResource("CylinderShape3D_merdl") [node name="Bag" type="CSGCylinder3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0.8) visible = false radius = 0.4 height = 1.0 [node name="Captured" type="CSGSphere3D" parent="Bag"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0) visible = false radius = 0.3 [node name="ViewY" type="Node3D" parent="."] [node name="ViewX" type="Node3D" parent="ViewY"] transform = Transform3D(1, 0, 0, 0, 0.866025, 0.5, 0, -0.5, 0.866025, 0, 0.5, 0) [node name="View" type="Camera3D" parent="ViewY/ViewX"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 4) size = 5.0 [node name="MultiplayerSynchronizer" type="MultiplayerSynchronizer" parent="."] replication_config = SubResource("SceneReplicationConfig_merdl") [node name="ReleaseTimer" type="Timer" parent="."] wait_time = 30.0 one_shot = true [node name="HUD" type="Control" parent="."] visible = false layout_mode = 3 anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 mouse_filter = 1 [node name="Health" type="Label" parent="HUD"] layout_mode = 1 offset_right = 88.0 offset_bottom = 23.0 text = "Health: 100" [connection signal="body_entered" from="Syringe/SyringeNeedle" to="." method="_on_stab"] [connection signal="timeout" from="ReleaseTimer" to="." method="_on_release"]