BombExplosion.tscn 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. [gd_scene load_steps=7 format=3 uid="uid://byqa5t4adtjpf"]
  2. [ext_resource type="Script" path="res://entities/BombExplosion.gd" id="1_mglhi"]
  3. [ext_resource type="AudioStream" uid="uid://vitxxhsbxg3t" path="res://sfx/ncl_barrel_explode.ogg" id="2_0hpyx"]
  4. [ext_resource type="AudioStream" uid="uid://bprlrviwaya4t" path="res://sfx/ncl_bomb_explode_3.ogg" id="2_jkswn"]
  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="BombExplosion" type="Area3D"]
  14. collision_layer = 0
  15. collision_mask = 38
  16. script = ExtResource("1_mglhi")
  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.45
  23. autostart = true
  24. [node name="AudioStreamPlayer3D" type="AudioStreamPlayer3D" parent="."]
  25. stream = ExtResource("2_0hpyx")
  26. attenuation_model = 3
  27. volume_db = -1.901
  28. [node name="AudioStreamPlayer3D2" type="AudioStreamPlayer3D" parent="."]
  29. stream = ExtResource("2_jkswn")
  30. attenuation_model = 3
  31. volume_db = 2.169
  32. pitch_scale = 2.34
  33. autoplay = true
  34. [connection signal="body_entered" from="." to="." method="_on_Explosion_body_entered"]
  35. [connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]