Mapping and models

This commit is contained in:
Marco 2025-07-07 12:06:27 +02:00
commit 87438dff2b
29 changed files with 3136 additions and 1845 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,42 @@
[remap]
importer="scene"
importer_version=1
type="PackedScene"
uid="uid://dmnqbva5dt6nl"
path="res://.godot/imported/Tube_Emitter.gltf-9346024cf28fac71d07e731164cfc050.scn"
[deps]
source_file="res://3D/BlockbenchModels/Tubes/Tube_Emitter.gltf"
dest_files=["res://.godot/imported/Tube_Emitter.gltf-9346024cf28fac71d07e731164cfc050.scn"]
[params]
nodes/root_type=""
nodes/root_name=""
nodes/root_script=null
nodes/apply_root_scale=true
nodes/root_scale=1.0
nodes/import_as_skeleton_bones=false
nodes/use_name_suffixes=true
nodes/use_node_type_suffixes=true
meshes/ensure_tangents=true
meshes/generate_lods=true
meshes/create_shadow_meshes=true
meshes/light_baking=1
meshes/lightmap_texel_size=0.2
meshes/force_disable_compression=false
skins/use_named_skins=true
animation/import=true
animation/fps=30
animation/trimming=false
animation/remove_immutable_tracks=true
animation/import_rest_as_RESET=false
import_script/path=""
materials/extract=0
materials/extract_format=0
materials/extract_path=""
_subresources={}
gltf/naming_version=2
gltf/embedded_image_handling=1

