[gd_scene load_steps=6 format=3 uid="uid://c76b4wjk1d3m"] [ext_resource type="Script" path="res://scripts/explosion.gd" id="1_g623i"] [ext_resource type="Material" uid="uid://c6mmhwp5vwees" path="res://props/explosion/particles_explosion_base.tres" id="2_wx3ot"] [ext_resource type="Material" uid="uid://b5hxu5126xhvh" path="res://props/explosion/mat_explosion1.tres" id="3_42fix"] [ext_resource type="AudioStream" uid="uid://dws0mcymgoxxe" path="res://assets/audio/semiauto1.wav" id="4_eawmx"] [sub_resource type="SphereMesh" id="SphereMesh_l3hkb"] material = ExtResource("3_42fix") radius = 0.1 height = 0.2 [node name="Explosion" type="Node3D"] script = ExtResource("1_g623i") falloff_exponent = 1.5 impulse = 30 radius = 1.0 rumble_amount = 3.0 [node name="GPUParticles3D" type="GPUParticles3D" parent="."] transform = Transform3D(0.2, 0, 0, 0, 0.2, 0, 0, 0, 0.2, 0, 0, 0) amount = 20 lifetime = 0.5 speed_scale = 2.0 explosiveness = 0.91 randomness = 0.06 process_material = ExtResource("2_wx3ot") draw_pass_1 = SubResource("SphereMesh_l3hkb") [node name="Timer" type="Timer" parent="."] wait_time = 2.0 one_shot = true autostart = true [node name="light" type="OmniLight3D" parent="."] light_color = Color(0.85098, 0.658824, 0.443137, 1) light_energy = 8.325 [node name="gunshot" type="AudioStreamPlayer3D" parent="."] stream = ExtResource("4_eawmx") autoplay = true bus = &"Explosion" [connection signal="timeout" from="Timer" to="." method="queue_free"]