[gd_scene load_steps=15 format=3 uid="uid://d2hnxr5l6w2x4"] [ext_resource type="Script" uid="uid://dv40fyim2g2fa" path="res://src/equipment/wide_spray/wide_spray.gd" id="1_ggkto"] [ext_resource type="Material" uid="uid://c00gndxoepuqh" path="res://assets/materials/laser_spray.tres" id="2_26efp"] [ext_resource type="Texture2D" uid="uid://cx28sj02y31kj" path="res://assets/ui/hud/reticle_crosshair.png" id="3_78jy6"] [ext_resource type="PackedScene" uid="uid://b8vradbaw61ga" path="res://src/equipment/laser_cast/laser_cast.tscn" id="3_xahet"] [ext_resource type="Texture2D" uid="uid://carrggw6kp14w" path="res://assets/ui/hud/reticle_left.png" id="4_rotxf"] [ext_resource type="Texture2D" uid="uid://wp03nuwt8hp5" path="res://assets/ui/hud/reticle_right.png" id="5_xo3vu"] [sub_resource type="CylinderMesh" id="CylinderMesh_48buk"] material = ExtResource("2_26efp") top_radius = 0.0 bottom_radius = 0.7 radial_segments = 6 [sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_pr4yq"] direction = Vector3(0, 0, -1) spread = 15.0 flatness = 0.82 initial_velocity_min = 3.5 initial_velocity_max = 3.5 gravity = Vector3(0, 0, 0) [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_6k0bn"] vertex_color_use_as_albedo = true albedo_color = Color(0, 1, 0.301961, 0.392157) emission_enabled = true emission = Color(0, 1, 0.301961, 1) emission_energy_multiplier = 10.0 texture_filter = 2 billboard_mode = 3 billboard_keep_scale = true particles_anim_h_frames = 1 particles_anim_v_frames = 1 particles_anim_loop = false [sub_resource type="QuadMesh" id="QuadMesh_trcry"] material = SubResource("StandardMaterial3D_6k0bn") size = Vector2(0.005, 0.005) [sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_lyk2j"] direction = Vector3(0, 0, -1) spread = 15.0 flatness = 0.82 initial_velocity_min = 8.0 initial_velocity_max = 8.0 gravity = Vector3(0, 0, 0) [sub_resource type="Animation" id="Animation_ay2b7"] resource_name = "rotate" length = 0.1 step = 0.0333 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Pivot:rotation") tracks/0/interp = 2 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0, 0.1), "transitions": PackedFloat32Array(1.618, 1), "update": 0, "values": [Vector3(0, 0, 0), Vector3(0, 0, 1.5708)] } [sub_resource type="Animation" id="Animation_ku0nd"] length = 0.001 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Pivot:rotation") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 0, "values": [Vector3(0, 0, 0)] } [sub_resource type="AnimationLibrary" id="AnimationLibrary_fmqw2"] _data = { &"RESET": SubResource("Animation_ku0nd"), &"rotate": SubResource("Animation_ay2b7") } [node name="WideSpray" type="Node3D"] script = ExtResource("1_ggkto") [node name="Pivot" type="Node3D" parent="."] [node name="SprayCasts" type="Node3D" parent="Pivot"] unique_name_in_owner = true [node name="LaserCast" parent="Pivot/SprayCasts" node_paths=PackedStringArray("parent_tool") instance=ExtResource("3_xahet")] target_position = Vector3(-0.5, 0, -2) parent_tool = NodePath("../../..") [node name="LaserCast2" parent="Pivot/SprayCasts" node_paths=PackedStringArray("parent_tool") instance=ExtResource("3_xahet")] target_position = Vector3(-0.333, 0, -2) parent_tool = NodePath("../../..") [node name="LaserCast3" parent="Pivot/SprayCasts" node_paths=PackedStringArray("parent_tool") instance=ExtResource("3_xahet")] target_position = Vector3(-0.167, 0, -2) parent_tool = NodePath("../../..") [node name="LaserCast4" parent="Pivot/SprayCasts" node_paths=PackedStringArray("parent_tool") instance=ExtResource("3_xahet")] parent_tool = NodePath("../../..") [node name="LaserCast5" parent="Pivot/SprayCasts" node_paths=PackedStringArray("parent_tool") instance=ExtResource("3_xahet")] target_position = Vector3(0.167, 0, -2) parent_tool = NodePath("../../..") [node name="LaserCast6" parent="Pivot/SprayCasts" node_paths=PackedStringArray("parent_tool") instance=ExtResource("3_xahet")] target_position = Vector3(0.333, 0, -2) parent_tool = NodePath("../../..") [node name="LaserCast7" parent="Pivot/SprayCasts" node_paths=PackedStringArray("parent_tool") instance=ExtResource("3_xahet")] target_position = Vector3(0.5, 0, -2) parent_tool = NodePath("../../..") [node name="SprayEffect" type="MeshInstance3D" parent="Pivot"] unique_name_in_owner = true transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -0.15, 0, 1, -6.55671e-09, 0, 0, -1) layers = 2 sorting_offset = 1.0 mesh = SubResource("CylinderMesh_48buk") skeleton = NodePath("../..") [node name="ReticleDecals" type="Node3D" parent="Pivot"] [node name="CrosshairDecal" type="Decal" parent="Pivot/ReticleDecals"] transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, -1) size = Vector3(0.2, 2, 0.2) texture_albedo = ExtResource("3_78jy6") cull_mask = 1048573 [node name="LeftPivot" type="Node3D" parent="Pivot/ReticleDecals"] transform = Transform3D(0.970296, 0, 0.241922, 0, 1, 0, -0.241922, 0, 0.970296, 0, 0, 0) [node name="LeftDecal" type="Decal" parent="Pivot/ReticleDecals/LeftPivot"] transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, -1) size = Vector3(0.2, 2, 0.2) texture_albedo = ExtResource("4_rotxf") cull_mask = 1048573 [node name="RightPivot" type="Node3D" parent="Pivot/ReticleDecals"] transform = Transform3D(0.970296, 0, -0.241922, 0, 1, 0, 0.241922, 0, 0.970296, 0, 0, 0) [node name="RightDecal" type="Decal" parent="Pivot/ReticleDecals/RightPivot"] transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, -1) size = Vector3(0.2, 2, 0.2) texture_albedo = ExtResource("5_xo3vu") cull_mask = 1048573 [node name="BeamParticles1" type="GPUParticles3D" parent="Pivot"] unique_name_in_owner = true amount = 16 lifetime = 0.5 local_coords = true process_material = SubResource("ParticleProcessMaterial_pr4yq") draw_pass_1 = SubResource("QuadMesh_trcry") [node name="BeamParticles2" type="GPUParticles3D" parent="Pivot"] unique_name_in_owner = true lifetime = 0.2 local_coords = true process_material = SubResource("ParticleProcessMaterial_lyk2j") draw_pass_1 = SubResource("QuadMesh_trcry") [node name="AnimationPlayer" type="AnimationPlayer" parent="."] unique_name_in_owner = true libraries = { &"": SubResource("AnimationLibrary_fmqw2") } [connection signal="animation_finished" from="AnimationPlayer" to="." method="_on_animation_finished"]