BIN
3D/BlockbenchModels/Tubes/Tube_Emitter_0.png (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -0,0 +1,43 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://gdttxslts7lc"
path="res://.godot/imported/Tube_Emitter_0.png-d7a860e5fa337b65168aa22ec3c0b1af.ctex"
metadata={
"vram_texture": false
}
generator_parameters={
"md5": "8deea29cb261fda0819ef7976510c802"
}
[deps]
source_file="res://3D/BlockbenchModels/Tubes/Tube_Emitter_0.png"
dest_files=["res://.godot/imported/Tube_Emitter_0.png-d7a860e5fa337b65168aa22ec3c0b1af.ctex"]
[params]
compress/mode=3
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

File diff suppressed because one or more lines are too long

View file

@ -15,9 +15,11 @@ dest_files=["res://.godot/imported/Tube_Straight.gltf-b377275eff023f655ac0ebf589
nodes/root_type="" nodes/root_type=""
nodes/root_name="" nodes/root_name=""
nodes/root_script=null
nodes/apply_root_scale=true nodes/apply_root_scale=true
nodes/root_scale=1.0 nodes/root_scale=1.0
nodes/import_as_skeleton_bones=false nodes/import_as_skeleton_bones=false
nodes/use_name_suffixes=true
nodes/use_node_type_suffixes=true nodes/use_node_type_suffixes=true
meshes/ensure_tangents=true meshes/ensure_tangents=true
meshes/generate_lods=true meshes/generate_lods=true
@ -32,6 +34,9 @@ animation/trimming=false
animation/remove_immutable_tracks=true animation/remove_immutable_tracks=true
animation/import_rest_as_RESET=false animation/import_rest_as_RESET=false
import_script/path="" import_script/path=""
materials/extract=0
materials/extract_format=0
materials/extract_path=""
_subresources={} _subresources={}
gltf/naming_version=1 gltf/naming_version=1
gltf/embedded_image_handling=1 gltf/embedded_image_handling=1

View file

@ -18,6 +18,8 @@ dest_files=["res://.godot/imported/Tube_Straight_0.png-02238281302c1017403cb7470
compress/mode=3 compress/mode=3
compress/high_quality=false compress/high_quality=false
compress/lossy_quality=0.7 compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1 compress/hdr_compression=1
compress/normal_map=0 compress/normal_map=0
compress/channel_pack=0 compress/channel_pack=0
@ -25,6 +27,10 @@ mipmaps/generate=true
mipmaps/limit=-1 mipmaps/limit=-1
roughness/mode=0 roughness/mode=0
roughness/src_normal="" roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true process/fix_alpha_border=true
process/premult_alpha=false process/premult_alpha=false
process/normal_map_invert_y=false process/normal_map_invert_y=false

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,42 @@
[remap]
importer="scene"
importer_version=1
type="PackedScene"
uid="uid://7s7t2piaf8cq"
path="res://.godot/imported/Tube_Straight_Long.gltf-538934d529f1635cdc312d4d8d9149fb.scn"
[deps]
source_file="res://3D/BlockbenchModels/Tubes/Tube_Straight_Long.gltf"
dest_files=["res://.godot/imported/Tube_Straight_Long.gltf-538934d529f1635cdc312d4d8d9149fb.scn"]
[params]
nodes/root_type=""
nodes/root_name=""
nodes/root_script=null
nodes/apply_root_scale=true
nodes/root_scale=1.0
nodes/import_as_skeleton_bones=false
nodes/use_name_suffixes=true
nodes/use_node_type_suffixes=true
meshes/ensure_tangents=true
meshes/generate_lods=true
meshes/create_shadow_meshes=true
meshes/light_baking=1
meshes/lightmap_texel_size=0.2
meshes/force_disable_compression=false
skins/use_named_skins=true
animation/import=true
animation/fps=30
animation/trimming=false
animation/remove_immutable_tracks=true
animation/import_rest_as_RESET=false
import_script/path=""
materials/extract=0
materials/extract_format=0
materials/extract_path=""
_subresources={}
gltf/naming_version=2
gltf/embedded_image_handling=1

BIN
3D/BlockbenchModels/Tubes/Tube_Straight_Long_0.png (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -0,0 +1,43 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://b27u3rwvbo8n1"
path="res://.godot/imported/Tube_Straight_Long_0.png-72da04186057b2286a31c91851633225.ctex"
metadata={
"vram_texture": false
}
generator_parameters={
"md5": "8deea29cb261fda0819ef7976510c802"
}
[deps]
source_file="res://3D/BlockbenchModels/Tubes/Tube_Straight_Long_0.png"
dest_files=["res://.godot/imported/Tube_Straight_Long_0.png-72da04186057b2286a31c91851633225.ctex"]
[params]
compress/mode=3
compress/high_quality=false
compress/lossy_quality=0.7
compress/uastc_level=0
compress/rdo_quality_loss=0.0
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/channel_remap/red=0
process/channel_remap/green=1
process/channel_remap/blue=2
process/channel_remap/alpha=3
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,21 @@
[gd_scene load_steps=5 format=3 uid="uid://djm3rsc7ul5jb"]
[ext_resource type="Script" uid="uid://dpibtd73awwp7" path="res://Scripts/Actors/ScriptableBulletsEmitter3D.cs" id="1_0vfab"]
[ext_resource type="PackedScene" uid="uid://dmnqbva5dt6nl" path="res://3D/BlockbenchModels/Tubes/Tube_Emitter.gltf" id="1_i2hpd"]
[ext_resource type="Script" uid="uid://bf5f2phitdqw8" path="res://Scripts/Actors/BulletSpawner3D.cs" id="3_xohn2"]
[sub_resource type="BoxShape3D" id="BoxShape3D_hsg1w"]
size = Vector3(0.69390893, 0.868431, 0.871704)
[node name="TubeEmitter" type="StaticBody3D" groups=["Solid"]]
script = ExtResource("1_0vfab")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.15304595, 0.00475672, 0.0043335)
shape = SubResource("BoxShape3D_hsg1w")
[node name="blockbench_export" parent="." instance=ExtResource("1_i2hpd")]
[node name="BulletSpawner3D" type="Node3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.34088433, 0, 0)
script = ExtResource("3_xohn2")

View file

@ -0,0 +1,14 @@
[gd_scene load_steps=3 format=3 uid="uid://xxq6rhhdlbk3"]
[ext_resource type="PackedScene" uid="uid://7s7t2piaf8cq" path="res://3D/BlockbenchModels/Tubes/Tube_Straight_Long.gltf" id="1_p1mhg"]
[sub_resource type="BoxShape3D" id="BoxShape3D_hsg1w"]
size = Vector3(2.0110168, 0.868431, 0.871704)
[node name="TubeStraight" type="StaticBody3D" groups=["Solid"]]
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0017549396, 0.00475672, 0.0043335)
shape = SubResource("BoxShape3D_hsg1w")
[node name="blockbench_export" parent="." instance=ExtResource("1_p1mhg")]

View file

@ -1,25 +1,20 @@
[gd_resource type="Resource" script_class="FuncGodotFGDPointClass" load_steps=4 format=3 uid="uid://b2hgfu40nfoe3"] [gd_resource type="Resource" script_class="FuncGodotFGDModelPointClass" load_steps=4 format=3 uid="uid://b2hgfu40nfoe3"]
[ext_resource type="Resource" uid="uid://5bc1qysixhmh" path="res://3D/TrenchBroom/EntityDefinitions/base/actor_base.tres" id="1_ipqa3"] [ext_resource type="Resource" uid="uid://5bc1qysixhmh" path="res://3D/TrenchBroom/EntityDefinitions/base/actor_base.tres" id="1_ipqa3"]
[ext_resource type="PackedScene" uid="uid://sas2dyqvk7bs" path="res://3D/Scenes/Props/Tube_3D_Corner.tscn" id="2_ipqa3"] [ext_resource type="PackedScene" uid="uid://sas2dyqvk7bs" path="res://3D/Scenes/Props/Tube_3D_Corner.tscn" id="2_ipqa3"]
[ext_resource type="Script" uid="uid://c83r7t467hm4m" path="res://addons/func_godot/src/fgd/func_godot_fgd_point_class.gd" id="3_yvjec"] [ext_resource type="Script" uid="uid://dkmyelig23ub5" path="res://addons/func_godot/src/fgd/func_godot_fgd_model_point_class.gd" id="3_ipqa3"]
[resource] [resource]
script = ExtResource("3_yvjec") script = ExtResource("3_ipqa3")
target_map_editor = 1
rotation_offset = Vector3(0, 180, 0)
scene_file = ExtResource("2_ipqa3") scene_file = ExtResource("2_ipqa3")
apply_rotation_on_map_build = true
apply_scale_on_map_build = false apply_scale_on_map_build = false
classname = "actor_tube_corner" classname = "actor_tube_corner"
description = "Tube Corner" description = "Tube Corner"
func_godot_internal = false
base_classes = Array[Resource]([ExtResource("1_ipqa3")]) base_classes = Array[Resource]([ExtResource("1_ipqa3")])
class_properties = {}
class_property_descriptions = {}
auto_apply_to_matching_node_properties = false
meta_properties = { meta_properties = {
"model": "\"3D/MapModels/Tube_Corner.glb\"", "model": "\"3D/MapModels/actor_tube_corner.glb\"",
"size": AABB(-8, -8, -8, 8, 8, 8) "size": AABB(-8, -8, -8, 8, 8, 8)
} }
node_class = ""
name_property = ""
metadata/_custom_type_script = "uid://c83r7t467hm4m" metadata/_custom_type_script = "uid://c83r7t467hm4m"

View file

@ -1,25 +1,20 @@
[gd_resource type="Resource" script_class="FuncGodotFGDPointClass" load_steps=4 format=3 uid="uid://b23cpstd7ab8c"] [gd_resource type="Resource" script_class="FuncGodotFGDModelPointClass" load_steps=4 format=3 uid="uid://b23cpstd7ab8c"]
[ext_resource type="Resource" uid="uid://5bc1qysixhmh" path="res://3D/TrenchBroom/EntityDefinitions/base/actor_base.tres" id="1_cpsnq"] [ext_resource type="Resource" uid="uid://5bc1qysixhmh" path="res://3D/TrenchBroom/EntityDefinitions/base/actor_base.tres" id="1_cpsnq"]
[ext_resource type="PackedScene" uid="uid://b72piaqmqsj10" path="res://3D/Scenes/Props/Tube_3D_Junction.tscn" id="2_cpsnq"] [ext_resource type="PackedScene" uid="uid://b72piaqmqsj10" path="res://3D/Scenes/Props/Tube_3D_Junction.tscn" id="2_cpsnq"]
[ext_resource type="Script" uid="uid://c83r7t467hm4m" path="res://addons/func_godot/src/fgd/func_godot_fgd_point_class.gd" id="3_clsxl"] [ext_resource type="Script" uid="uid://dkmyelig23ub5" path="res://addons/func_godot/src/fgd/func_godot_fgd_model_point_class.gd" id="3_cpsnq"]
[resource] [resource]
script = ExtResource("3_clsxl") script = ExtResource("3_cpsnq")
target_map_editor = 1
rotation_offset = Vector3(0, 180, 0)
scene_file = ExtResource("2_cpsnq") scene_file = ExtResource("2_cpsnq")
apply_rotation_on_map_build = true
apply_scale_on_map_build = false apply_scale_on_map_build = false
classname = "actor_tube_junction" classname = "actor_tube_junction"
description = "Blue Box" description = "Blue Box"
func_godot_internal = false
base_classes = Array[Resource]([ExtResource("1_cpsnq")]) base_classes = Array[Resource]([ExtResource("1_cpsnq")])
class_properties = {}
class_property_descriptions = {}
auto_apply_to_matching_node_properties = false
meta_properties = { meta_properties = {
"model": "\"3D/MapModels/Tube_Junction.glb\"", "model": "\"3D/MapModels/actor_tube_junction.glb\"",
"size": AABB(-8, -8, -8, 8, 8, 8) "size": AABB(-8, -8, -8, 8, 8, 8)
} }
node_class = ""
name_property = ""
metadata/_custom_type_script = "uid://c83r7t467hm4m" metadata/_custom_type_script = "uid://c83r7t467hm4m"

View file

@ -1,25 +1,20 @@
[gd_resource type="Resource" script_class="FuncGodotFGDPointClass" load_steps=4 format=3 uid="uid://cwr35wrv087eu"] [gd_resource type="Resource" script_class="FuncGodotFGDModelPointClass" load_steps=4 format=3 uid="uid://cwr35wrv087eu"]
[ext_resource type="Resource" uid="uid://5bc1qysixhmh" path="res://3D/TrenchBroom/EntityDefinitions/base/actor_base.tres" id="1_dg8qq"] [ext_resource type="Resource" uid="uid://5bc1qysixhmh" path="res://3D/TrenchBroom/EntityDefinitions/base/actor_base.tres" id="1_dg8qq"]
[ext_resource type="PackedScene" uid="uid://b7c6lrbrqgdlf" path="res://3D/Scenes/Props/Tube_3D_Straight.tscn" id="2_dg8qq"] [ext_resource type="PackedScene" uid="uid://b7c6lrbrqgdlf" path="res://3D/Scenes/Props/Tube_3D_Straight.tscn" id="2_dg8qq"]
[ext_resource type="Script" uid="uid://c83r7t467hm4m" path="res://addons/func_godot/src/fgd/func_godot_fgd_point_class.gd" id="3_wwbci"] [ext_resource type="Script" uid="uid://dkmyelig23ub5" path="res://addons/func_godot/src/fgd/func_godot_fgd_model_point_class.gd" id="3_dg8qq"]
[resource] [resource]
script = ExtResource("3_wwbci") script = ExtResource("3_dg8qq")
target_map_editor = 1
rotation_offset = Vector3(0, 180, 0)
scene_file = ExtResource("2_dg8qq") scene_file = ExtResource("2_dg8qq")
apply_rotation_on_map_build = true
apply_scale_on_map_build = false apply_scale_on_map_build = false
classname = "actor_tube_straight" classname = "actor_tube_straight"
description = "Blue Box" description = "Straight tube"
func_godot_internal = false
base_classes = Array[Resource]([ExtResource("1_dg8qq")]) base_classes = Array[Resource]([ExtResource("1_dg8qq")])
class_properties = {}
class_property_descriptions = {}
auto_apply_to_matching_node_properties = false
meta_properties = { meta_properties = {
"model": "\"3D/MapModels/Tube_Straight.glb\"", "model": "\"3D/MapModels/actor_tube_straight.glb\"",
"size": AABB(-8, -8, -8, 8, 8, 8) "size": AABB(-8, -8, -8, 8, 8, 8)
} }
node_class = ""
name_property = ""
metadata/_custom_type_script = "uid://c83r7t467hm4m" metadata/_custom_type_script = "uid://c83r7t467hm4m"

View file

@ -0,0 +1,20 @@
[gd_resource type="Resource" script_class="FuncGodotFGDModelPointClass" load_steps=4 format=3 uid="uid://5jxyln87hluw"]
[ext_resource type="Resource" uid="uid://5bc1qysixhmh" path="res://3D/TrenchBroom/EntityDefinitions/base/actor_base.tres" id="1_bwovp"]
[ext_resource type="PackedScene" uid="uid://7s7t2piaf8cq" path="res://3D/BlockbenchModels/Tubes/Tube_Straight_Long.gltf" id="2_bwovp"]
[ext_resource type="Script" uid="uid://dkmyelig23ub5" path="res://addons/func_godot/src/fgd/func_godot_fgd_model_point_class.gd" id="3_r30wg"]
[resource]
script = ExtResource("3_r30wg")
target_map_editor = 1
rotation_offset = Vector3(0, 180, 0)
scene_file = ExtResource("2_bwovp")
apply_scale_on_map_build = false
classname = "actor_tube_straight_long"
description = "Long straight tube"
base_classes = Array[Resource]([ExtResource("1_bwovp")])
meta_properties = {
"model": "\"3D/MapModels/actor_tube_straight_long.glb\"",
"size": AABB(-8, -16, -8, 8, 16, 8)
}
metadata/_custom_type_script = "uid://c83r7t467hm4m"

View file

@ -1,4 +1,4 @@
[gd_resource type="Resource" script_class="FuncGodotFGDFile" load_steps=41 format=3 uid="uid://b700sa4be6dfa"] [gd_resource type="Resource" script_class="FuncGodotFGDFile" load_steps=42 format=3 uid="uid://b700sa4be6dfa"]
[ext_resource type="Resource" uid="uid://ia1t5p4mhom3" path="res://3D/TrenchBroom/EntityDefinitions/point/lights/light_omni.tres" id="1_7vcj1"] [ext_resource type="Resource" uid="uid://ia1t5p4mhom3" path="res://3D/TrenchBroom/EntityDefinitions/point/lights/light_omni.tres" id="1_7vcj1"]
[ext_resource type="Script" uid="uid://cknmd0lgmorx2" path="res://addons/func_godot/src/fgd/func_godot_fgd_file.gd" id="1_lykim"] [ext_resource type="Script" uid="uid://cknmd0lgmorx2" path="res://addons/func_godot/src/fgd/func_godot_fgd_file.gd" id="1_lykim"]
@ -40,12 +40,9 @@
[ext_resource type="Resource" uid="uid://tqytdmynf2ko" path="res://3D/TrenchBroom/EntityDefinitions/point/lights/light_special.tres" id="37_53o7h"] [ext_resource type="Resource" uid="uid://tqytdmynf2ko" path="res://3D/TrenchBroom/EntityDefinitions/point/lights/light_special.tres" id="37_53o7h"]
[ext_resource type="Resource" uid="uid://fbovhni8adhg" path="res://3D/TrenchBroom/EntityDefinitions/point/triggers/Alarm_Trigger_3D.tres" id="38_mdgca"] [ext_resource type="Resource" uid="uid://fbovhni8adhg" path="res://3D/TrenchBroom/EntityDefinitions/point/triggers/Alarm_Trigger_3D.tres" id="38_mdgca"]
[ext_resource type="Resource" uid="uid://c8jy0j0d0nw0x" path="res://3D/TrenchBroom/EntityDefinitions/point/actors/Actor_Stairs_mini.tres" id="39_d6b4f"] [ext_resource type="Resource" uid="uid://c8jy0j0d0nw0x" path="res://3D/TrenchBroom/EntityDefinitions/point/actors/Actor_Stairs_mini.tres" id="39_d6b4f"]
[ext_resource type="Resource" uid="uid://5jxyln87hluw" path="res://3D/TrenchBroom/EntityDefinitions/point/actors/actor_tube_straight_long.tres" id="40_l3pck"]
[resource] [resource]
script = ExtResource("1_lykim") script = ExtResource("1_lykim")
export_file = false entity_definitions = Array[Resource]([ExtResource("1_7vcj1"), ExtResource("2_u7uvb"), ExtResource("3_u7uvb"), ExtResource("4_1nmxk"), ExtResource("5_ljb2x"), ExtResource("6_seuvu"), ExtResource("7_fmwex"), ExtResource("8_c8m8m"), ExtResource("9_14sjf"), ExtResource("10_xik3w"), ExtResource("11_dgiqm"), ExtResource("12_1teik"), ExtResource("13_f0hti"), ExtResource("14_6ld6e"), ExtResource("15_g8j5j"), ExtResource("16_7h4of"), ExtResource("17_m3sbm"), ExtResource("18_m3sbm"), ExtResource("19_hvhb8"), ExtResource("20_3v5us"), ExtResource("21_g67cj"), ExtResource("22_iy67w"), ExtResource("23_b5lmu"), ExtResource("24_ndas4"), ExtResource("25_n7wsi"), ExtResource("26_v48k5"), ExtResource("27_ombvk"), ExtResource("28_31lma"), ExtResource("29_louv0"), ExtResource("30_wfgfu"), ExtResource("31_elv2e"), ExtResource("32_elv2e"), ExtResource("33_aawmv"), ExtResource("34_wy0ht"), ExtResource("35_3jqmy"), ExtResource("36_p5b6l"), ExtResource("37_53o7h"), ExtResource("38_mdgca"), ExtResource("39_d6b4f"), ExtResource("40_l3pck")])
target_map_editor = 1
fgd_name = "FuncGodot"
base_fgd_files = Array[Resource]([])
entity_definitions = Array[Resource]([ExtResource("1_7vcj1"), ExtResource("2_u7uvb"), ExtResource("3_u7uvb"), ExtResource("4_1nmxk"), ExtResource("5_ljb2x"), ExtResource("6_seuvu"), ExtResource("7_fmwex"), ExtResource("8_c8m8m"), ExtResource("9_14sjf"), ExtResource("10_xik3w"), ExtResource("11_dgiqm"), ExtResource("12_1teik"), ExtResource("13_f0hti"), ExtResource("14_6ld6e"), ExtResource("15_g8j5j"), ExtResource("16_7h4of"), ExtResource("17_m3sbm"), ExtResource("18_m3sbm"), ExtResource("19_hvhb8"), ExtResource("20_3v5us"), ExtResource("21_g67cj"), ExtResource("22_iy67w"), ExtResource("23_b5lmu"), ExtResource("24_ndas4"), ExtResource("25_n7wsi"), ExtResource("26_v48k5"), ExtResource("27_ombvk"), ExtResource("28_31lma"), ExtResource("29_louv0"), ExtResource("30_wfgfu"), ExtResource("31_elv2e"), ExtResource("32_elv2e"), ExtResource("33_aawmv"), ExtResource("34_wy0ht"), ExtResource("35_3jqmy"), ExtResource("36_p5b6l"), ExtResource("37_53o7h"), ExtResource("38_mdgca"), ExtResource("39_d6b4f")])
metadata/_custom_type_script = "uid://cknmd0lgmorx2" metadata/_custom_type_script = "uid://cknmd0lgmorx2"

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=14 format=3 uid="uid://ec4m3geediis"] [gd_scene load_steps=12 format=3 uid="uid://ec4m3geediis"]
[ext_resource type="Script" uid="uid://ba0tf7ihw4hpp" path="res://Scripts/Misc/CameraController3D.cs" id="1_g4gcm"] [ext_resource type="Script" uid="uid://ba0tf7ihw4hpp" path="res://Scripts/Misc/CameraController3D.cs" id="1_g4gcm"]
[ext_resource type="Script" uid="uid://b8g8mflgsr5dc" path="res://Scripts/GameController.cs" id="1_joeuf"] [ext_resource type="Script" uid="uid://b8g8mflgsr5dc" path="res://Scripts/GameController.cs" id="1_joeuf"]
@ -9,10 +9,8 @@
[ext_resource type="AudioStream" uid="uid://blohh20jktoyo" path="res://SFX/270641__phantastonia__alarm2.wav" id="7_5vm3d"] [ext_resource type="AudioStream" uid="uid://blohh20jktoyo" path="res://SFX/270641__phantastonia__alarm2.wav" id="7_5vm3d"]
[ext_resource type="Script" uid="uid://csruxpdnpj18r" path="res://Scripts/Actors/3D/PlayerStartMarker3D.cs" id="9_g4gcm"] [ext_resource type="Script" uid="uid://csruxpdnpj18r" path="res://Scripts/Actors/3D/PlayerStartMarker3D.cs" id="9_g4gcm"]
[ext_resource type="PackedScene" uid="uid://rimplblbptcd" path="res://Scenes/Actors/IsoPlayer_FSM.tscn" id="12_g4gcm"] [ext_resource type="PackedScene" uid="uid://rimplblbptcd" path="res://Scenes/Actors/IsoPlayer_FSM.tscn" id="12_g4gcm"]
[ext_resource type="PackedScene" uid="uid://c8gtrjf2xeue7" path="res://3D/MapScenes/TestLevel.tscn" id="12_g83w3"]
[ext_resource type="Script" uid="uid://dnslcy71dgea" path="res://Scripts/Misc/CameraTarget3D.cs" id="16_e2nai"] [ext_resource type="Script" uid="uid://dnslcy71dgea" path="res://Scripts/Misc/CameraTarget3D.cs" id="16_e2nai"]
[ext_resource type="PackedScene" uid="uid://cupulrjeeivxm" path="res://3D/MapScenes/TestLevel2.tscn" id="18_e2nai"] [ext_resource type="PackedScene" uid="uid://cupulrjeeivxm" path="res://3D/MapScenes/TestLevel2.tscn" id="18_e2nai"]
[ext_resource type="PackedScene" uid="uid://diveeuoyyp7n" path="res://3D/MapScenes/RebelBase3D.tscn" id="20_1dvih"]
[node name="IsoMapTest2" type="Node3D"] [node name="IsoMapTest2" type="Node3D"]
@ -55,9 +53,6 @@ shadow_enabled = true
shadow_blur = 0.51 shadow_blur = 0.51
sky_mode = 1 sky_mode = 1
[node name="TestLevel" parent="." instance=ExtResource("12_g83w3")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.84862, 0, -4.8932)
[node name="StartPosition" type="Marker3D" parent="."] [node name="StartPosition" type="Marker3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 81.2404, 1.2967, -32.5207) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 81.2404, 1.2967, -32.5207)
script = ExtResource("9_g4gcm") script = ExtResource("9_g4gcm")
@ -78,6 +73,3 @@ TargetPath = NodePath("../CameraTarget")
[node name="TestLevel2" parent="." instance=ExtResource("18_e2nai")] [node name="TestLevel2" parent="." instance=ExtResource("18_e2nai")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 93.4519, 0, -38.2113) transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 93.4519, 0, -38.2113)
[node name="RebelBase3d" parent="." instance=ExtResource("20_1dvih")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -13.6115, 0, -23.4396)

View file

@ -8,9 +8,11 @@ namespace Cirno.Scripts.Actors;
public partial class ScriptableBulletsEmitter3D : Node3D, IActivable, IScriptHost3D public partial class ScriptableBulletsEmitter3D : Node3D, IActivable, IScriptHost3D
{ {
public Node3D ParentObject => this; public Node3D ParentObject => this;
[Export] [Export]
public BulletScript3D Script { get; set; } public BulletScript3D Script { get; set; }
[Export] public string ActivationGroup { get; set; }
[Export] [Export]
public bool InvertSignal { get; private set; } = false; public bool InvertSignal { get; private set; } = false;
@ -31,6 +33,11 @@ public partial class ScriptableBulletsEmitter3D : Node3D, IActivable, IScriptHos
{ {
//_scriptInstance = Script.Duplicate(true) as BulletScript; //_scriptInstance = Script.Duplicate(true) as BulletScript;
if (!string.IsNullOrWhiteSpace(ActivationGroup))
{
this.AddToGroup(ActivationGroup);
}
ScriptMachine = Script.Make(this); ScriptMachine = Script.Make(this);
_homePosition = this.GlobalPosition; _homePosition = this.GlobalPosition;

View file

@ -0,0 +1,8 @@
[gd_resource type="StandardMaterial3D" load_steps=2 format=3 uid="uid://qbhdbykuieqn"]
[ext_resource type="Texture2D" uid="uid://bynsh36268ktg" path="res://textures/Manual/Floor_Mine_001.png" id="1_el8ky"]
[resource]
albedo_texture = ExtResource("1_el8ky")
metallic_specular = 0.0
texture_filter = 2