Add a proper server logic without lobby

This commit is contained in:
2025-01-28 23:54:14 +01:00
parent 9b1ab02b94
commit 3e6eab08fd
9 changed files with 327 additions and 20 deletions

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=73 format=4 uid="uid://dddu0t2sdcy8h"]
[gd_scene load_steps=76 format=4 uid="uid://dddu0t2sdcy8h"]
[ext_resource type="Script" path="res://scenes/maps/base/map_loader.gd" id="1_innhj"]
[ext_resource type="Script" path="res://scenes/maps/base/spawn_controller.gd" id="2_1ss1b"]
@@ -743,6 +743,23 @@ shadow_mesh = SubResource("ArrayMesh_nywwq")
[sub_resource type="ConcavePolygonShape3D" id="ConcavePolygonShape3D_ssowb"]
data = PackedVector3Array(-50, -50, 50, -50, 50, 50, 50, 50, 50, -50, -50, 50, 50, 50, 50, 50, -50, 50, -50, 50, 50, -50, 50, -50, 50, 50, -50, -50, 50, 50, 50, 50, -50, 50, 50, 50, -50, 50, -50, -50, -50, -50, 50, -50, -50, -50, 50, -50, 50, -50, -50, 50, 50, -50, -50, -50, -50, -50, -50, 50, 50, -50, 50, -50, -50, -50, 50, -50, 50, 50, -50, -50, 50, -50, 50, 50, 50, 50, 50, 50, -50, 50, -50, 50, 50, 50, -50, 50, -50, -50, -50, -50, -50, -50, 50, -50, -50, 50, 50, -50, -50, -50, -50, 50, 50, -50, -50, 50)
[sub_resource type="PhysicalSkyMaterial" id="PhysicalSkyMaterial_m15vo"]
[sub_resource type="Sky" id="Sky_8ov8p"]
sky_material = SubResource("PhysicalSkyMaterial_m15vo")
process_mode = 3
[sub_resource type="Environment" id="Environment_3ha0j"]
background_mode = 2
sky = SubResource("Sky_8ov8p")
ambient_light_source = 3
ambient_light_color = Color(1, 1, 1, 1)
reflected_light_source = 2
glow_enabled = true
volumetric_fog_enabled = true
volumetric_fog_density = 0.4
volumetric_fog_albedo = Color(0.574998, 0.574998, 0.574998, 1)
[node name="Map" type="Node3D"]
script = ExtResource("1_innhj")
@@ -935,6 +952,9 @@ shape = SubResource("ConcavePolygonShape3D_ssowb")
[node name="MainLight" type="DirectionalLight3D" parent="Light"]
transform = Transform3D(-0.080856, -0.707107, 0.702469, -0.0808559, 0.707107, 0.702469, -0.993441, 1.60778e-07, -0.114348, 79.2354, 89.2354, -3.02637e-06)
light_energy = 2.029
light_indirect_energy = 3.457
light_volumetric_fog_energy = 1.64
[node name="SpawnLocations" type="Node3D" parent="."]
script = ExtResource("2_1ss1b")
@@ -948,3 +968,6 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.234959, 25.2818, 2.12756)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 29.4253, 15.2112, 4.25512)
[node name="Red" type="Node3D" parent="SpawnLocations"]
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource("Environment_3ha0j")