[gd_scene load_steps=9 format=3 uid="uid://bd65e03fscyxr"]

[ext_resource type="PackedScene" uid="uid://difwo7wlyqr3h" path="res://Scenes/Weapons/hitscan_weapon.tscn" id="1_6ph0d"]
[ext_resource type="Script" uid="uid://q3tg4ygw1ro7" path="res://Weapons/Sniper/weapon_sniper.gd" id="2_r0w4v"]
[ext_resource type="Texture2D" uid="uid://bepgxu7wtcl1i" path="res://Weapons/Sniper/scopetest.png" id="3_fhx8q"]
[ext_resource type="Resource" uid="uid://3y7n1vdvf822" path="res://Weapons/Sniper/weapon_stats.tres" id="3_mmfq3"]
[ext_resource type="Texture2D" uid="uid://cv2eycs1j0ho7" path="res://Weapons/Sniper/g_sniper.png" id="4_ub37g"]
[ext_resource type="AudioStream" uid="uid://dknygn5eyuhxt" path="res://Audio/shot1.wav" id="6_pd8iu"]

[sub_resource type="AtlasTexture" id="AtlasTexture_cussn"]
resource_local_to_scene = true
atlas = ExtResource("4_ub37g")
region = Rect2(0, 0, 64, 64)

[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_x11yr"]
random_pitch = 1.1
streams_count = 1
stream_0/stream = ExtResource("6_pd8iu")

[node name="HitscanWeapon" node_paths=PackedStringArray("scope_mask") instance=ExtResource("1_6ph0d")]
script = ExtResource("2_r0w4v")
scope_mask = NodePath("CanvasLayer")
stats = ExtResource("3_mmfq3")

[node name="Sprite3D" parent="." index="0"]
texture = SubResource("AtlasTexture_cussn")

[node name="CanvasLayer" type="CanvasLayer" parent="." index="4"]
visible = false

[node name="TextureRect" type="TextureRect" parent="CanvasLayer" index="0"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("3_fhx8q")

[node name="AudioStreamPlayer3D" parent="." index="6"]
stream = SubResource("AudioStreamRandomizer_x11yr")
