[gd_scene load_steps=8 format=3 uid="uid://3ul86s2htcec"]

[ext_resource type="PackedScene" uid="uid://cjtln1brv5njd" path="res://entities/GridBasedMovable.tscn" id="1_cy2e2"]
[ext_resource type="Script" path="res://entities/objects/bomb/Bomb.gd" id="2_mnmce"]
[ext_resource type="Material" uid="uid://sg0vyrmyrd5e" path="res://entities/objects/bomb/Bomb.material" id="3_16g4u"]
[ext_resource type="ArrayMesh" uid="uid://dt4h8l8euesg0" path="res://entities/objects/bomb/bomb.obj" id="3_hquj5"]
[ext_resource type="AudioStream" uid="uid://gruxwtqoawhc" path="res://sfx/ncl_bomb_fuse.ogg" id="5_a34v0"]

[sub_resource type="Animation" id="Animation_8wkww"]
resource_name = "pre_explode"
length = 3.0
tracks/0/type = "scale_3d"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath(".")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = PackedFloat32Array(0, 1, 1, 1, 1, 0.5, 1, 0.8, 0.8, 0.8, 1, 1, 1, 1, 1, 1.5, 1, 0.8, 0.8, 0.8, 2, 1, 1, 1, 1, 2.3, 1, 0.8, 0.8, 0.8, 2.6, 1, 1.1, 1.1, 1.1, 2.7, 1, 0.8, 0.8, 0.8, 2.9, 1, 1, 1, 1)
tracks/1/type = "method"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("../..")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(3),
"transitions": PackedFloat32Array(1),
"values": [{
"args": [],
"method": &"explode"
}]
}

[sub_resource type="AnimationLibrary" id="AnimationLibrary_tyigv"]
_data = {
"pre_explode": SubResource("Animation_8wkww")
}

[node name="Bomb" groups=["bomb", "pushable"] instance=ExtResource("1_cy2e2")]
script = ExtResource("2_mnmce")
can_slide = true

[node name="StaticMesh" parent="RotationPoint" index="1"]
transform = Transform3D(0.92, 0, 0, 0, 0.92, 0, 0, 0, 0.92, 0, 0, 0)
material_override = ExtResource("3_16g4u")
mesh = ExtResource("3_hquj5")
surface_material_override/0 = ExtResource("3_16g4u")

[node name="AnimationPlayer" type="AnimationPlayer" parent="RotationPoint" index="2"]
root_node = NodePath("../StaticMesh")
autoplay = "pre_explode"
libraries = {
"": SubResource("AnimationLibrary_tyigv")
}

[node name="Timer" parent="." index="2"]
wait_time = 0.15

[node name="RayCastFront" parent="RC_Holder" index="0"]
collision_mask = 23

[node name="RayCastBack" parent="RC_Holder" index="3"]
collision_mask = 15

[node name="Health" parent="." index="5"]
max_health = 2

[node name="InvulnerableTimer" type="Timer" parent="." index="7"]
wait_time = 0.05
one_shot = true
autostart = true

[node name="AudioStreamPlayer3D" type="AudioStreamPlayer3D" parent="." index="8"]
stream = ExtResource("5_a34v0")
volume_db = 13.115
autoplay = true

[connection signal="no_health" from="Health" to="." method="_on_Health_no_health"]

[editable path="RC_Holder"]
