Armazon/props/explosion/explosion.tscn

40 lines
1.3 KiB
Plaintext
Raw Normal View History

2024-01-28 13:44:54 -05:00
[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
2024-01-28 16:05:33 -05:00
omni_range = 8.0
2024-01-28 13:44:54 -05:00
[connection signal="timeout" from="Timer" to="." method="queue_free"]