39 lines
1.2 KiB
Plaintext
39 lines
1.2 KiB
Plaintext
|
[gd_scene load_steps=5 format=3 uid="uid://shfm0c37j4hq"]
|
||
|
|
||
|
[ext_resource type="Script" path="res://scripts/explosion.gd" id="1_j63ju"]
|
||
|
[ext_resource type="Material" uid="uid://c6mmhwp5vwees" path="res://props/explosion/particles_explosion_base.tres" id="2_22xd8"]
|
||
|
[ext_resource type="SphereMesh" uid="uid://24yblk8t3pi4" path="res://props/explosion/mesh_sphere.tres" id="3_0jqin"]
|
||
|
[ext_resource type="AudioStream" uid="uid://b1n4346uxxvpa" path="res://assets/audio/explosion_rand.tres" id="4_wd86q"]
|
||
|
|
||
|
[node name="Explosion" type="Node3D"]
|
||
|
script = ExtResource("1_j63ju")
|
||
|
falloff_exponent = 1.0
|
||
|
impulse = 100
|
||
|
radius = 3.0
|
||
|
|
||
|
[node name="GPUParticles3D" type="GPUParticles3D" parent="."]
|
||
|
emitting = false
|
||
|
amount = 20
|
||
|
lifetime = 0.5
|
||
|
one_shot = true
|
||
|
explosiveness = 0.91
|
||
|
randomness = 0.06
|
||
|
process_material = ExtResource("2_22xd8")
|
||
|
draw_pass_1 = ExtResource("3_0jqin")
|
||
|
|
||
|
[node name="Timer" type="Timer" parent="."]
|
||
|
wait_time = 2.0
|
||
|
one_shot = true
|
||
|
autostart = true
|
||
|
|
||
|
[node name="blast" type="AudioStreamPlayer3D" parent="."]
|
||
|
stream = ExtResource("4_wd86q")
|
||
|
autoplay = true
|
||
|
bus = &"Explosion"
|
||
|
|
||
|
[node name="light" type="OmniLight3D" parent="."]
|
||
|
light_color = Color(0.85098, 0.658824, 0.443137, 1)
|
||
|
light_energy = 8.325
|
||
|
|
||
|
[connection signal="timeout" from="Timer" to="." method="queue_free"]
|