37 lines
1.6 KiB
Plaintext
37 lines
1.6 KiB
Plaintext
[gd_scene format=3 uid="uid://bn3t6sjupdxgi"]
|
|
|
|
[ext_resource type="Script" uid="uid://bp3o5klntwmhd" path="res://Scripts/Weapons/hitscan_weapon.gd" id="1_yvp43"]
|
|
[ext_resource type="Resource" uid="uid://smctw4ogm4rx" path="res://Weapons/Assault/weapon_stats.tres" id="2_2k4c7"]
|
|
[ext_resource type="AudioStream" uid="uid://dknygn5eyuhxt" path="res://Audio/shot1.wav" id="2_5wfsb"]
|
|
[ext_resource type="PackedScene" uid="uid://bjjlhmhfytbvm" path="res://Weapons/Assault/BoltGun.glb" id="4_5wfsb"]
|
|
|
|
[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_1hdrg"]
|
|
random_pitch = 1.1
|
|
streams_count = 1
|
|
stream_0/stream = ExtResource("2_5wfsb")
|
|
|
|
[node name="Rifle" type="Node3D" unique_id=1518167828 node_paths=PackedStringArray("raycast", "audio_player", "recharge_timer")]
|
|
script = ExtResource("1_yvp43")
|
|
raycast = NodePath("RayCast3D")
|
|
stats = ExtResource("2_2k4c7")
|
|
audio_player = NodePath("AudioStreamPlayer3D")
|
|
recharge_timer = NodePath("Timer")
|
|
metadata/_custom_type_script = "uid://bp3o5klntwmhd"
|
|
|
|
[node name="RayCast3D" type="RayCast3D" parent="." unique_id=1349784403]
|
|
target_position = Vector3(0, 0, -1)
|
|
collision_mask = 4
|
|
|
|
[node name="Timer" type="Timer" parent="." unique_id=2110782459]
|
|
wait_time = 4.0
|
|
one_shot = true
|
|
|
|
[node name="AudioStreamPlayer3D" type="AudioStreamPlayer3D" parent="." unique_id=2124501556]
|
|
stream = SubResource("AudioStreamRandomizer_1hdrg")
|
|
bus = &"SFX"
|
|
|
|
[node name="BoltGun" parent="." unique_id=566167059 instance=ExtResource("4_5wfsb")]
|
|
transform = Transform3D(-0.07, 0, -1.0569706e-08, 0, 0.07, 0, 1.0569706e-08, 0, -0.07, 0, 0.15755616, -0.10932771)
|
|
|
|
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
|