mtd/Scenes/Projectiles/explosive_projectile.tscn

48 lines
1.8 KiB
Plaintext

[gd_scene load_steps=8 format=3 uid="uid://7f4dfphgiswr"]
[ext_resource type="PackedScene" uid="uid://c8qjlgam6wuo0" path="res://Scenes/Projectiles/projectile.tscn" id="1_136w8"]
[ext_resource type="Script" path="res://Scripts/Projectiles/explosive_projectile.gd" id="2_3adg2"]
[sub_resource type="Gradient" id="Gradient_ia31t"]
offsets = PackedFloat32Array(0, 0.3, 0.681818, 1)
colors = PackedColorArray(1, 0.733333, 0, 1, 0.780392, 0.0352941, 0, 0.921569, 0, 0, 0, 0.87451, 0, 0, 0, 0.301961)
[sub_resource type="GradientTexture1D" id="GradientTexture1D_iertm"]
gradient = SubResource("Gradient_ia31t")
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_1wlqd"]
spread = 180.0
initial_velocity_min = 4.0
initial_velocity_max = 4.0
gravity = Vector3(0, 0, 0)
damping_min = 2.0
damping_max = 2.0
color_ramp = SubResource("GradientTexture1D_iertm")
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_dqr5j"]
transparency = 1
vertex_color_use_as_albedo = true
[sub_resource type="BoxMesh" id="BoxMesh_5qmrv"]
material = SubResource("StandardMaterial3D_dqr5j")
size = Vector3(0.2, 0.2, 0.2)
[node name="ExplosiveProjectile" instance=ExtResource("1_136w8")]
script = ExtResource("2_3adg2")
explosion_range = 3.0
[node name="AudioStreamPlayer" type="AudioStreamPlayer3D" parent="." index="2"]
bus = &"SFX"
[node name="GPUParticles3D" type="GPUParticles3D" parent="." index="3"]
emitting = false
amount = 80
lifetime = 0.5
one_shot = true
explosiveness = 1.0
process_material = SubResource("ParticleProcessMaterial_1wlqd")
draw_pass_1 = SubResource("BoxMesh_5qmrv")
[connection signal="finished" from="AudioStreamPlayer" to="." method="_on_audio_stream_player_finished"]
[connection signal="finished" from="GPUParticles3D" to="." method="_on_gpu_particles_3d_finished"]