2022-01-01 18:43:50 +01:00
|
|
|
[gd_scene load_steps=19 format=3 uid="uid://egphnvwk6cg"]
|
2021-09-08 23:28:37 +02:00
|
|
|
|
|
|
|
[ext_resource type="Script" path="res://Assets/Effects/Gibs.gd" id="1_o0guu"]
|
2022-01-01 18:43:50 +01:00
|
|
|
[ext_resource type="Texture2D" uid="uid://pnh872qjk0oy" path="res://Assets/Effects/Flame.png" id="2_2ahev"]
|
2021-09-12 03:48:39 +02:00
|
|
|
[ext_resource type="PackedScene" uid="uid://c5cwnfuw4go1b" path="res://Assets/Audio/SoundPlayer.tscn" id="2_3tb4k"]
|
2021-09-25 17:28:32 +02:00
|
|
|
[ext_resource type="AudioStream" uid="uid://xv1jp0gql8tc" path="res://Assets/SFX/Player_Death_01.wav" id="3_hmhtq"]
|
2021-09-08 23:25:52 +02:00
|
|
|
|
2021-10-15 02:15:43 +02:00
|
|
|
[sub_resource type="Gradient" id="Gradient_tjffd"]
|
|
|
|
offsets = PackedFloat32Array(0, 0.874302, 1)
|
|
|
|
colors = PackedColorArray(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0)
|
2021-09-08 23:25:52 +02:00
|
|
|
|
2022-01-01 18:43:50 +01:00
|
|
|
[sub_resource type="GradientTexture1D" id="GradientTexture_07eoi"]
|
2021-10-15 02:15:43 +02:00
|
|
|
gradient = SubResource( "Gradient_tjffd" )
|
|
|
|
|
|
|
|
[sub_resource type="ParticlesMaterial" id="ParticlesMaterial_jcugi"]
|
|
|
|
lifetime_randomness = 0.15
|
|
|
|
emission_shape = 1
|
|
|
|
emission_sphere_radius = 0.5
|
|
|
|
spread = 180.0
|
|
|
|
initial_velocity_min = 1.0
|
|
|
|
initial_velocity_max = 8.0
|
2021-10-16 02:07:19 +02:00
|
|
|
angular_velocity_min = -15.0
|
|
|
|
angular_velocity_max = 15.0
|
|
|
|
damping_min = 0.1
|
|
|
|
damping_max = 0.2
|
|
|
|
angle_min = -180.0
|
|
|
|
angle_max = 180.0
|
|
|
|
scale_min = 0.5
|
|
|
|
scale_max = 3.0
|
2021-10-15 02:15:43 +02:00
|
|
|
color_ramp = SubResource( "GradientTexture_07eoi" )
|
|
|
|
sub_emitter_mode = 1
|
|
|
|
sub_emitter_frequency = 100.0
|
|
|
|
sub_emitter_keep_velocity = true
|
|
|
|
collision_enabled = true
|
|
|
|
collision_friction = 0.31
|
|
|
|
collision_bounce = 0.58
|
2021-10-16 02:07:19 +02:00
|
|
|
collision_use_scale = true
|
2021-10-15 02:15:43 +02:00
|
|
|
|
|
|
|
[sub_resource type="OpenSimplexNoise" id="OpenSimplexNoise_tchuy"]
|
|
|
|
octaves = 2
|
|
|
|
period = 16.0
|
|
|
|
|
|
|
|
[sub_resource type="NoiseTexture" id="NoiseTexture_ixngr"]
|
|
|
|
width = 64
|
|
|
|
height = 64
|
|
|
|
as_normal_map = true
|
|
|
|
noise = SubResource( "OpenSimplexNoise_tchuy" )
|
|
|
|
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_nvuyc"]
|
|
|
|
transparency = 1
|
|
|
|
vertex_color_use_as_albedo = true
|
|
|
|
albedo_color = Color(1, 0.0235294, 0, 1)
|
|
|
|
roughness = 0.14
|
|
|
|
normal_enabled = true
|
|
|
|
normal_texture = SubResource( "NoiseTexture_ixngr" )
|
|
|
|
|
|
|
|
[sub_resource type="SphereMesh" id="SphereMesh_ctp33"]
|
|
|
|
material = SubResource( "StandardMaterial3D_nvuyc" )
|
2021-09-08 23:25:52 +02:00
|
|
|
radius = 0.1
|
|
|
|
height = 0.2
|
|
|
|
radial_segments = 8
|
2021-10-15 02:15:43 +02:00
|
|
|
rings = 4
|
|
|
|
|
2022-01-01 18:43:50 +01:00
|
|
|
[sub_resource type="Gradient" id="Gradient_ftxfe"]
|
|
|
|
offsets = PackedFloat32Array(0, 0.121495, 1)
|
|
|
|
colors = PackedColorArray(0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 1)
|
2021-10-15 02:15:43 +02:00
|
|
|
|
2022-01-01 18:43:50 +01:00
|
|
|
[sub_resource type="GradientTexture1D" id="GradientTexture1D_ou20n"]
|
|
|
|
gradient = SubResource( "Gradient_ftxfe" )
|
|
|
|
|
|
|
|
[sub_resource type="Curve" id="Curve_rpme7"]
|
|
|
|
_data = [Vector2(0, 0.1), 0.0, 0.887726, 0, 0, Vector2(1, 1), 0.0, 0.0, 0, 0]
|
|
|
|
|
|
|
|
[sub_resource type="CurveTexture" id="CurveTexture_76rnk"]
|
|
|
|
curve = SubResource( "Curve_rpme7" )
|
2021-10-15 02:15:43 +02:00
|
|
|
|
|
|
|
[sub_resource type="ParticlesMaterial" id="ParticlesMaterial_6gu8h"]
|
2022-01-01 18:43:50 +01:00
|
|
|
lifetime_randomness = 0.3
|
|
|
|
emission_shape = 1
|
|
|
|
emission_sphere_radius = 0.1
|
|
|
|
spread = 180.0
|
|
|
|
gravity = Vector3(0, -1, 0)
|
|
|
|
angular_velocity_min = -5.0
|
|
|
|
angular_velocity_max = 5.0
|
|
|
|
damping_min = 10.0
|
|
|
|
damping_max = 14.0
|
|
|
|
angle_min = -180.0
|
|
|
|
angle_max = 180.0
|
|
|
|
scale_min = 4.0
|
|
|
|
scale_max = 8.0
|
|
|
|
scale_curve = SubResource( "CurveTexture_76rnk" )
|
|
|
|
color_ramp = SubResource( "GradientTexture1D_ou20n" )
|
|
|
|
hue_variation_min = -0.05
|
|
|
|
anim_offset_max = 4.0
|
2021-10-15 02:15:43 +02:00
|
|
|
collision_enabled = true
|
|
|
|
collision_friction = 0.93
|
2021-09-08 23:25:52 +02:00
|
|
|
|
2021-10-15 02:15:43 +02:00
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_u05mr"]
|
2022-01-01 18:43:50 +01:00
|
|
|
blend_mode = 1
|
|
|
|
shading_mode = 0
|
2021-10-15 02:15:43 +02:00
|
|
|
vertex_color_use_as_albedo = true
|
2022-01-01 18:43:50 +01:00
|
|
|
albedo_color = Color(0.129412, 0, 0, 1)
|
|
|
|
albedo_texture = ExtResource( "2_2ahev" )
|
2021-10-15 02:15:43 +02:00
|
|
|
billboard_mode = 3
|
2022-01-01 18:43:50 +01:00
|
|
|
particles_anim_h_frames = 2
|
|
|
|
particles_anim_v_frames = 2
|
2021-10-15 02:15:43 +02:00
|
|
|
particles_anim_loop = false
|
2022-01-01 18:43:50 +01:00
|
|
|
proximity_fade_enable = true
|
2021-09-08 23:25:52 +02:00
|
|
|
|
2021-10-15 02:15:43 +02:00
|
|
|
[sub_resource type="QuadMesh" id="QuadMesh_ho3xr"]
|
|
|
|
material = SubResource( "StandardMaterial3D_u05mr" )
|
|
|
|
|
|
|
|
[node name="GibbsEffect" type="Node3D"]
|
|
|
|
script = ExtResource( "1_o0guu" )
|
|
|
|
|
|
|
|
[node name="Gibs" type="GPUParticles3D" parent="."]
|
2022-01-01 18:43:50 +01:00
|
|
|
layers = 2
|
2021-09-08 23:25:52 +02:00
|
|
|
emitting = false
|
2021-10-16 02:07:19 +02:00
|
|
|
amount = 32
|
2021-10-15 02:15:43 +02:00
|
|
|
sub_emitter = NodePath("../Blood")
|
2021-09-08 23:25:52 +02:00
|
|
|
lifetime = 5.0
|
|
|
|
one_shot = true
|
|
|
|
explosiveness = 1.0
|
2021-10-15 02:15:43 +02:00
|
|
|
fixed_fps = 0
|
|
|
|
collision_base_size = 0.1
|
2021-10-16 02:07:19 +02:00
|
|
|
visibility_aabb = AABB(-4, -3.55666, -4, 8, 4.42876, 8)
|
2021-10-15 02:15:43 +02:00
|
|
|
process_material = SubResource( "ParticlesMaterial_jcugi" )
|
|
|
|
draw_pass_1 = SubResource( "SphereMesh_ctp33" )
|
|
|
|
|
|
|
|
[node name="Blood" type="GPUParticles3D" parent="."]
|
2022-01-01 18:43:50 +01:00
|
|
|
layers = 2
|
2021-10-15 02:15:43 +02:00
|
|
|
amount = 16
|
2022-01-01 18:43:50 +01:00
|
|
|
lifetime = 8.0
|
|
|
|
explosiveness = 1.0
|
2021-10-15 02:15:43 +02:00
|
|
|
randomness = 0.22
|
|
|
|
fixed_fps = 0
|
|
|
|
process_material = SubResource( "ParticlesMaterial_6gu8h" )
|
|
|
|
draw_pass_1 = SubResource( "QuadMesh_ho3xr" )
|
2021-09-08 23:28:37 +02:00
|
|
|
|
|
|
|
[node name="Timer" type="Timer" parent="."]
|
2022-01-01 18:43:50 +01:00
|
|
|
wait_time = 10.0
|
2021-09-08 23:28:37 +02:00
|
|
|
one_shot = true
|
|
|
|
autostart = true
|
|
|
|
|
2021-09-12 03:48:39 +02:00
|
|
|
[node name="SoundPlayer" parent="." instance=ExtResource( "2_3tb4k" )]
|
|
|
|
SoundClip = "res://Assets/SFX/Player_Death_01.wav"
|
|
|
|
AutoPlay = true
|
|
|
|
|
2021-09-25 17:28:32 +02:00
|
|
|
[node name="AudioStreamPlayer3D" parent="SoundPlayer" index="0"]
|
|
|
|
stream = ExtResource( "3_hmhtq" )
|
|
|
|
|
2021-09-08 23:28:37 +02:00
|
|
|
[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]
|
2021-09-25 17:28:32 +02:00
|
|
|
|
|
|
|
[editable path="SoundPlayer"]
|