trenches/godot/particles/explosion.tscn

81 lines
2.5 KiB
Plaintext

[gd_scene load_steps=10 format=3 uid="uid://be2yogspyg40p"]
[ext_resource type="Material" uid="uid://cnpi4nqbif0st" path="res://particles/materials/dirt_splatters.tres" id="1_70hen"]
[ext_resource type="AudioStream" uid="uid://bd3xk6geemrif" path="res://sounds/Bluezone_BC0277_explosion_urban_004_02.wav" id="2_h53mh"]
[sub_resource type="Curve" id="Curve_f77sp"]
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), -3.4158, 0.0, 0, 0]
point_count = 2
[sub_resource type="CurveTexture" id="CurveTexture_jj8d7"]
curve = SubResource("Curve_f77sp")
[sub_resource type="Curve" id="Curve_58b4i"]
max_value = 3.0
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(0.115242, 1.35758), 0.0, 0.0, 0, 0, Vector2(1, 2.58193), 1.60659, 0.0, 0, 0]
point_count = 3
[sub_resource type="CurveTexture" id="CurveTexture_62j87"]
curve = SubResource("Curve_58b4i")
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_2cudr"]
particle_flag_align_y = true
angle_min = 1.07288e-05
angle_max = 720.0
direction = Vector3(0, 0, 1)
spread = 2.905
initial_velocity_min = 1.5
initial_velocity_max = 10.0
scale_min = 1.12
scale_max = 1.12
scale_curve = SubResource("CurveTexture_62j87")
scale_over_velocity_min = 1.0
scale_over_velocity_max = 5.0
alpha_curve = SubResource("CurveTexture_jj8d7")
[sub_resource type="QuadMesh" id="QuadMesh_ccn0f"]
material = ExtResource("1_70hen")
size = Vector2(1.5, 1.5)
[sub_resource type="GDScript" id="GDScript_vkhqp"]
script/source = "extends GPUParticles3D
@export var play_on_ready = true;
func _ready():
self.emitting = self.play_on_ready
"
[node name="ExplosionParticles" type="GPUParticles3D"]
transform = Transform3D(-1, 0, -8.74228e-08, -8.74228e-08, 4.37114e-08, 1, 0, 1, -4.37114e-08, 0, 0, 0)
emitting = false
amount = 20
lifetime = 1.5
one_shot = true
explosiveness = 1.0
visibility_aabb = AABB(-3, -3, -1, 6, 6, 10)
draw_order = 3
process_material = SubResource("ParticleProcessMaterial_2cudr")
draw_pass_1 = SubResource("QuadMesh_ccn0f")
script = SubResource("GDScript_vkhqp")
[node name="CameraEffectSource" type="CameraEffectSource" parent="."]
play_on_ready = true
falloff = 100.0
intensity = 3.5
time = 0.4
[node name="Timer" type="Timer" parent="."]
wait_time = 4.0
one_shot = true
autostart = true
[node name="AudioStreamPlayer3D" type="AudioStreamPlayer3D" parent="."]
stream = ExtResource("2_h53mh")
unit_size = 50.0
autoplay = true
max_distance = 100.0
bus = &"Artillery"
[connection signal="timeout" from="Timer" to="." method="queue_free"]