Min max triggers

This commit is contained in:
Marco 2025-09-09 16:57:26 +02:00
commit 0492a008d0
6 changed files with 130 additions and 45 deletions

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=243 format=4 uid="uid://d21ewu3hfa3us"]
[gd_scene load_steps=244 format=4 uid="uid://d21ewu3hfa3us"]
[ext_resource type="Script" uid="uid://kno58homctew" path="res://addons/func_godot/src/map/func_godot_map.gd" id="1_ifqpu"]
[ext_resource type="Resource" uid="uid://cx41lsryg5wpm" path="res://3D/TrenchBroom/map_settings.tres" id="2_dvbie"]
@ -981,7 +981,10 @@ _surfaces = [{
[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_0gskd"]
points = PackedVector3Array(-1.375, 0.5, -0.125, -1.375, -0.5, -0.125, 1.375, -0.5, -0.125, 1.375, 0.5, -0.125, -1.375, 0.5, 0.125, -1.375, -0.5, 0.125, 1.375, -0.5, 0.125, 1.375, 0.5, 0.125)
[sub_resource type="ArrayMesh" id="ArrayMesh_t270j"]
[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_t270j"]
points = PackedVector3Array(-0.5, 0.25, -0.75, -0.5, -0.25, -0.75, 0.5, -0.25, -0.75, 0.5, 0.25, -0.75, -0.5, 0.25, 0.75, -0.5, -0.25, 0.75, 0.5, -0.25, 0.75, 0.5, 0.25, 0.75)
[sub_resource type="ArrayMesh" id="ArrayMesh_li3o5"]
_surfaces = [{
"aabb": AABB(-1.25, -0.125, -2.5, 2.5, 0.25, 5),
"attribute_data": PackedByteArray("AAA+xAAAUMIAAD7EAABAwgAASMQAAEDCAABIxAAAUMIAAEBCAABQwgAAAEMAAFDCAAAAQwAAQMIAAEBCAABAwgAAQMIAAEjEAABAwgAAPsQAAADDAAA+xAAAAMMAAEjEAABAQgAASMQAAABDAABIxAAAAEMAAD7EAABAQgAAPsQAAEDCAABQwgAAQMIAAEDCAAAAwwAAQMIAAADDAABQwgAAPkQAAFDCAABIRAAAUMIAAEhEAABAwgAAPkQAAEDC"),
@ -996,7 +999,7 @@ _surfaces = [{
"vertex_data": PackedByteArray("AACgvwAAAD4AACDAAACgvwAAAL4AACDAAACgPwAAAL4AACDAAACgPwAAAD4AACDAAACgvwAAAD4AACDAAACgvwAAAD4AACBAAACgvwAAAL4AACBAAACgvwAAAL4AACDAAACgPwAAAL4AACDAAACgvwAAAL4AACDAAACgvwAAAL4AACBAAACgPwAAAL4AACBAAACgPwAAAD4AACDAAACgPwAAAD4AACBAAACgvwAAAD4AACBAAACgvwAAAD4AACDAAACgPwAAAD4AACDAAACgPwAAAL4AACDAAACgPwAAAL4AACBAAACgPwAAAD4AACBAAACgvwAAAD4AACBAAACgPwAAAD4AACBAAACgPwAAAL4AACBAAACgvwAAAL4AACBA/////wAA/7//////AAD/v/////8AAP+//////wAA/78AAP9//3//vwAA/3//f/+/AAD/f/9//78AAP9//3//v/9/AAD//////38AAP//////fwAA//////9/AAD//////3////9//7//f////3//v/9/////f/+//3////9//7////9//////////3//////////f/////////9///////9//3////+//3//f////7//f/9/////v/9//3////+/")
}]
[sub_resource type="ArrayOccluder3D" id="ArrayOccluder3D_li3o5"]
[sub_resource type="ArrayOccluder3D" id="ArrayOccluder3D_lolpd"]
vertices = PackedVector3Array(-1.25, 0.125, -2.5, -1.25, -0.125, -2.5, 1.25, -0.125, -2.5, 1.25, 0.125, -2.5, -1.25, 0.125, -2.5, -1.25, 0.125, 2.5, -1.25, -0.125, 2.5, -1.25, -0.125, -2.5, 1.25, -0.125, -2.5, -1.25, -0.125, -2.5, -1.25, -0.125, 2.5, 1.25, -0.125, 2.5, 1.25, 0.125, -2.5, 1.25, 0.125, 2.5, -1.25, 0.125, 2.5, -1.25, 0.125, -2.5, 1.25, 0.125, -2.5, 1.25, -0.125, -2.5, 1.25, -0.125, 2.5, 1.25, 0.125, 2.5, -1.25, 0.125, 2.5, 1.25, 0.125, 2.5, 1.25, -0.125, 2.5, -1.25, -0.125, 2.5)
indices = PackedInt32Array(0, 1, 2, 0, 2, 3, 4, 5, 6, 4, 6, 7, 8, 9, 10, 8, 10, 11, 12, 13, 14, 12, 14, 15, 16, 17, 18, 16, 18, 19, 20, 21, 22, 20, 22, 23)
@ -2318,10 +2321,26 @@ transform = Transform3D(-4.371139e-08, 0, 1, 0, 1, 0, -1, 0, -4.371139e-08, 63.7
[node name="entity_191_actor_teleporter" parent="FuncGodotMap" instance=ExtResource("92_f8yqq")]
transform = Transform3D(-1, 0, -8.742278e-08, 0, 1, 0, 8.742278e-08, 0, -1, 6.75, 1.0625, -3.25)
[node name="entity_192_actor_alarmbox" parent="FuncGodotMap" instance=ExtResource("94_e180r")]
transform = Transform3D(1.1924881e-08, 0, -1, 0, 1, 0, 1, 0, 1.1924881e-08, 26, 2.25, -3.75)
[node name="entity_193_trigger_area" type="Area3D" parent="FuncGodotMap"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.5, 1.25, -1.75)
collision_layer = 4
collision_mask = 2
monitorable = false
script = ExtResource("36_bevgl")
Target = "tube_emitter_intro"
MinActivations = 1
MaxActivations = 2
[node name="entity_193_brush_0_collision_shape" type="CollisionShape3D" parent="FuncGodotMap/entity_193_trigger_area"]
shape = SubResource("ConvexPolygonShape3D_t270j")
[node name="layer_0_Shrouds" type="Node3D" parent="FuncGodotMap"]
metadata/_tb_type = "_tb_layer"
[node name="entity_193_func_shroud" type="StaticBody3D" parent="FuncGodotMap/layer_0_Shrouds"]
[node name="entity_195_func_shroud" type="StaticBody3D" parent="FuncGodotMap/layer_0_Shrouds"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 48.75, 2.875, 5.5)
visible = false
script = ExtResource("57_pmuwb")
@ -2329,13 +2348,13 @@ TargetName = "secret_001"
OneTime = true
metadata/func_godot_mesh_data = {}
[node name="entity_193_mesh_instance" type="MeshInstance3D" parent="FuncGodotMap/layer_0_Shrouds/entity_193_func_shroud"]
[node name="entity_195_mesh_instance" type="MeshInstance3D" parent="FuncGodotMap/layer_0_Shrouds/entity_195_func_shroud"]
cast_shadow = 0
gi_mode = 0
mesh = SubResource("ArrayMesh_t270j")
mesh = SubResource("ArrayMesh_li3o5")
[node name="entity_193_occluder_instance" type="OccluderInstance3D" parent="FuncGodotMap/layer_0_Shrouds/entity_193_func_shroud"]
occluder = SubResource("ArrayOccluder3D_li3o5")
[node name="entity_195_occluder_instance" type="OccluderInstance3D" parent="FuncGodotMap/layer_0_Shrouds/entity_195_func_shroud"]
occluder = SubResource("ArrayOccluder3D_lolpd")
[node name="Props" type="Node3D" parent="."]