2025-04-26 16:02:13 +01:00
|
|
|
[gd_scene load_steps=17 format=3 uid="uid://cav22qho14o47"]
|
2025-04-23 11:56:29 +01:00
|
|
|
|
2025-04-26 16:02:13 +01:00
|
|
|
[ext_resource type="Script" uid="uid://ca8i18spgok4i" path="res://scripts/bullet.gd" id="1_rsjgb"]
|
2025-04-23 11:56:29 +01:00
|
|
|
[ext_resource type="Shader" uid="uid://jtlad4viky6j" path="res://addons/GPUTrail/shaders/trail.gdshader" id="1_ucnj8"]
|
|
|
|
[ext_resource type="Shader" uid="uid://cxd8wfunwre2a" path="res://addons/GPUTrail/shaders/trail_draw_pass.gdshader" id="2_rsjgb"]
|
|
|
|
[ext_resource type="Script" uid="uid://cdubip3a6325r" path="res://addons/GPUTrail/GPUTrail3D.gd" id="4_pt3a8"]
|
|
|
|
|
|
|
|
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_3ndsa"]
|
|
|
|
radius = 0.1
|
|
|
|
height = 0.3
|
|
|
|
|
|
|
|
[sub_resource type="ShaderMaterial" id="ShaderMaterial_fsn5s"]
|
|
|
|
shader = ExtResource("1_ucnj8")
|
|
|
|
|
|
|
|
[sub_resource type="Gradient" id="Gradient_6sxjd"]
|
2025-04-26 16:02:13 +01:00
|
|
|
offsets = PackedFloat32Array(0, 0.150862, 0.642241, 1)
|
|
|
|
colors = PackedColorArray(1, 1, 1, 1, 1, 0.920817, 0, 0.849138, 0.695312, 0.044384, 0, 0.357759, 1, 1, 1, 0)
|
2025-04-23 11:56:29 +01:00
|
|
|
|
|
|
|
[sub_resource type="GradientTexture1D" id="GradientTexture1D_od3fb"]
|
|
|
|
gradient = SubResource("Gradient_6sxjd")
|
|
|
|
|
|
|
|
[sub_resource type="Curve" id="Curve_tmmim"]
|
2025-04-26 16:02:13 +01:00
|
|
|
_limits = [0.0, 0.1, 0.0, 1.0]
|
2025-04-23 11:56:29 +01:00
|
|
|
bake_resolution = 16
|
2025-04-26 16:02:13 +01:00
|
|
|
_data = [Vector2(0, 0.1), 0.0, -0.167493, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
|
2025-04-23 11:56:29 +01:00
|
|
|
point_count = 2
|
|
|
|
|
|
|
|
[sub_resource type="CurveTexture" id="CurveTexture_7thed"]
|
|
|
|
curve = SubResource("Curve_tmmim")
|
|
|
|
|
2025-04-26 16:02:13 +01:00
|
|
|
[sub_resource type="Curve" id="Curve_ucnj8"]
|
|
|
|
_data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(0.511628, 1), -1.30273, -1.30273, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
|
|
|
|
point_count = 3
|
|
|
|
|
|
|
|
[sub_resource type="CurveTexture" id="CurveTexture_rsjgb"]
|
|
|
|
curve = SubResource("Curve_ucnj8")
|
|
|
|
|
2025-04-23 11:56:29 +01:00
|
|
|
[sub_resource type="ShaderMaterial" id="ShaderMaterial_xbcx7"]
|
|
|
|
render_priority = 0
|
|
|
|
shader = ExtResource("2_rsjgb")
|
2025-04-26 16:02:13 +01:00
|
|
|
shader_parameter/tex = SubResource("CurveTexture_rsjgb")
|
2025-04-23 11:56:29 +01:00
|
|
|
shader_parameter/uv_offset = Vector2(0, 0)
|
|
|
|
shader_parameter/color_ramp = SubResource("GradientTexture1D_od3fb")
|
|
|
|
shader_parameter/curve = SubResource("CurveTexture_7thed")
|
|
|
|
shader_parameter/emmission_transform = Projection(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)
|
2025-04-26 16:02:13 +01:00
|
|
|
shader_parameter/flags = 45
|
2025-04-23 11:56:29 +01:00
|
|
|
|
|
|
|
[sub_resource type="QuadMesh" id="QuadMesh_ucnj8"]
|
|
|
|
material = SubResource("ShaderMaterial_xbcx7")
|
|
|
|
size = Vector2(10, 10)
|
|
|
|
|
2025-04-26 16:02:13 +01:00
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_xbcx7"]
|
|
|
|
albedo_color = Color(0.79229, 0.800781, 0.372387, 1)
|
|
|
|
emission_enabled = true
|
|
|
|
emission = Color(1, 1, 0, 1)
|
|
|
|
emission_energy_multiplier = 2.5
|
|
|
|
|
|
|
|
[sub_resource type="CylinderMesh" id="CylinderMesh_xbcx7"]
|
|
|
|
material = SubResource("StandardMaterial3D_xbcx7")
|
|
|
|
top_radius = 0.1
|
|
|
|
bottom_radius = 0.1
|
|
|
|
height = 0.3
|
|
|
|
radial_segments = 6
|
|
|
|
rings = 0
|
|
|
|
|
2025-04-23 11:56:29 +01:00
|
|
|
[node name="Bullet" type="RigidBody3D"]
|
2025-04-26 16:02:13 +01:00
|
|
|
collision_layer = 16
|
|
|
|
collision_mask = 5
|
|
|
|
continuous_cd = true
|
|
|
|
contact_monitor = true
|
|
|
|
max_contacts_reported = 1
|
|
|
|
script = ExtResource("1_rsjgb")
|
|
|
|
min_damage = 1.0
|
|
|
|
lifetime = 5.0
|
2025-04-23 11:56:29 +01:00
|
|
|
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
2025-04-26 16:02:13 +01:00
|
|
|
transform = Transform3D(1, 0, 0, 0, 1.31134e-07, 1, 0, -1, 1.31134e-07, 0, 0, 0)
|
2025-04-23 11:56:29 +01:00
|
|
|
shape = SubResource("CapsuleShape3D_3ndsa")
|
|
|
|
|
|
|
|
[node name="GPUTrail3D" type="GPUParticles3D" parent="."]
|
|
|
|
transform = Transform3D(0.233971, -0.972243, 0, 0.972243, 0.233971, 0, 0, 0, 1, 0, 0, 0)
|
|
|
|
amount = 19
|
|
|
|
lifetime = 19.0
|
|
|
|
explosiveness = 1.0
|
|
|
|
fixed_fps = 59
|
|
|
|
process_material = SubResource("ShaderMaterial_fsn5s")
|
|
|
|
draw_pass_1 = SubResource("QuadMesh_ucnj8")
|
|
|
|
script = ExtResource("4_pt3a8")
|
|
|
|
length = 19
|
|
|
|
length_seconds = 0.322034
|
2025-04-26 16:02:13 +01:00
|
|
|
texture = SubResource("CurveTexture_rsjgb")
|
2025-04-23 11:56:29 +01:00
|
|
|
color_ramp = SubResource("GradientTexture1D_od3fb")
|
|
|
|
curve = SubResource("CurveTexture_7thed")
|
2025-04-26 16:02:13 +01:00
|
|
|
vertical_texture = true
|
2025-04-23 11:56:29 +01:00
|
|
|
billboard = true
|
|
|
|
_defaults_have_been_set = true
|
|
|
|
metadata/_custom_type_script = "uid://cdubip3a6325r"
|
2025-04-26 16:02:13 +01:00
|
|
|
|
|
|
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 6.70552e-08, 1, 0, -1, 6.70552e-08, 0, 0, 0)
|
|
|
|
cast_shadow = 0
|
|
|
|
mesh = SubResource("CylinderMesh_xbcx7")
|
|
|
|
|
|
|
|
[node name="AudioStreamPlayer3D" type="AudioStreamPlayer3D" parent="."]
|
|
|
|
max_polyphony = 2
|
|
|
|
|
|
|
|
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|