[gd_scene load_steps=7 format=3 uid="uid://cbww5yj33obey"]

[ext_resource type="PackedScene" uid="uid://cjtln1brv5njd" path="res://entities/GridBasedMovable.tscn" id="1_0pxhp"]
[ext_resource type="Script" path="res://entities/objects/barrels/Barrel.gd" id="1_66mng"]
[ext_resource type="Material" uid="uid://bmbq5uhjflbbh" path="res://entities/objects/barrels/BarrelDamaged.material" id="3_8dhdw"]
[ext_resource type="Material" uid="uid://bagn0pykapkl5" path="res://entities/objects/barrels/Barrel.material" id="3_34cdb"]
[ext_resource type="ArrayMesh" uid="uid://crpw8457ver6m" path="res://entities/objects/barrels/barrel.obj" id="3_qvtxo"]
[ext_resource type="AudioStream" uid="uid://c55xab6gunkcp" path="res://sfx/ncl_barrel_spill.ogg" id="6_vp1sq"]

[node name="Barrel" groups=["barrel", "pullable", "pushable"] instance=ExtResource("1_0pxhp")]
collision_mask = 39
script = ExtResource("1_66mng")
damaged = false
can_slide = true
enable_rotation = null

[node name="AudioStreamPlayer3D" type="AudioStreamPlayer3D" parent="." index="0"]
stream = ExtResource("6_vp1sq")
attenuation_model = 3

[node name="StaticMesh" parent="RotationPoint" index="1"]
transform = Transform3D(0.258819, 0, 0.965926, 0, 1, 0, -0.965926, 0, 0.258819, 0, 0, 0)
mesh = ExtResource("3_qvtxo")
surface_material_override/0 = ExtResource("3_34cdb")

[node name="MeshInstanceDamaged" type="MeshInstance3D" parent="RotationPoint" index="2"]
transform = Transform3D(0.258819, 0, 0.965926, 0, 1, 0, -0.965926, 0, 0.258819, 0, 0, 0)
visible = false
mesh = ExtResource("3_qvtxo")
skeleton = NodePath("../..")
surface_material_override/0 = ExtResource("3_8dhdw")

[node name="Timer" parent="." index="3"]
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="6"]
max_health = 2

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

[editable path="RC_Holder"]
