3D Switches

This commit is contained in:
Marco 2025-06-13 17:46:44 +02:00
commit cb60226ced
20 changed files with 267 additions and 14 deletions

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=490 format=4 uid="uid://c8gtrjf2xeue7"]
[gd_scene load_steps=491 format=4 uid="uid://c8gtrjf2xeue7"]
[ext_resource type="Script" uid="uid://kno58homctew" path="res://addons/func_godot/src/map/func_godot_map.gd" id="1_n6h0p"]
[ext_resource type="Resource" uid="uid://cx41lsryg5wpm" path="res://3D/TrenchBroom/map_settings.tres" id="2_i0sba"]
@ -37,6 +37,7 @@
[ext_resource type="Script" uid="uid://crjplbs250g75" path="res://3D/TrenchBroom/EntityScripts/Lights/light_spot.gd" id="31_c2mph"]
[ext_resource type="Material" uid="uid://l3g1l0y47c7r" path="res://textures/Manual/Electric_Panel_Wall.tres" id="32_k4tgc"]
[ext_resource type="PackedScene" uid="uid://c2enjjxlfb5or" path="res://3D/Scenes/Props/barrel_3d.tscn" id="33_8pgky"]
[ext_resource type="PackedScene" uid="uid://du6hlcoq0iip4" path="res://3D/Scenes/Props/control_pad_3d.tscn" id="35_c4mw0"]
[ext_resource type="Script" uid="uid://cyr7ypanl8drq" path="res://Scripts/Actors/Elevator3D.cs" id="36_3x0wn"]
[ext_resource type="PackedScene" uid="uid://cq6tw87ei4by3" path="res://3D/Scenes/Props/elevator_3d.tscn" id="36_b3evc"]
[ext_resource type="PackedScene" uid="uid://bhh7qq1plw53i" path="res://Scenes/Interactable/AreaTrigger3D.tscn" id="38_vqonp"]
@ -3180,6 +3181,10 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 28.5, 1.5, 17.5)
[node name="Props" type="Node3D" parent="."]
[node name="ControlPad" parent="Props" node_paths=PackedStringArray("Target") instance=ExtResource("35_c4mw0")]
transform = Transform3D(0.175436, 0, 0.178108, 0, 0.25, 0, -0.178108, 0, 0.175436, 5.36001, 1.84412, 22.5297)
Target = NodePath("../TestElevator/Path3D/PathFollow3D")
[node name="Mainframe3d" parent="Props" instance=ExtResource("16_u5cc4")]
transform = Transform3D(0.25, 0, 0, 0, 0.25, 0, 0, 0, 0.25, 22.6824, 1.30461, 12.0268)

View file

@ -0,0 +1,29 @@
[gd_scene load_steps=5 format=3 uid="uid://du6hlcoq0iip4"]
[ext_resource type="Script" uid="uid://qxh76ahgexqa" path="res://Scripts/Interactables/Switch3D.cs" id="1_papkq"]
[ext_resource type="Texture2D" uid="uid://d24g1qb40t72l" path="res://Sprites/Button_Small.png" id="2_ldivl"]
[ext_resource type="AudioStream" uid="uid://bjvklk7qmlivd" path="res://SFX/288963__littlerobotsoundfactory__click_electronic_14.wav" id="3_ldivl"]
[sub_resource type="SphereShape3D" id="SphereShape3D_itd0i"]
radius = 0.868968
[node name="ControlPad" type="Area3D" groups=["Interactable"]]
transform = Transform3D(0.701743, 0, 0.71243, 0, 1, 0, -0.71243, 0, 0.701743, 0, 0, 0)
collision_layer = 32
collision_mask = 0
script = ExtResource("1_papkq")
metadata/_edit_group_ = true
[node name="Sprite3D" type="Sprite3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 0.707107, 0.707107, 0, -0.707107, 0.707107, 0, 0, 0)
pixel_size = 0.1
texture_filter = 0
texture = ExtResource("2_ldivl")
hframes = 4
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
shape = SubResource("SphereShape3D_itd0i")
[node name="ActivationSound" type="AudioStreamPlayer3D" parent="."]
stream = ExtResource("3_ldivl")
bus = &"Effects"