cirnogodot/Scenes/Weapons/BaseWeapon_3D.tscn
2025-09-11 14:10:14 +02:00

41 lines
1.5 KiB
Text

[gd_scene load_steps=4 format=3 uid="uid://cfgc6ik8vb08c"]
[ext_resource type="Script" uid="uid://dutroqc0grqyv" path="res://Scripts/Weapons/Weapon3D.cs" id="1_gdxml"]
[ext_resource type="Texture2D" uid="uid://duwiasewxvcb5" path="res://Sprites/Items/Icicle_Gun.png" id="3_6jcxd"]
[ext_resource type="Script" uid="uid://cqwi5bt8mxykn" path="res://Scripts/Weapons/WeaponSoundModule3D.cs" id="3_s6td3"]
[node name="Weapon" type="Node3D" node_paths=PackedStringArray("Muzzle", "Pivot", "Sprite")]
script = ExtResource("1_gdxml")
Muzzle = NodePath("Muzzle")
Pivot = NodePath("Pivot")
Sprite = NodePath("Sprite3D")
[node name="Muzzle" type="Marker3D" parent="."]
[node name="Pivot" type="Marker3D" parent="."]
[node name="ShootTimer" type="Timer" parent="."]
one_shot = true
[node name="Sprite3D" type="Sprite3D" parent="."]
visible = false
pixel_size = 0.05
billboard = 1
texture_filter = 0
texture = ExtResource("3_6jcxd")
[node name="SoundModule" type="Node3D" parent="." node_paths=PackedStringArray("Weapon", "ShootSound", "ReloadSound", "EmptySound")]
script = ExtResource("3_s6td3")
Weapon = NodePath("..")
ShootSound = NodePath("ShootSound")
ReloadSound = NodePath("ReloadSound")
EmptySound = NodePath("EmptySound")
[node name="ShootSound" type="AudioStreamPlayer3D" parent="SoundModule"]
bus = &"Effects"
[node name="ReloadSound" type="AudioStreamPlayer3D" parent="SoundModule"]
bus = &"Effects"
[node name="EmptySound" type="AudioStreamPlayer3D" parent="SoundModule"]
bus = &"Effects"