hnnngghh open door
This commit is contained in:
@@ -1,13 +1,12 @@
|
|||||||
[gd_scene load_steps=6 format=3 uid="uid://by67pn7fdsg1m"]
|
[gd_scene load_steps=5 format=3 uid="uid://by67pn7fdsg1m"]
|
||||||
|
|
||||||
[ext_resource type="Script" uid="uid://14e8mu48ed4" path="res://src/map/Map.cs" id="1_bw70o"]
|
[ext_resource type="Script" uid="uid://14e8mu48ed4" path="res://src/map/Map.cs" id="1_bw70o"]
|
||||||
[ext_resource type="PackedScene" uid="uid://dvnc26rebk6o0" path="res://src/map/overworld/Overworld.tscn" id="2_s7lwc"]
|
|
||||||
[ext_resource type="PackedScene" uid="uid://dl6h1djc27ddl" path="res://src/map/dungeon/floors/Floor00.tscn" id="3_s7lwc"]
|
[ext_resource type="PackedScene" uid="uid://dl6h1djc27ddl" path="res://src/map/dungeon/floors/Floor00.tscn" id="3_s7lwc"]
|
||||||
[ext_resource type="PackedScene" uid="uid://dmiqwmivkjgmq" path="res://src/map/dungeon/floors/Floor02.tscn" id="4_0qcd2"]
|
[ext_resource type="PackedScene" uid="uid://dmiqwmivkjgmq" path="res://src/map/dungeon/floors/Floor02.tscn" id="4_0qcd2"]
|
||||||
[ext_resource type="PackedScene" uid="uid://bc1sp6xwe0j65" path="res://src/map/dungeon/floors/Floor01.tscn" id="4_1ny7u"]
|
[ext_resource type="PackedScene" uid="uid://bc1sp6xwe0j65" path="res://src/map/dungeon/floors/Floor01.tscn" id="4_1ny7u"]
|
||||||
|
|
||||||
[node name="Map" type="Node3D"]
|
[node name="Map" type="Node3D"]
|
||||||
script = ExtResource("1_bw70o")
|
script = ExtResource("1_bw70o")
|
||||||
_floors = Array[PackedScene]([ExtResource("2_s7lwc"), ExtResource("3_s7lwc"), ExtResource("4_1ny7u"), ExtResource("4_0qcd2")])
|
_floors = Array[PackedScene]([ExtResource("3_s7lwc"), ExtResource("4_1ny7u"), ExtResource("4_0qcd2")])
|
||||||
|
|
||||||
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
||||||
|
|||||||
@@ -24,41 +24,40 @@ public partial class DungeonFloor : Node3D, IDungeonFloor
|
|||||||
|
|
||||||
public void InitializeDungeon()
|
public void InitializeDungeon()
|
||||||
{
|
{
|
||||||
Rooms = [];
|
Rooms = [];
|
||||||
Rooms = FindAllDungeonRooms([.. GetChildren()], Rooms);
|
Rooms = FindAllDungeonRooms([.. GetChildren()], Rooms);
|
||||||
_playerSpawnPoint = RandomizePlayerSpawnPoint();
|
_playerSpawnPoint = RandomizePlayerSpawnPoint();
|
||||||
var monsterRooms = Rooms.OfType<MonsterRoom>();
|
var monsterRooms = Rooms.OfType<MonsterRoom>();
|
||||||
foreach (var room in monsterRooms)
|
foreach (var room in monsterRooms)
|
||||||
room.SpawnEnemies(EnemyDatabase);
|
room.SpawnEnemies(EnemyDatabase);
|
||||||
DungeonGenerator.EmitSignal("done_generating");
|
DungeonGenerator.EmitSignal("done_generating");
|
||||||
}
|
}
|
||||||
|
|
||||||
public Transform3D GetPlayerSpawnPoint() => new Transform3D(_playerSpawnPoint.Basis, new Vector3(_playerSpawnPoint.Origin.X, -1.75f, _playerSpawnPoint.Origin.Z));
|
public Transform3D GetPlayerSpawnPoint() => new Transform3D(_playerSpawnPoint.Basis, new Vector3(_playerSpawnPoint.Origin.X, -1.75f, _playerSpawnPoint.Origin.Z));
|
||||||
|
|
||||||
private Transform3D RandomizePlayerSpawnPoint()
|
private Transform3D RandomizePlayerSpawnPoint()
|
||||||
{
|
{
|
||||||
var randomSpawnLocations = Rooms
|
var randomSpawnLocations = Rooms
|
||||||
.OfType<MonsterRoom>()
|
.OfType<MonsterRoom>()
|
||||||
.Select(x => x.PlayerSpawn);
|
.Select(x => x.PlayerSpawn);
|
||||||
var godotCollection = new Godot.Collections.Array<Marker3D>(randomSpawnLocations);
|
var godotCollection = new Godot.Collections.Array<Marker3D>(randomSpawnLocations);
|
||||||
var result = godotCollection.PickRandom();
|
var result = godotCollection.PickRandom();
|
||||||
return result.GlobalTransform;
|
return result.GlobalTransform;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static ImmutableList<IDungeonRoom> FindAllDungeonRooms(List<Node> nodesToSearch, ImmutableList<IDungeonRoom> roomsFound)
|
private static ImmutableList<IDungeonRoom> FindAllDungeonRooms(List<Node> nodesToSearch, ImmutableList<IDungeonRoom> roomsFound)
|
||||||
{
|
{
|
||||||
if (nodesToSearch.Count == 0)
|
if (nodesToSearch.Count == 0)
|
||||||
return roomsFound;
|
return roomsFound;
|
||||||
|
|
||||||
foreach (var node in nodesToSearch)
|
foreach (var node in nodesToSearch)
|
||||||
{
|
{
|
||||||
if (node is IDungeonRoom dungeonRoom)
|
if (node is IDungeonRoom dungeonRoom)
|
||||||
roomsFound = roomsFound.Add(dungeonRoom);
|
roomsFound = roomsFound.Add(dungeonRoom);
|
||||||
|
if (node.HasSignal("dungeon_done_generating"))
|
||||||
|
node.EmitSignal("dungeon_done_generating");
|
||||||
|
}
|
||||||
|
|
||||||
if (node.HasSignal("dungeon_done_generating"))
|
return FindAllDungeonRooms(nodesToSearch.SelectMany(x => x.GetChildren()).ToList(), roomsFound);
|
||||||
node.EmitSignal("dungeon_done_generating");
|
|
||||||
}
|
|
||||||
|
|
||||||
return FindAllDungeonRooms(nodesToSearch.SelectMany(x => x.GetChildren()).ToList(), roomsFound);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,11 +7,11 @@ func _ready():
|
|||||||
dungeon_done_generating.connect(remove_unused_doors_and_walls)
|
dungeon_done_generating.connect(remove_unused_doors_and_walls)
|
||||||
|
|
||||||
func remove_unused_doors_and_walls():
|
func remove_unused_doors_and_walls():
|
||||||
if get_door_by_node($"Doors/DOOR?_F_CUT").get_room_leads_to() != null:
|
if get_door_by_node($"Doors/DOOR?").get_room_leads_to() != null:
|
||||||
$"Doors/DOOR?_F_CUT".queue_free()
|
$"Doors/DOOR?".queue_free()
|
||||||
if get_door_by_node($"Doors/DOOR?_R_CUT").get_room_leads_to() != null:
|
if get_door_by_node($"Doors/DOOR?2").get_room_leads_to() != null:
|
||||||
$"Doors/DOOR?_R_CUT".queue_free()
|
$"Doors/DOOR?2".queue_free()
|
||||||
if get_door_by_node($"Doors/DOOR?_B_CUT").get_room_leads_to() != null:
|
if get_door_by_node($"Doors/DOOR?3").get_room_leads_to() != null:
|
||||||
$"Doors/DOOR?_B_CUT".queue_free()
|
$"Doors/DOOR?3".queue_free()
|
||||||
if get_door_by_node($"Doors/DOOR?_L_CUT").get_room_leads_to() != null:
|
if get_door_by_node($"Doors/DOOR?4").get_room_leads_to() != null:
|
||||||
$"Doors/DOOR?_L_CUT".queue_free()
|
$"Doors/DOOR?4".queue_free()
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -1,4 +1,4 @@
|
|||||||
[gd_scene load_steps=46 format=4 uid="uid://bn4gslp2gk8ds"]
|
[gd_scene load_steps=48 format=4 uid="uid://bn4gslp2gk8ds"]
|
||||||
|
|
||||||
[ext_resource type="Script" uid="uid://fk3jis6rsipv" path="res://src/map/dungeon/code/corridor.gd" id="1_lepkf"]
|
[ext_resource type="Script" uid="uid://fk3jis6rsipv" path="res://src/map/dungeon/code/corridor.gd" id="1_lepkf"]
|
||||||
[ext_resource type="Texture2D" uid="uid://crsw35eypj6ry" path="res://src/map/dungeon/models/Set A/18. Corridor A/18_A1_CORRIDOR_A_WALL TILE 1.jpg" id="2_jmyyj"]
|
[ext_resource type="Texture2D" uid="uid://crsw35eypj6ry" path="res://src/map/dungeon/models/Set A/18. Corridor A/18_A1_CORRIDOR_A_WALL TILE 1.jpg" id="2_jmyyj"]
|
||||||
@@ -9,6 +9,7 @@
|
|||||||
[ext_resource type="Texture2D" uid="uid://db1toc6kj5uq8" path="res://src/map/dungeon/models/Set A/18. Corridor A/18_A1_CORRIDOR_A_darkbrick.png" id="6_liffc"]
|
[ext_resource type="Texture2D" uid="uid://db1toc6kj5uq8" path="res://src/map/dungeon/models/Set A/18. Corridor A/18_A1_CORRIDOR_A_darkbrick.png" id="6_liffc"]
|
||||||
[ext_resource type="Texture2D" uid="uid://3f43egfmyocx" path="res://src/map/dungeon/models/Set A/18. Corridor A/18_A1_CORRIDOR_A_concrete_0003_color_1k.png" id="7_3kayh"]
|
[ext_resource type="Texture2D" uid="uid://3f43egfmyocx" path="res://src/map/dungeon/models/Set A/18. Corridor A/18_A1_CORRIDOR_A_concrete_0003_color_1k.png" id="7_3kayh"]
|
||||||
[ext_resource type="Material" uid="uid://bsafm3t4drpl" path="res://src/map/dungeon/textures/MinimapTexture.tres" id="9_7a87o"]
|
[ext_resource type="Material" uid="uid://bsafm3t4drpl" path="res://src/map/dungeon/textures/MinimapTexture.tres" id="9_7a87o"]
|
||||||
|
[ext_resource type="Texture2D" uid="uid://bkvegamuqdsdd" path="res://src/map/dungeon/models/Set A/18. Corridor A/CORRIDOR test_FLOOR1.jpg" id="9_adgr5"]
|
||||||
|
|
||||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_jhg27"]
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_jhg27"]
|
||||||
resource_name = "WALL.007"
|
resource_name = "WALL.007"
|
||||||
@@ -447,9 +448,8 @@ radius = 0.1
|
|||||||
[sub_resource type="BoxShape3D" id="BoxShape3D_xywry"]
|
[sub_resource type="BoxShape3D" id="BoxShape3D_xywry"]
|
||||||
size = Vector3(4, 0.557617, 4)
|
size = Vector3(4, 0.557617, 4)
|
||||||
|
|
||||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_2qrwe"]
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_3j8ld"]
|
||||||
transparency = 1
|
transparency = 1
|
||||||
shading_mode = 0
|
|
||||||
albedo_color = Color(1, 1, 1, 0)
|
albedo_color = Color(1, 1, 1, 0)
|
||||||
|
|
||||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_1huxf"]
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_1huxf"]
|
||||||
@@ -457,6 +457,71 @@ resource_name = "BOTTOM TRIM.007"
|
|||||||
shading_mode = 0
|
shading_mode = 0
|
||||||
albedo_texture = ExtResource("5_qnt5r")
|
albedo_texture = ExtResource("5_qnt5r")
|
||||||
|
|
||||||
|
[sub_resource type="ArrayMesh" id="ArrayMesh_ood8f"]
|
||||||
|
_surfaces = [{
|
||||||
|
"aabb": AABB(-0.984553, -23.5008, -0.95724, 2.00022, 24.4466, 1e-05),
|
||||||
|
"format": 34896613377,
|
||||||
|
"index_count": 6,
|
||||||
|
"index_data": PackedByteArray("AAABAAIAAAADAAEA"),
|
||||||
|
"name": "WALL.007",
|
||||||
|
"primitive": 3,
|
||||||
|
"uv_scale": Vector4(0, 0, 0, 0),
|
||||||
|
"vertex_count": 4,
|
||||||
|
"vertex_data": PackedByteArray("AAAAAAAAAAD/////AAAAAP//AAAAAAAAAAD//wAAAAA=")
|
||||||
|
}, {
|
||||||
|
"aabb": AABB(-0.984553, -36.1633, -0.95724, 2.00022, 12.6625, 1e-05),
|
||||||
|
"format": 34896613377,
|
||||||
|
"index_count": 6,
|
||||||
|
"index_data": PackedByteArray("AAABAAIAAAADAAEA"),
|
||||||
|
"name": "BOTTOM TRIM.007",
|
||||||
|
"primitive": 3,
|
||||||
|
"uv_scale": Vector4(0, 0, 0, 0),
|
||||||
|
"vertex_count": 4,
|
||||||
|
"vertex_data": PackedByteArray("AAAAAAAAAAD/////AAAAAP//AAAAAAAAAAD//wAAAAA=")
|
||||||
|
}]
|
||||||
|
blend_shape_mode = 0
|
||||||
|
|
||||||
|
[sub_resource type="ArrayMesh" id="ArrayMesh_ue4n7"]
|
||||||
|
resource_name = "18_A1_CORRIDOR_A_Cube_002"
|
||||||
|
_surfaces = [{
|
||||||
|
"aabb": AABB(-0.984553, -23.5008, -0.95724, 2.00022, 24.4466, 1e-05),
|
||||||
|
"attribute_data": PackedByteArray("AAAAAP////8AAP////8AAA=="),
|
||||||
|
"format": 34896613399,
|
||||||
|
"index_count": 6,
|
||||||
|
"index_data": PackedByteArray("AAABAAIAAAADAAEA"),
|
||||||
|
"material": SubResource("StandardMaterial3D_jhg27"),
|
||||||
|
"name": "WALL.007",
|
||||||
|
"primitive": 3,
|
||||||
|
"uv_scale": Vector4(0, 0, 0, 0),
|
||||||
|
"vertex_count": 4,
|
||||||
|
"vertex_data": PackedByteArray("AAAAAAAA/7//////AAD/v///AAAAAP+/AAD//wAA/7//////////////////////")
|
||||||
|
}, {
|
||||||
|
"aabb": AABB(-0.984553, -36.1633, -0.95724, 2.00022, 12.6625, 1e-05),
|
||||||
|
"attribute_data": PackedByteArray("/3///////3///////3//fw=="),
|
||||||
|
"format": 34896613399,
|
||||||
|
"index_count": 6,
|
||||||
|
"index_data": PackedByteArray("AAABAAIAAAADAAEA"),
|
||||||
|
"material": SubResource("StandardMaterial3D_1huxf"),
|
||||||
|
"name": "BOTTOM TRIM.007",
|
||||||
|
"primitive": 3,
|
||||||
|
"uv_scale": Vector4(2, 2, 0, 0),
|
||||||
|
"vertex_count": 4,
|
||||||
|
"vertex_data": PackedByteArray("AAAAAAAAAID/////AAAAgP//AAAAAACAAAD//wAAAID/f////3////9/////f///")
|
||||||
|
}]
|
||||||
|
blend_shape_mode = 0
|
||||||
|
shadow_mesh = SubResource("ArrayMesh_ood8f")
|
||||||
|
|
||||||
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_0b3sx"]
|
||||||
|
albedo_texture = ExtResource("9_adgr5")
|
||||||
|
|
||||||
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_7a87o"]
|
||||||
|
transparency = 1
|
||||||
|
albedo_color = Color(1, 1, 1, 0)
|
||||||
|
|
||||||
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_adgr5"]
|
||||||
|
transparency = 1
|
||||||
|
albedo_color = Color(1, 1, 1, 0)
|
||||||
|
|
||||||
[sub_resource type="ArrayMesh" id="ArrayMesh_p4f4g"]
|
[sub_resource type="ArrayMesh" id="ArrayMesh_p4f4g"]
|
||||||
_surfaces = [{
|
_surfaces = [{
|
||||||
"aabb": AABB(-0.984553, -23.5008, 1.0428, 2.00022, 24.4466, 1e-05),
|
"aabb": AABB(-0.984553, -23.5008, 1.0428, 2.00022, 24.4466, 1e-05),
|
||||||
@@ -511,10 +576,7 @@ _surfaces = [{
|
|||||||
blend_shape_mode = 0
|
blend_shape_mode = 0
|
||||||
shadow_mesh = SubResource("ArrayMesh_p4f4g")
|
shadow_mesh = SubResource("ArrayMesh_p4f4g")
|
||||||
|
|
||||||
[sub_resource type="BoxShape3D" id="BoxShape3D_gbjb2"]
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_4sxun"]
|
||||||
size = Vector3(4.40063, 4, 0.195191)
|
|
||||||
|
|
||||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_lepkf"]
|
|
||||||
transparency = 1
|
transparency = 1
|
||||||
albedo_color = Color(1, 1, 1, 0)
|
albedo_color = Color(1, 1, 1, 0)
|
||||||
|
|
||||||
@@ -572,7 +634,7 @@ _surfaces = [{
|
|||||||
blend_shape_mode = 0
|
blend_shape_mode = 0
|
||||||
shadow_mesh = SubResource("ArrayMesh_te6g1")
|
shadow_mesh = SubResource("ArrayMesh_te6g1")
|
||||||
|
|
||||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_0m8h3"]
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_hm6c0"]
|
||||||
transparency = 1
|
transparency = 1
|
||||||
albedo_color = Color(1, 1, 1, 0)
|
albedo_color = Color(1, 1, 1, 0)
|
||||||
|
|
||||||
@@ -630,65 +692,6 @@ _surfaces = [{
|
|||||||
blend_shape_mode = 0
|
blend_shape_mode = 0
|
||||||
shadow_mesh = SubResource("ArrayMesh_5chhi")
|
shadow_mesh = SubResource("ArrayMesh_5chhi")
|
||||||
|
|
||||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_4xu2u"]
|
|
||||||
transparency = 1
|
|
||||||
shading_mode = 0
|
|
||||||
albedo_color = Color(1, 1, 1, 0)
|
|
||||||
|
|
||||||
[sub_resource type="ArrayMesh" id="ArrayMesh_ood8f"]
|
|
||||||
_surfaces = [{
|
|
||||||
"aabb": AABB(-0.984553, -23.5008, -0.95724, 2.00022, 24.4466, 1e-05),
|
|
||||||
"format": 34896613377,
|
|
||||||
"index_count": 6,
|
|
||||||
"index_data": PackedByteArray("AAABAAIAAAADAAEA"),
|
|
||||||
"name": "WALL.007",
|
|
||||||
"primitive": 3,
|
|
||||||
"uv_scale": Vector4(0, 0, 0, 0),
|
|
||||||
"vertex_count": 4,
|
|
||||||
"vertex_data": PackedByteArray("AAAAAAAAAAD/////AAAAAP//AAAAAAAAAAD//wAAAAA=")
|
|
||||||
}, {
|
|
||||||
"aabb": AABB(-0.984553, -36.1633, -0.95724, 2.00022, 12.6625, 1e-05),
|
|
||||||
"format": 34896613377,
|
|
||||||
"index_count": 6,
|
|
||||||
"index_data": PackedByteArray("AAABAAIAAAADAAEA"),
|
|
||||||
"name": "BOTTOM TRIM.007",
|
|
||||||
"primitive": 3,
|
|
||||||
"uv_scale": Vector4(0, 0, 0, 0),
|
|
||||||
"vertex_count": 4,
|
|
||||||
"vertex_data": PackedByteArray("AAAAAAAAAAD/////AAAAAP//AAAAAAAAAAD//wAAAAA=")
|
|
||||||
}]
|
|
||||||
blend_shape_mode = 0
|
|
||||||
|
|
||||||
[sub_resource type="ArrayMesh" id="ArrayMesh_ue4n7"]
|
|
||||||
resource_name = "18_A1_CORRIDOR_A_Cube_002"
|
|
||||||
_surfaces = [{
|
|
||||||
"aabb": AABB(-0.984553, -23.5008, -0.95724, 2.00022, 24.4466, 1e-05),
|
|
||||||
"attribute_data": PackedByteArray("AAAAAP////8AAP////8AAA=="),
|
|
||||||
"format": 34896613399,
|
|
||||||
"index_count": 6,
|
|
||||||
"index_data": PackedByteArray("AAABAAIAAAADAAEA"),
|
|
||||||
"material": SubResource("StandardMaterial3D_jhg27"),
|
|
||||||
"name": "WALL.007",
|
|
||||||
"primitive": 3,
|
|
||||||
"uv_scale": Vector4(0, 0, 0, 0),
|
|
||||||
"vertex_count": 4,
|
|
||||||
"vertex_data": PackedByteArray("AAAAAAAA/7//////AAD/v///AAAAAP+/AAD//wAA/7//////////////////////")
|
|
||||||
}, {
|
|
||||||
"aabb": AABB(-0.984553, -36.1633, -0.95724, 2.00022, 12.6625, 1e-05),
|
|
||||||
"attribute_data": PackedByteArray("/3///////3///////3//fw=="),
|
|
||||||
"format": 34896613399,
|
|
||||||
"index_count": 6,
|
|
||||||
"index_data": PackedByteArray("AAABAAIAAAADAAEA"),
|
|
||||||
"material": SubResource("StandardMaterial3D_1huxf"),
|
|
||||||
"name": "BOTTOM TRIM.007",
|
|
||||||
"primitive": 3,
|
|
||||||
"uv_scale": Vector4(2, 2, 0, 0),
|
|
||||||
"vertex_count": 4,
|
|
||||||
"vertex_data": PackedByteArray("AAAAAAAAAID/////AAAAgP//AAAAAACAAAD//wAAAID/f////3////9/////f///")
|
|
||||||
}]
|
|
||||||
blend_shape_mode = 0
|
|
||||||
shadow_mesh = SubResource("ArrayMesh_ood8f")
|
|
||||||
|
|
||||||
[sub_resource type="BoxShape3D" id="BoxShape3D_7uihh"]
|
[sub_resource type="BoxShape3D" id="BoxShape3D_7uihh"]
|
||||||
size = Vector3(4, 4, 4)
|
size = Vector3(4, 4, 4)
|
||||||
|
|
||||||
@@ -699,6 +702,11 @@ size = Vector2(4, 4)
|
|||||||
[node name="Corridor" type="Node3D"]
|
[node name="Corridor" type="Node3D"]
|
||||||
script = ExtResource("1_lepkf")
|
script = ExtResource("1_lepkf")
|
||||||
voxel_scale = Vector3(4, 4, 4)
|
voxel_scale = Vector3(4, 4, 4)
|
||||||
|
is_stair_room = null
|
||||||
|
force_align_with_grid_button = null
|
||||||
|
show_debug_in_editor = null
|
||||||
|
show_debug_in_game = null
|
||||||
|
show_grid_aabb_with_doors = null
|
||||||
|
|
||||||
[node name="Model" type="Node3D" parent="."]
|
[node name="Model" type="Node3D" parent="."]
|
||||||
script = ExtResource("2_xywry")
|
script = ExtResource("2_xywry")
|
||||||
@@ -760,79 +768,73 @@ shape = SubResource("BoxShape3D_xywry")
|
|||||||
|
|
||||||
[node name="Doors" type="Node3D" parent="."]
|
[node name="Doors" type="Node3D" parent="."]
|
||||||
|
|
||||||
[node name="DOOR?_F_CUT" type="CSGBox3D" parent="Doors"]
|
[node name="DOOR?" type="CSGBox3D" parent="Doors"]
|
||||||
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, -0.0339368, -0.095025, 1.87165)
|
transform = Transform3D(-4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0, 1, 0.0498385, 0.0586318, -2.03732)
|
||||||
use_collision = true
|
use_collision = true
|
||||||
size = Vector3(3.8, 3.8, 0.25)
|
size = Vector3(3.90674, 4, 0.1)
|
||||||
material = SubResource("StandardMaterial3D_2qrwe")
|
material = SubResource("StandardMaterial3D_3j8ld")
|
||||||
|
|
||||||
[node name="CA_WALL_3" type="MeshInstance3D" parent="Doors/DOOR?_F_CUT"]
|
[node name="CA_WALL_2" type="MeshInstance3D" parent="Doors/DOOR?"]
|
||||||
transform = Transform3D(-2, 0, 1.74846e-07, 0, 0.10779, 0, -1.74846e-07, 0, -2, 0.00432254, 1.99581, 1.94811)
|
transform = Transform3D(-8.74228e-08, 0.10779, 1.73929e-20, -2, -4.71165e-09, 3.97904e-13, 3.97904e-13, 0, 2, 1.84215, 0.088098, 1.96086)
|
||||||
mesh = SubResource("ArrayMesh_ux4sw")
|
|
||||||
skeleton = NodePath("")
|
|
||||||
|
|
||||||
[node name="StaticBody3D" type="StaticBody3D" parent="Doors/DOOR?_F_CUT"]
|
|
||||||
collision_layer = 2147483648
|
|
||||||
collision_mask = 2147483648
|
|
||||||
|
|
||||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Doors/DOOR?_F_CUT/StaticBody3D"]
|
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0286865, 0, 0.0675668)
|
|
||||||
shape = SubResource("BoxShape3D_gbjb2")
|
|
||||||
|
|
||||||
[node name="DOOR?_R_CUT" type="CSGBox3D" parent="Doors"]
|
|
||||||
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, -1.87415, -0.109414, -0.094615)
|
|
||||||
use_collision = true
|
|
||||||
size = Vector3(3.8, 3.8, 0.25)
|
|
||||||
material = SubResource("StandardMaterial3D_lepkf")
|
|
||||||
|
|
||||||
[node name="CA_WALL_4" type="MeshInstance3D" parent="Doors/DOOR?_R_CUT"]
|
|
||||||
transform = Transform3D(-8.74228e-08, 0, -2, 0, 0.10779, 0, 2, 0, -8.74228e-08, -0.0181541, 2.0102, 1.83589)
|
|
||||||
mesh = SubResource("ArrayMesh_tmqha")
|
|
||||||
skeleton = NodePath("")
|
|
||||||
|
|
||||||
[node name="StaticBody3D" type="StaticBody3D" parent="Doors/DOOR?_R_CUT"]
|
|
||||||
collision_layer = 2147483648
|
|
||||||
collision_mask = 2147483648
|
|
||||||
|
|
||||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Doors/DOOR?_R_CUT/StaticBody3D"]
|
|
||||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -7.45058e-09, 0, -0.217697)
|
|
||||||
shape = SubResource("BoxShape3D_gbjb2")
|
|
||||||
|
|
||||||
[node name="DOOR?_L_CUT" type="CSGBox3D" parent="Doors"]
|
|
||||||
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 1.98471, -0.0715388, -0.0946158)
|
|
||||||
use_collision = true
|
|
||||||
size = Vector3(3.8, 3.8, 0.25)
|
|
||||||
material = SubResource("StandardMaterial3D_0m8h3")
|
|
||||||
|
|
||||||
[node name="CA_WALL_1" type="MeshInstance3D" parent="Doors/DOOR?_L_CUT"]
|
|
||||||
transform = Transform3D(-8.74228e-08, 0, -2, 0, 0.10779, 0, 2, 0, -8.74228e-08, -0.0181548, 1.97232, -2.02297)
|
|
||||||
mesh = SubResource("ArrayMesh_o04ue")
|
|
||||||
skeleton = NodePath("")
|
|
||||||
|
|
||||||
[node name="StaticBody3D" type="StaticBody3D" parent="Doors/DOOR?_L_CUT"]
|
|
||||||
collision_layer = 2147483648
|
|
||||||
collision_mask = 2147483648
|
|
||||||
|
|
||||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Doors/DOOR?_L_CUT/StaticBody3D"]
|
|
||||||
shape = SubResource("BoxShape3D_gbjb2")
|
|
||||||
|
|
||||||
[node name="DOOR?_B_CUT" type="CSGBox3D" parent="Doors"]
|
|
||||||
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, -0.0339377, -0.127415, -2.00389)
|
|
||||||
use_collision = true
|
|
||||||
size = Vector3(3.8, 3.8, 0.25)
|
|
||||||
material = SubResource("StandardMaterial3D_4xu2u")
|
|
||||||
|
|
||||||
[node name="CA_WALL_2" type="MeshInstance3D" parent="Doors/DOOR?_B_CUT"]
|
|
||||||
transform = Transform3D(-2, 0, 1.74846e-07, 0, 0.10779, 0, -1.74846e-07, 0, -2, 0.00432197, 2.0282, -1.92743)
|
|
||||||
mesh = SubResource("ArrayMesh_ue4n7")
|
mesh = SubResource("ArrayMesh_ue4n7")
|
||||||
skeleton = NodePath("")
|
skeleton = NodePath("")
|
||||||
|
|
||||||
[node name="StaticBody3D" type="StaticBody3D" parent="Doors/DOOR?_B_CUT"]
|
[node name="Box" type="CSGBox3D" parent="Doors/DOOR?"]
|
||||||
collision_layer = 2147483648
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00166607, -3.72529e-08, 0.0620437)
|
||||||
collision_mask = 2147483648
|
material_override = SubResource("StandardMaterial3D_0b3sx")
|
||||||
|
size = Vector3(4, 4, 0.203003)
|
||||||
|
material = SubResource("StandardMaterial3D_7a87o")
|
||||||
|
|
||||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Doors/DOOR?_B_CUT/StaticBody3D"]
|
[node name="DOOR?2" type="CSGBox3D" parent="Doors"]
|
||||||
shape = SubResource("BoxShape3D_gbjb2")
|
transform = Transform3D(-4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0, 1, 0.0498385, 0.0586318, 1.96147)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(3.90674, 4, 0.1)
|
||||||
|
material = SubResource("StandardMaterial3D_3j8ld")
|
||||||
|
|
||||||
|
[node name="Box" type="CSGBox3D" parent="Doors/DOOR?2"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00166607, -3.72529e-08, 0.0620437)
|
||||||
|
material_override = SubResource("StandardMaterial3D_0b3sx")
|
||||||
|
size = Vector3(4, 4, 0.203003)
|
||||||
|
material = SubResource("StandardMaterial3D_adgr5")
|
||||||
|
|
||||||
|
[node name="CA_WALL_3" type="MeshInstance3D" parent="Doors/DOOR?2"]
|
||||||
|
transform = Transform3D(-8.74228e-08, 0.10779, 1.73929e-20, -2, -4.71165e-09, 3.97904e-13, 3.97904e-13, 0, 2, 1.84215, 0.088098, -2.03793)
|
||||||
|
mesh = SubResource("ArrayMesh_ux4sw")
|
||||||
|
skeleton = NodePath("")
|
||||||
|
|
||||||
|
[node name="DOOR?3" type="CSGBox3D" parent="Doors"]
|
||||||
|
transform = Transform3D(1.91069e-15, 4.37114e-08, 1, 1, -4.37114e-08, 0, 4.37114e-08, 1, -4.37114e-08, -1.95513, 0.0586318, -0.00728679)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(3.90674, 4, 0.1)
|
||||||
|
material = SubResource("StandardMaterial3D_3j8ld")
|
||||||
|
|
||||||
|
[node name="Box" type="CSGBox3D" parent="Doors/DOOR?3"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00166607, -3.72529e-08, 0.0620437)
|
||||||
|
material_override = SubResource("StandardMaterial3D_0b3sx")
|
||||||
|
size = Vector3(4, 4, 0.203003)
|
||||||
|
material = SubResource("StandardMaterial3D_4sxun")
|
||||||
|
|
||||||
|
[node name="CA_WALL_4" type="MeshInstance3D" parent="Doors/DOOR?3"]
|
||||||
|
transform = Transform3D(3.82137e-15, 0.10779, 8.74228e-08, 8.74228e-08, -4.71165e-09, 2, 2, 0, -8.74228e-08, 1.84215, -0.0691742, 1.91687)
|
||||||
|
mesh = SubResource("ArrayMesh_tmqha")
|
||||||
|
skeleton = NodePath("")
|
||||||
|
|
||||||
|
[node name="DOOR?4" type="CSGBox3D" parent="Doors"]
|
||||||
|
transform = Transform3D(1.91069e-15, 4.37114e-08, 1, 1, -4.37114e-08, 0, 4.37114e-08, 1, -4.37114e-08, 1.95208, 0.0586318, -0.00681353)
|
||||||
|
use_collision = true
|
||||||
|
size = Vector3(3.90674, 4, 0.1)
|
||||||
|
material = SubResource("StandardMaterial3D_3j8ld")
|
||||||
|
|
||||||
|
[node name="Box" type="CSGBox3D" parent="Doors/DOOR?4"]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00166607, -3.72529e-08, 0.0620437)
|
||||||
|
material_override = SubResource("StandardMaterial3D_0b3sx")
|
||||||
|
size = Vector3(4, 4, 0.203003)
|
||||||
|
material = SubResource("StandardMaterial3D_hm6c0")
|
||||||
|
|
||||||
|
[node name="CA_WALL_1" type="MeshInstance3D" parent="Doors/DOOR?4"]
|
||||||
|
transform = Transform3D(3.82137e-15, 0.10779, 8.74228e-08, 8.74228e-08, -4.71165e-09, 2, 2, 0, -8.74228e-08, 1.84215, -0.0696476, -1.99034)
|
||||||
|
mesh = SubResource("ArrayMesh_o04ue")
|
||||||
|
skeleton = NodePath("")
|
||||||
|
|
||||||
[node name="Spawn Points" type="Node3D" parent="."]
|
[node name="Spawn Points" type="Node3D" parent="."]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user