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

[ext_resource type="PackedScene" uid="uid://cjtln1brv5njd" path="res://entities/GridBasedMovable.tscn" id="1_4n8nh"]
[ext_resource type="Script" path="res://entities/objects/barrels/Barrel.gd" id="2_o6b1a"]
[ext_resource type="Material" uid="uid://ca23453el54m" path="res://entities/objects/barrels/BarrelHeavyDamaged.material" id="3_ucuyk"]
[ext_resource type="Material" uid="uid://vajmcxampdte" path="res://entities/objects/barrels/BarrelHeavy.material" id="3_uf008"]
[ext_resource type="ArrayMesh" uid="uid://crpw8457ver6m" path="res://entities/objects/barrels/barrel.obj" id="4_70v5n"]
[ext_resource type="AudioStream" uid="uid://c55xab6gunkcp" path="res://sfx/ncl_barrel_spill.ogg" id="6_ncje2"]

[node name="BarrelHeavy" groups=["barrel", "heavy", "pushable"] instance=ExtResource("1_4n8nh")]
collision_mask = 39
script = ExtResource("2_o6b1a")
damaged = false
can_slide = true

[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("4_70v5n")
surface_material_override/0 = ExtResource("3_uf008")

[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("4_70v5n")
skeleton = NodePath("../..")
surface_material_override/0 = ExtResource("3_ucuyk")

[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="AudioStreamPlayer3D" type="AudioStreamPlayer3D" parent="." index="7"]
stream = ExtResource("6_ncje2")
attenuation_model = 3

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

[editable path="RC_Holder"]
