[gd_scene load_steps=25 format=3 uid="uid://dfwe3bvh8lbbp"] [ext_resource type="PackedScene" uid="uid://b6aa41e8u5cxi" path="res://Assets/Weapons/Handgun/Casing.gltf" id="1"] [ext_resource type="Script" path="res://Assets/Weapons/Handgun/Casing.gd" id="1_kwgjj"] [ext_resource type="PackedScene" uid="uid://c5cwnfuw4go1b" path="res://Assets/Audio/SoundPlayer.tscn" id="3_47hc3"] [ext_resource type="Texture2D" uid="uid://cguy76rs8e220" path="res://Assets/Effects/Flame.png" id="4_p6m1d"] [ext_resource type="AudioStream" uid="uid://d2siwe07rwepl" path="res://Assets/SFX/Weapons_Handgun_Casing_01.wav" id="4_qmv6c"] [sub_resource type="CylinderShape3D" id="2"] radius = 0.079499 height = 0.179472 [sub_resource type="Animation" id="Animation_euct2"] resource_name = "Fade" length = 3.0 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Casing_LOD0:surface_material_override/0:transparency") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 1, "values": [1] } tracks/1/type = "value" tracks/1/imported = false tracks/1/enabled = true tracks/1/path = NodePath("Casing_LOD0:surface_material_override/0:albedo_color") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/keys = { "times": PackedFloat32Array(0, 3), "transitions": PackedFloat32Array(1, 1), "update": 0, "values": [Color(0.905882, 0.701961, 0.309804, 1), Color(0.905882, 0.701961, 0.309804, 0)] } tracks/2/type = "value" tracks/2/imported = false tracks/2/enabled = true tracks/2/path = NodePath("Casing_LOD0:surface_material_override/0:depth_draw_mode") tracks/2/interp = 1 tracks/2/loop_wrap = true tracks/2/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 1, "values": [1] } tracks/3/type = "value" tracks/3/imported = false tracks/3/enabled = true tracks/3/path = NodePath("Casing_LOD0:surface_material_override/0:cull_mode") tracks/3/interp = 1 tracks/3/loop_wrap = true tracks/3/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 1, "values": [0] } tracks/4/type = "method" tracks/4/imported = false tracks/4/enabled = true tracks/4/path = NodePath("..") tracks/4/interp = 1 tracks/4/loop_wrap = true tracks/4/keys = { "times": PackedFloat32Array(3), "transitions": PackedFloat32Array(1), "values": [{ "args": [], "method": &"queue_free" }] } [sub_resource type="Animation" id="Animation_u4pct"] length = 0.001 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true tracks/0/path = NodePath("Casing_LOD0:mesh:surface_1/material:transparency") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 0, "values": [0] } tracks/1/type = "value" tracks/1/imported = false tracks/1/enabled = true tracks/1/path = NodePath("Casing_LOD0:mesh:surface_1/material:albedo_color") tracks/1/interp = 1 tracks/1/loop_wrap = true tracks/1/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 0, "values": [Color(0.906332, 0.703778, 0.309292, 1)] } tracks/2/type = "value" tracks/2/imported = false tracks/2/enabled = true tracks/2/path = NodePath("Casing_LOD0:mesh:surface_1/material:depth_draw_mode") tracks/2/interp = 1 tracks/2/loop_wrap = true tracks/2/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 0, "values": [1] } tracks/3/type = "value" tracks/3/imported = false tracks/3/enabled = true tracks/3/path = NodePath("Casing_LOD0:mesh:surface_1/material:cull_mode") tracks/3/interp = 1 tracks/3/loop_wrap = true tracks/3/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 0, "values": [0] } tracks/4/type = "value" tracks/4/imported = false tracks/4/enabled = true tracks/4/path = NodePath("Casing_LOD0:surface_material_override/0:transparency") tracks/4/interp = 1 tracks/4/loop_wrap = true tracks/4/keys = { "times": PackedFloat32Array(0), "transitions": PackedFloat32Array(1), "update": 0, "values": [1] } [sub_resource type="Gradient" id="Gradient_hmrjy"] offsets = PackedFloat32Array(0, 0.13587, 0.875, 1) colors = PackedColorArray(0.211765, 0.211765, 0.211765, 0, 1, 1, 1, 1, 0.139394, 0.139394, 0.139394, 0.139394, 0, 0, 0, 0) [sub_resource type="GradientTexture1D" id="GradientTexture_cx0o7"] gradient = SubResource( "Gradient_hmrjy" ) [sub_resource type="Curve" id="Curve_40r7q"] _data = [Vector2(0, 0), 0.0, 6.27273, 0, 0, Vector2(0.207729, 0.618182), 0.812603, 0.812603, 0, 0, Vector2(1, 1), 0.0, 0.0, 0, 0] [sub_resource type="CurveTexture" id="CurveTexture_rxn7d"] curve = SubResource( "Curve_40r7q" ) [sub_resource type="ParticlesMaterial" id="ParticlesMaterial_bb1vw"] gravity = Vector3(0, 0, 0) damping_min = 2.3 damping_max = 3.24 angle_min = -541.3 angle_max = 705.1 scale_min = 0.1 scale_max = 0.12 scale_curve = SubResource( "CurveTexture_rxn7d" ) color = Color(0.0509804, 0.0509804, 0.0509804, 1) color_ramp = SubResource( "GradientTexture_cx0o7" ) anim_offset_max = 4.0 [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_0c0hx"] blend_mode = 1 specular_mode = 4 vertex_color_use_as_albedo = true albedo_color = Color(1, 1, 1, 0.0352941) albedo_texture = ExtResource( "4_p6m1d" ) backlight_enabled = true backlight = Color(1, 1, 1, 1) disable_receive_shadows = true billboard_mode = 3 particles_anim_h_frames = 2 particles_anim_v_frames = 2 particles_anim_loop = false proximity_fade_enable = true [sub_resource type="QuadMesh" id="QuadMesh_24v16"] material = SubResource( "StandardMaterial3D_0c0hx" ) [sub_resource type="TubeTrailMesh" id="TubeTrailMesh_syvhj"] radius = 0.106 sections = 10 [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_bhh7n"] use_particle_trails = true [sub_resource type="RibbonTrailMesh" id="RibbonTrailMesh_dh8q5"] material = SubResource( "StandardMaterial3D_bhh7n" ) size = 0.175 sections = 15 section_length = 1.25 [sub_resource type="ParticlesMaterial" id="ParticlesMaterial_vkp8p"] particle_flag_rotate_y = true gravity = Vector3(0, 0, 0) angular_velocity_min = -2.85 angular_velocity_max = -2.85 angle_min = -157.2 angle_max = 571.3 [sub_resource type="Curve" id="Curve_dd5oo"] _data = [Vector2(0, 0.327273), 0.0, 0.0, 0, 0, Vector2(1, 0.981818), 0.0929754, 0.0, 0, 0] [sub_resource type="Gradient" id="Gradient_585vn"] colors = PackedColorArray(1, 1, 1, 1, 0, 0, 0, 1) [sub_resource type="GradientTexture1D" id="GradientTexture_oxmwq"] gradient = SubResource( "Gradient_585vn" ) width = 128 [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_58gkl"] transparency = 4 albedo_color = Color(0.847059, 0.886275, 0.858824, 0.513726) albedo_texture = SubResource( "GradientTexture_oxmwq" ) [sub_resource type="RibbonTrailMesh" id="RibbonTrailMesh_fl8aq"] material = SubResource( "StandardMaterial3D_58gkl" ) size = 0.201 sections = 12 section_length = 0.239 curve = SubResource( "Curve_dd5oo" ) [node name="Casing" type="RigidDynamicBody3D"] transform = Transform3D(0.998201, 0, 0, 0, 0.998201, 0, 0, 0, 0.998201, 0, 0, 0) collision_layer = 8 collision_mask = 15 continuous_cd = true contacts_reported = 1 contact_monitor = true linear_damp = 0.032 angular_velocity = Vector3(-20, 40, 0) angular_damp = 0.392 script = ExtResource( "1_kwgjj" ) [node name="CollisionShape3D" type="CollisionShape3D" parent="."] transform = Transform3D(-4.37114e-08, -1, 1.06774e-14, 1, -4.37114e-08, 0, 4.03066e-21, 1.06774e-14, 1, 0, 0, 0) visible = false shape = SubResource( "2" ) disabled = true [node name="CollisionShape3D2" type="CollisionShape3D" parent="."] transform = Transform3D(-4.37114e-08, -1, 1.06774e-14, 1, -4.37114e-08, 0, 4.03066e-21, 1.06774e-14, 1, 0, 0, 0) shape = SubResource( "2" ) [node name="Casing" parent="." instance=ExtResource( "1" )] transform = Transform3D(1, 0, 1.06774e-14, 0, 1, 0, -1.06774e-14, 0, 1, 0, 0, 0) [node name="Casing_LOD0" parent="Casing" index="0"] gi_mode = 2 [node name="Timer" type="Timer" parent="."] wait_time = 5.0 one_shot = true autostart = true [node name="Sound" parent="." instance=ExtResource( "3_47hc3" )] SoundClip = "res://Assets/SFX/Weapons_Handgun_Casing_01.wav" PitchScale = 1.2 RandomizePitch = 0.015 Voice_Count = 2 [node name="AudioStreamPlayer3D" parent="Sound" index="0"] stream = ExtResource( "4_qmv6c" ) unit_db = -12.0 unit_size = 0.5 max_db = -3.0 pitch_scale = 1.5 [node name="AnimationPlayer" type="AnimationPlayer" parent="."] root_node = NodePath("../Casing") anims/Fade = SubResource( "Animation_euct2" ) anims/RESET = SubResource( "Animation_u4pct" ) [node name="Smoke" type="GPUParticles3D" parent="."] visible = false emitting = false amount = 256 lifetime = 0.5 one_shot = true explosiveness = 0.59 local_coords = false trail_length_secs = 2.0 process_material = SubResource( "ParticlesMaterial_bb1vw" ) draw_pass_1 = SubResource( "QuadMesh_24v16" ) [node name="MeshInstance3D" type="MeshInstance3D" parent="."] top_level = true visible = false mesh = SubResource( "TubeTrailMesh_syvhj" ) skeleton = NodePath("../SmokeTrail") [node name="SmokeTrail" type="GPUParticles3D" parent="."] visible = false emitting = false amount = 5 lifetime = 2.0 one_shot = true local_coords = false trail_enabled = true trail_length_secs = 2.0 process_material = SubResource( "ParticlesMaterial_bb1vw" ) draw_pass_1 = SubResource( "RibbonTrailMesh_dh8q5" ) [node name="GPUParticles3D" type="GPUParticles3D" parent="."] visible = false emitting = false one_shot = true local_coords = false trail_length_secs = 0.01 process_material = SubResource( "ParticlesMaterial_vkp8p" ) draw_pass_1 = SubResource( "RibbonTrailMesh_fl8aq" ) [connection signal="body_entered" from="." to="." method="_on_Casing_body_entered"] [connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"] [editable path="Casing"] [editable path="Sound"]