despawn runner or chaser on disconnect

This commit is contained in:
2025-02-21 17:59:23 +09:00
parent 591225996d
commit ca63d4594c
15 changed files with 85 additions and 97 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ height = 1.8
[sub_resource type="SphereShape3D" id="SphereShape3D_wsx1k"]
[node name="Runner" type="CharacterBody3D" node_paths=PackedStringArray("state_machine")]
[node name="Chaser" type="CharacterBody3D" node_paths=PackedStringArray("state_machine")]
script = ExtResource("1_hjhpa")
state_machine = NodePath("StateMachine")
+2 -2
View File
@@ -143,12 +143,12 @@ mesh = SubResource("BoxMesh_lm401")
[node name="FirstFloorLight" type="OmniLight3D" parent="Lights"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4, 0)
light_energy = 0.5
shadow_enabled = true
omni_range = 40.0
omni_attenuation = 1.5
[node name="SecondFloorLight" type="OmniLight3D" parent="Lights"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 9, 0)
light_energy = 0.5
shadow_enabled = true
omni_range = 40.0
omni_attenuation = 1.5
+5
View File
@@ -10,9 +10,14 @@ background_mode = 1
ambient_light_source = 2
ambient_light_color = Color(1, 1, 1, 1)
ambient_light_energy = 0.01
tonemap_mode = 3
sdfgi_read_sky_light = false
glow_enabled = true
glow_normalized = true
volumetric_fog_enabled = true
volumetric_fog_albedo = Color(0.381703, 0.381703, 0.381703, 1)
volumetric_fog_emission = Color(0.314009, 2.89988e-06, 1.52815e-06, 1)
volumetric_fog_emission_energy = 0.25
[sub_resource type="WorldBoundaryShape3D" id="WorldBoundaryShape3D_1l61b"]
+11 -5
View File
@@ -15,18 +15,24 @@ properties/0/spawn = true
properties/0/replication_mode = 2
properties/1/path = NodePath(".:server_position")
properties/1/spawn = true
properties/1/replication_mode = 2
properties/1/replication_mode = 1
properties/2/path = NodePath(".:server_rotation")
properties/2/spawn = true
properties/2/replication_mode = 2
properties/2/replication_mode = 1
[sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_1agtp"]
properties/0/path = NodePath("Input:direction")
properties/0/spawn = true
properties/0/replication_mode = 2
properties/1/path = NodePath("Input:walking")
properties/0/replication_mode = 1
properties/1/path = NodePath("Input:walk")
properties/1/spawn = true
properties/1/replication_mode = 2
properties/1/replication_mode = 1
properties/2/path = NodePath("Input:primary_interact")
properties/2/spawn = true
properties/2/replication_mode = 1
properties/3/path = NodePath("Input:secondary_interact")
properties/3/spawn = true
properties/3/replication_mode = 1
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_j6tb3"]
radius = 0.3