Explosion.tscn 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. [gd_scene load_steps=7 format=3 uid="uid://egs8pukr0j5m"]
  2. [ext_resource type="Script" path="res://entities/Explosion.gd" id="1_l7pou"]
  3. [ext_resource type="AudioStream" uid="uid://vitxxhsbxg3t" path="res://sfx/ncl_barrel_explode.ogg" id="2_3dpp0"]
  4. [ext_resource type="AudioStream" uid="uid://bprlrviwaya4t" path="res://sfx/ncl_bomb_explode_3.ogg" id="3_wl1uf"]
  5. [sub_resource type="BoxShape3D" id="BoxShape3D_3v0ip"]
  6. size = Vector3(6, 4, 6)
  7. [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_rmy62"]
  8. transparency = 1
  9. albedo_color = Color(0.188235, 0.156863, 0.137255, 0.729412)
  10. [sub_resource type="SphereMesh" id="SphereMesh_u8hby"]
  11. material = SubResource("StandardMaterial3D_rmy62")
  12. radius = 3.0
  13. [node name="Explosion" type="Area3D"]
  14. collision_layer = 0
  15. collision_mask = 38
  16. script = ExtResource("1_l7pou")
  17. [node name="CollisionShape3D" type="CollisionShape3D" parent="."]
  18. shape = SubResource("BoxShape3D_3v0ip")
  19. [node name="MeshInstance3D" type="MeshInstance3D" parent="."]
  20. mesh = SubResource("SphereMesh_u8hby")
  21. [node name="Timer" type="Timer" parent="."]
  22. wait_time = 0.3
  23. autostart = true
  24. [node name="AudioStreamPlayer3D" type="AudioStreamPlayer3D" parent="."]
  25. stream = ExtResource("2_3dpp0")
  26. attenuation_model = 3
  27. autoplay = true
  28. [node name="AudioStreamPlayer3D2" type="AudioStreamPlayer3D" parent="."]
  29. stream = ExtResource("3_wl1uf")
  30. attenuation_model = 3
  31. autoplay = true
  32. [connection signal="body_entered" from="." to="." method="_on_Explosion_body_entered"]
  33. [connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]