break-utopia/project/objects/destructable_props/elevator_door_destroyed.tscn

47 lines
2.4 KiB
Text

[gd_scene format=3 uid="uid://3ncut5jdnsav"]
[ext_resource type="PackedScene" uid="uid://ckevs6oll6ox6" path="res://assets/models/props/fragments/elevator_door_fragments.blend" id="1_s1gfi"]
[ext_resource type="PackedScene" uid="uid://c4hmdwcjd18y3" path="res://objects/effects/impact_flash.tscn" id="2_y70eg"]
[ext_resource type="PackedScene" uid="uid://dn1lu8316stf0" path="res://objects/effects/destroyed_object_audio.tscn" id="3_tajwm"]
[ext_resource type="PackedScene" uid="uid://y6bp1joyt3xn" path="res://objects/destructable_props/elevator_door_destroyed_destroyed.tscn" id="4_mm421"]
[sub_resource type="GDScript" id="GDScript_s1gfi"]
script/source = "extends Node3D
func _ready():
$ImpactFlash2.restart()
await PlayerCamera.get_instance().impact_effect($ImpactFlash2.process_material.color, 0.1, 0.0, 0.02).timeout
await get_tree().create_timer(.3).timeout
$DestructableObject.collision_layer = 0x2
"
[sub_resource type="BoxShape3D" id="BoxShape3D_tajwm"]
size = Vector3(0.48046875, 2.4335938, 0.66064453)
[node name="ElevatorDoorDestroyed" type="Node3D" unique_id=297728964]
script = SubResource("GDScript_s1gfi")
[node name="elevator_door_fragments" parent="." unique_id=333592279 instance=ExtResource("1_s1gfi")]
[node name="ImpactFlash2" parent="." unique_id=1634290765 instance=ExtResource("2_y70eg")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.0354662, 1.2921938, 0)
[node name="DestroyedObjectAudio" parent="." unique_id=1054350173 instance=ExtResource("3_tajwm")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.048012, 0)
[node name="DestructableObject" type="DestructableObject" parent="." unique_id=1688107695]
collision_layer = 0
collision_mask = 0
destroyed_object = ExtResource("4_mm421")
[node name="CollisionShape3D" type="CollisionShape3D" parent="DestructableObject" unique_id=43357451]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.2912011, 0.81579864)
shape = SubResource("BoxShape3D_tajwm")
[node name="CollisionShape3D2" type="CollisionShape3D" parent="DestructableObject" unique_id=1656333758]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.2912011, -0.88122654)
shape = SubResource("BoxShape3D_tajwm")
[node name="CollisionShape3D3" type="CollisionShape3D" parent="DestructableObject" unique_id=854146791]
transform = Transform3D(1, 0, 0, 0, -4.371139e-08, -1, 0, 1, -4.371139e-08, 0, 2.4276428, 0.024197347)
shape = SubResource("BoxShape3D_tajwm")