[gd_scene load_steps=10 format=3 uid="uid://dtbpyfdawb02b"]

[ext_resource type="Script" uid="uid://boftqgpgqf56g" path="res://scripts/weapon_system/bomb/active_bomb.gd" id="1_avh0g"]
[ext_resource type="PackedScene" uid="uid://dftij0fdq3lbr" path="res://models/weapons/Bomb.glb" id="1_yh58y"]
[ext_resource type="AudioStream" uid="uid://blqgr0uweyg38" path="res://audio/bomb_beep.ogg" id="3_0eiu1"]
[ext_resource type="Script" uid="uid://da0xv360va3b3" path="res://scripts/audio_system/multiplayer_audio_3d.gd" id="4_rcpur"]
[ext_resource type="AudioStream" uid="uid://dlvwyj5erlhss" path="res://audio/defuse.ogg" id="5_rcpur"]
[ext_resource type="AudioStream" uid="uid://lmmqcovqat1u" path="res://audio/explosion.ogg" id="6_uibus"]

[sub_resource type="Curve" id="Curve_0eiu1"]
_limits = [0.0, 3.0, 0.0, 1.0]
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(0.667, 1), 0.0, 0.0, 0, 0, Vector2(0.667, 0.5), 0.0, 0.0, 0, 0, Vector2(0.888, 0.5), 0.0, 0.0, 0, 0, Vector2(0.889, 0.333), 0.0, 0.0, 0, 0, Vector2(1, 0.10352564), 0.0, 0.0, 0, 0]
point_count = 6

[sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_yh58y"]
properties/0/path = NodePath(".:position")
properties/0/spawn = true
properties/0/replication_mode = 2

[sub_resource type="BoxShape3D" id="BoxShape3D_avh0g"]
size = Vector3(1, 0.23214722, 0.8808594)

[node name="ActiveBomb" type="CharacterBody3D" node_paths=PackedStringArray("bomb_audio")]
collision_layer = 64
collision_mask = 0
script = ExtResource("1_avh0g")
bomb_audio = NodePath("BeepAudio")
tick_curve = SubResource("Curve_0eiu1")

[node name="Bomb" parent="." instance=ExtResource("1_yh58y")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.1307683, 0)

[node name="MultiplayerSynchronizer" type="MultiplayerSynchronizer" parent="."]
replication_config = SubResource("SceneReplicationConfig_yh58y")

[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.1431427, 0.06738281)
shape = SubResource("BoxShape3D_avh0g")

[node name="DefuseTimer" type="Timer" parent="."]
wait_time = 10.0
one_shot = true

[node name="BeepAudio" type="AudioStreamPlayer3D" parent="."]
stream = ExtResource("3_0eiu1")
attenuation_model = 1
max_distance = 200.0
bus = &"GameplayMain"
attenuation_filter_cutoff_hz = 10000.0
script = ExtResource("4_rcpur")
metadata/_custom_type_script = "uid://da0xv360va3b3"

[node name="DefuseAudio" type="AudioStreamPlayer3D" parent="."]
stream = ExtResource("5_rcpur")
max_distance = 100.0
bus = &"GameplayMain"
script = ExtResource("4_rcpur")
metadata/_custom_type_script = "uid://da0xv360va3b3"

[node name="BoomAudio" type="AudioStreamPlayer3D" parent="."]
stream = ExtResource("6_uibus")
attenuation_model = 3
max_distance = 500.0
bus = &"GameplayMisc"
script = ExtResource("4_rcpur")
metadata/_custom_type_script = "uid://da0xv360va3b3"

[connection signal="timeout" from="DefuseTimer" to="." method="on_defuse_timeout"]
