fixed death cam fov and added damage numbers
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://by7qyyhyurlw"]
|
||||
[gd_scene load_steps=6 format=3 uid="uid://by7qyyhyurlw"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/dead_cam.gd" id="1_qxtd8"]
|
||||
|
||||
@@ -8,12 +8,51 @@ 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 = 1
|
||||
|
||||
[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(1, 1, 1, 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="Camera3D" type="Camera3D" parent="."]
|
||||
attributes = SubResource("CameraAttributesPractical_2gkpp")
|
||||
fov = 13.6855
|
||||
fov = 15.0
|
||||
|
||||
[node name="LookRay" type="RayCast3D" parent="."]
|
||||
target_position = Vector3(0, 0, -1)
|
||||
@@ -22,4 +61,15 @@ target_position = Vector3(0, 0, -1)
|
||||
wait_time = 0.4
|
||||
one_shot = true
|
||||
|
||||
[node name="Whiteout" type="ColorRect" parent="."]
|
||||
material = SubResource("CanvasItemMaterial_m5ien")
|
||||
offset_right = 40.0
|
||||
offset_bottom = 40.0
|
||||
color = Color(1, 1, 1, 0)
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_jsgjq")
|
||||
}
|
||||
|
||||
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
|
||||
|
||||
Reference in New Issue
Block a user