90 lines
2.4 KiB
Plaintext
90 lines
2.4 KiB
Plaintext
[gd_scene load_steps=7 format=3 uid="uid://by7qyyhyurlw"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/dead_cam.gd" id="1_qxtd8"]
|
|
|
|
[sub_resource type="SphereShape3D" id="SphereShape3D_qnbpl"]
|
|
radius = 1.0
|
|
|
|
[sub_resource type="CameraAttributesPractical" id="CameraAttributesPractical_2gkpp"]
|
|
dof_blur_far_enabled = true
|
|
dof_blur_near_enabled = true
|
|
dof_blur_near_transition = 4.0
|
|
dof_blur_amount = 0.2
|
|
|
|
[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_m5ien"]
|
|
blend_mode = 3
|
|
|
|
[sub_resource type="Animation" id="Animation_4scpm"]
|
|
resource_name = "whiteout"
|
|
length = 0.05
|
|
step = 0.01
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Whiteout:color")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.05),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 0,
|
|
"values": [Color(1, 1, 1, 0), Color(0, 0, 0, 1)]
|
|
}
|
|
tracks/1/type = "method"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath(".")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0.05),
|
|
"transitions": PackedFloat32Array(1),
|
|
"values": [{
|
|
"args": [],
|
|
"method": &"reload_level"
|
|
}]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_jsgjq"]
|
|
_data = {
|
|
"whiteout": SubResource("Animation_4scpm")
|
|
}
|
|
|
|
[node name="DeadCam" type="Node3D" groups=["spawned"]]
|
|
script = ExtResource("1_qxtd8")
|
|
|
|
[node name="CameraRigid" type="RigidBody3D" parent="."]
|
|
collision_layer = 0
|
|
gravity_scale = 0.0
|
|
continuous_cd = true
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="CameraRigid"]
|
|
shape = SubResource("SphereShape3D_qnbpl")
|
|
|
|
[node name="Camera3D" type="Camera3D" parent="CameraRigid"]
|
|
rotation_edit_mode = 1
|
|
attributes = SubResource("CameraAttributesPractical_2gkpp")
|
|
fov = 15.0
|
|
|
|
[node name="LookRay" type="RayCast3D" parent="."]
|
|
rotation_edit_mode = 1
|
|
target_position = Vector3(0, 0, -1)
|
|
|
|
[node name="Timer" type="Timer" parent="."]
|
|
wait_time = 0.3
|
|
|
|
[node name="Whiteout" type="ColorRect" parent="."]
|
|
material = SubResource("CanvasItemMaterial_m5ien")
|
|
offset_right = 40.0
|
|
offset_bottom = 40.0
|
|
color = Color(0.8, 0.8, 0.8, 0.2)
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
libraries = {
|
|
"": SubResource("AnimationLibrary_jsgjq")
|
|
}
|
|
|
|
[node name="CamTarget" type="Node3D" parent="."]
|
|
|
|
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
|