minor tweaks and fixed barrel explosion

This commit is contained in:
Derek
2024-12-12 23:46:36 -06:00
parent 90fa39ca4a
commit b6a9e9a112
12 changed files with 308 additions and 50 deletions

View File

@@ -1,36 +1,60 @@
[gd_scene load_steps=10 format=3 uid="uid://6p7d7txcox7i"]
[gd_scene load_steps=14 format=3 uid="uid://6p7d7txcox7i"]
[ext_resource type="Script" path="res://scripts/die_particles.gd" id="1_ssw3i"]
[ext_resource type="Texture2D" uid="uid://dn3b6uw8xr63m" path="res://assets/Textures/Smoke/smoketest_v1_0043.png" id="2_cag6r"]
[ext_resource type="AudioStream" uid="uid://6b5gg8b0p8k8" path="res://assets/Audio/Weapons/explosion-blast-SBA-300083684.wav" id="2_rbypu"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_e1gej"]
albedo_color = Color(0.586219, 0.0370184, 0.140967, 1)
emission_enabled = true
emission = Color(0.941176, 0, 0, 1)
emission_energy_multiplier = 8.0
[sub_resource type="Curve" id="Curve_741s1"]
min_value = -1.0
_data = [Vector2(0, -1), 0.0, 0.0, 0, 0, Vector2(1, 1), 2.8, 0.0, 0, 0]
[sub_resource type="Curve" id="Curve_eqjwj"]
_data = [Vector2(0, 0), 0.0, 1.4, 0, 0, Vector2(1, 1), 0.0, 0.0, 0, 0]
point_count = 2
[sub_resource type="CurveTexture" id="CurveTexture_7652j"]
curve = SubResource("Curve_741s1")
[sub_resource type="CurveTexture" id="CurveTexture_ya0uq"]
curve = SubResource("Curve_eqjwj")
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_evi0f"]
direction = Vector3(0, 1, 0)
spread = 66.739
[sub_resource type="Gradient" id="Gradient_acjgf"]
colors = PackedColorArray(1, 1, 1, 1, 1, 1, 1, 0)
[sub_resource type="GradientTexture1D" id="GradientTexture1D_8kfxe"]
gradient = SubResource("Gradient_acjgf")
[sub_resource type="Curve" id="Curve_w037p"]
min_value = -1.0
_data = [Vector2(0, -1), 0.0, 2.8, 0, 0, Vector2(1, 1), 0.0, 0.0, 0, 0]
point_count = 2
[sub_resource type="CurveTexture" id="CurveTexture_aqpqn"]
curve = SubResource("Curve_w037p")
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_oxveh"]
particle_flag_rotate_y = true
emission_shape = 1
emission_sphere_radius = 0.1
velocity_pivot = Vector3(0, 1, 0)
direction = Vector3(1, 1, 1)
spread = 180.0
initial_velocity_min = 10.0
initial_velocity_max = 15.0
initial_velocity_max = 30.0
gravity = Vector3(0, 0.5, 0)
scale_min = 0.1
scale_max = 0.3
hue_variation_min = 0.1
hue_variation_max = 0.2
hue_variation_curve = SubResource("CurveTexture_7652j")
color_ramp = SubResource("GradientTexture1D_8kfxe")
alpha_curve = SubResource("CurveTexture_ya0uq")
hue_variation_curve = SubResource("CurveTexture_aqpqn")
turbulence_enabled = true
turbulence_noise_strength = 0.0
turbulence_noise_scale = 0.5
[sub_resource type="BoxMesh" id="BoxMesh_rsjsy"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_pxrrg"]
transparency = 1
blend_mode = 1
shading_mode = 0
albedo_color = Color(1, 1, 1, 0.14902)
albedo_texture = ExtResource("2_cag6r")
billboard_mode = 1
[sub_resource type="Skin" id="Skin_v2ayh"]
[sub_resource type="PlaneMesh" id="PlaneMesh_pjpw2"]
material = SubResource("StandardMaterial3D_pxrrg")
size = Vector2(10, 10)
orientation = 2
[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_e1p15"]
random_pitch = 1.2
@@ -42,19 +66,15 @@ script = ExtResource("1_ssw3i")
audio_explode = NodePath("Audio/Explosion")
[node name="dieParticles" type="GPUParticles3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.17952, 0)
material_override = SubResource("StandardMaterial3D_e1gej")
cast_shadow = 0
transform = Transform3D(-1, 0, 8.74228e-08, 0, 1, 0, -8.74228e-08, 0, -1, 1.12633, 0, -0.00682099)
emitting = false
amount = 250
lifetime = 5.0
amount = 500
lifetime = 4.0
one_shot = true
explosiveness = 1.0
trail_enabled = true
trail_lifetime = 3.2
process_material = SubResource("ParticleProcessMaterial_evi0f")
draw_pass_1 = SubResource("BoxMesh_rsjsy")
draw_skin = SubResource("Skin_v2ayh")
fixed_fps = 60
process_material = SubResource("ParticleProcessMaterial_oxveh")
draw_pass_1 = SubResource("PlaneMesh_pjpw2")
[node name="Audio" type="Node3D" parent="."]