[gd_scene load_steps=17 format=3 uid="uid://ikiqohjvlqni"] [ext_resource type="Script" path="res://Assets/Weapons/Handgun/Flash.gd" id="1_ob70b"] [ext_resource type="Texture2D" uid="uid://pnh872qjk0oy" path="res://Assets/Effects/Flame.png" id="2_1simy"] [sub_resource type="Animation" id="1"] length = 0.1 step = 0.025 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("OmniLight3D:light_color") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0, 0.025, 0.05, 0.1), "transitions": PackedFloat32Array(1, 1, 1, 1), "update": 0, "values": [Color(1, 1, 1, 1), Color(1, 0.933333, 0.380392, 1), Color(1, 0.637428, 0.415262, 1), Color(0, 0, 0, 1)] } [sub_resource type="Animation" id="2"] length = 0.001 [sub_resource type="Animation" id="3"] length = 0.001 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("OmniLight3D:light_color") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 0, "values": [Color(1, 1, 1, 1)] } [sub_resource type="Gradient" id="Gradient_jrhpo"] interpolation_mode = 2 offsets = PackedFloat32Array(0, 0.0422535, 0.122066, 0.211268, 0.319249, 1) colors = PackedColorArray(0, 0, 0, 1, 3, 2.4, 0.4, 1, 1.78272, 1.24586, 0.237743, 1, 1.38889, 0.872464, 0.185248, 1, 1, 0.503748, 0.133411, 1, 0, 0, 0, 1) [sub_resource type="GradientTexture1D" id="GradientTexture1D_lue3h"] gradient = SubResource( "Gradient_jrhpo" ) use_hdr = true [sub_resource type="Curve" id="Curve_dhha2"] _data = [Vector2(0, 0.154545), 0.0, 5.74743, 0, 0, Vector2(0.173729, 0.872727), 1.49824, 1.49824, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0] [sub_resource type="CurveTexture" id="CurveTexture_n25a7"] curve = SubResource( "Curve_dhha2" ) [sub_resource type="ParticlesMaterial" id="ParticlesMaterial_fglo4"] lifetime_randomness = 0.25 direction = Vector3(0, 0, -1) spread = 5.0 gravity = Vector3(0, 0, 0) initial_velocity_min = 5.0 initial_velocity_max = 25.0 angular_velocity_min = -5.0 angular_velocity_max = 5.0 damping_min = 18.58 damping_max = 18.67 angle_min = -180.0 angle_max = 180.0 scale_max = 1.5 scale_curve = SubResource( "CurveTexture_n25a7" ) color_ramp = SubResource( "GradientTexture1D_lue3h" ) anim_offset_max = 4.0 collision_enabled = true collision_friction = 1.0 collision_use_scale = true [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_gjqv3"] blend_mode = 1 shading_mode = 0 vertex_color_use_as_albedo = true albedo_texture = ExtResource( "2_1simy" ) billboard_mode = 3 particles_anim_h_frames = 2 particles_anim_v_frames = 2 particles_anim_loop = false [sub_resource type="QuadMesh" id="QuadMesh_o6i5g"] material = SubResource( "StandardMaterial3D_gjqv3" ) size = Vector2(0.3, 0.3) [sub_resource type="StandardMaterial3D" id="6"] blend_mode = 1 shading_mode = 0 vertex_color_use_as_albedo = true albedo_color = Color(3, 3, 3, 1) albedo_texture = ExtResource( "2_1simy" ) billboard_mode = 3 particles_anim_h_frames = 2 particles_anim_v_frames = 2 particles_anim_loop = false [sub_resource type="QuadMesh" id="7"] material = SubResource( "6" ) size = Vector2(0.3, 0.3) [sub_resource type="Curve" id="8"] _data = [Vector2(0, 0), 0.0, 8.69697, 0, 0, Vector2(0.501742, 0.918182), -1.36667, -1.36667, 0, 0, Vector2(1, 0.0363636), -3.03219, 0.0, 0, 0] [sub_resource type="Gradient" id="9"] offsets = PackedFloat32Array(0, 0.0568182, 0.454545, 0.746212, 1) colors = PackedColorArray(1, 1, 1, 1, 2, 1.7, 0.7, 1, 1, 0.682129, 0.34375, 1, 0.675781, 0.355111, 0.0976715, 1, 0, 0, 0, 1) [node name="Flash" type="Node3D"] script = ExtResource( "1_ob70b" ) [node name="AnimationPlayer" type="AnimationPlayer" parent="."] autoplay = "Off" anims/Flash = SubResource( "1" ) anims/Off = SubResource( "2" ) anims/RESET = SubResource( "3" ) [node name="GPUParticles3D" type="GPUParticles3D" parent="."] transform = Transform3D(1, 0, 0, 0, 0, -1, 0, 1, 0, 0, 0, 0) emitting = false amount = 32 lifetime = 0.25 one_shot = true speed_scale = 2.0 explosiveness = 1.0 fixed_fps = 0 interpolate = false process_material = SubResource( "ParticlesMaterial_fglo4" ) draw_pass_1 = SubResource( "QuadMesh_o6i5g" ) [node name="CPUParticles3D" type="CPUParticles3D" parent="."] visible = false emitting = false lifetime = 0.15 one_shot = true explosiveness = 1.0 lifetime_randomness = 0.2 fixed_fps = 120 mesh = SubResource( "7" ) particle_flag_rotate_y = true direction = Vector3(0, 1, 0) spread = 0.0 gravity = Vector3(0, 0, 0) initial_velocity_min = 1.0 initial_velocity_max = 10.0 angle_min = -180.0 angle_max = 180.0 scale_amount_curve = SubResource( "8" ) color_ramp = SubResource( "9" ) anim_offset_max = 1.0 [node name="Timer" type="Timer" parent="."] wait_time = 0.5 one_shot = true autostart = true [node name="OmniLight3D" type="OmniLight3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.160545, 0) light_energy = 5.0 light_size = 0.25 light_bake_mode = 0 shadow_enabled = true omni_range = 100.0 omni_attenuation = 4.0 [connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]