feat: re-added artillery splashdowns

This commit is contained in:
Sara 2024-12-08 17:32:12 +01:00
parent bc7a9ec8ef
commit 9341b09b63
24 changed files with 340 additions and 100 deletions

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=8 format=3 uid="uid://be2yogspyg40p"]
[gd_scene load_steps=9 format=3 uid="uid://be2yogspyg40p"]
[ext_resource type="Material" uid="uid://cnpi4nqbif0st" path="res://particles/materials/dirt_splatters.tres" id="1_70hen"]
@ -11,7 +11,7 @@ curve = SubResource("Curve_f77sp")
[sub_resource type="Curve" id="Curve_58b4i"]
max_value = 3.0
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(0.0803571, 0.990632), 0.0, 0.0, 0, 0, Vector2(1, 2.70316), 0.0, 0.0, 0, 0]
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(0.115242, 1.35758), 0.0, 0.0, 0, 0, Vector2(1, 2.58193), 1.60659, 0.0, 0, 0]
point_count = 3
[sub_resource type="CurveTexture" id="CurveTexture_62j87"]
@ -19,14 +19,14 @@ curve = SubResource("Curve_58b4i")
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_2cudr"]
particle_flag_align_y = true
particle_flag_rotate_y = true
angle_min = 1.07288e-05
angle_max = 720.0
direction = Vector3(0, 0, 1)
spread = 2.905
initial_velocity_min = 1.5
initial_velocity_max = 10.0
scale_max = 1.5
scale_min = 1.12
scale_max = 1.12
scale_curve = SubResource("CurveTexture_62j87")
scale_over_velocity_min = 1.0
scale_over_velocity_max = 5.0
@ -36,15 +36,34 @@ alpha_curve = SubResource("CurveTexture_jj8d7")
material = ExtResource("1_70hen")
size = Vector2(1.5, 1.5)
[sub_resource type="GDScript" id="GDScript_vkhqp"]
script/source = "extends GPUParticles3D
@export var play_on_ready = true;
func _ready():
self.emitting = self.play_on_ready
"
[node name="ExplosionParticles" type="GPUParticles3D"]
transform = Transform3D(-1, 0, -8.74228e-08, -8.74228e-08, 4.37114e-08, 1, 0, 1, -4.37114e-08, 0, 0, 0)
emitting = false
amount = 20
lifetime = 1.5
one_shot = true
explosiveness = 0.99
fixed_fps = 60
explosiveness = 1.0
visibility_aabb = AABB(-3, -3, -1, 6, 6, 10)
draw_order = 3
process_material = SubResource("ParticleProcessMaterial_2cudr")
draw_pass_1 = SubResource("QuadMesh_ccn0f")
script = SubResource("GDScript_vkhqp")
[node name="CameraEffectSource" type="CameraEffectSource" parent="."]
play_on_ready = true
[node name="Timer" type="Timer" parent="."]
wait_time = 4.0
one_shot = true
autostart = true
[connection signal="timeout" from="Timer" to="." method="queue_free"]

View file

@ -5,6 +5,7 @@
[resource]
transparency = 1
vertex_color_use_as_albedo = true
albedo_color = Color(1, 1, 1, 0.501961)
albedo_texture = ExtResource("1_3l7wc")
billboard_mode = 3
billboard_keep_scale = true

View file

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:84a48be755cfda4d052cdde6eeb44a53ac5e6181723fe338cb9528175349ee8a
size 5020550
oid sha256:06f6fc48ab95523d62498f7f114ba86955b2bf2fb07cd788646ef06447b11baa
size 5020845

Binary file not shown.

Before

Width:  |  Height:  |  Size: 912 KiB

After

Width:  |  Height:  |  Size: 4.8 MiB

Before After
Before After