open-fpsz/entities/weapons/grenade_launcher/explosion.tscn
2024-10-16 21:43:01 +00:00

90 lines
3.2 KiB
Text

[gd_scene load_steps=13 format=3 uid="uid://bb43ae1f5j8lw"]
[ext_resource type="Script" path="res://entities/weapons/grenade_launcher/explosion.gd" id="1_xb4jo"]
[ext_resource type="Script" path="res://entities/projectiles/damages/explosive_damage.gd" id="2_r5wb7"]
[ext_resource type="Material" uid="uid://v7s5w3uw4hmb" path="res://entities/weapons/grenade_launcher/assets/resources/particle_process_material_sparks.tres" id="3_4u6ue"]
[ext_resource type="Material" uid="uid://c80t026c2gpxx" path="res://entities/weapons/grenade_launcher/assets/resources/explosion_material.tres" id="3_tsixm"]
[ext_resource type="Material" uid="uid://bbqjhgs44rnss" path="res://entities/weapons/grenade_launcher/assets/resources/material_flare.tres" id="4_634rq"]
[ext_resource type="Material" uid="uid://cykwajkj5aaqx" path="res://entities/weapons/grenade_launcher/assets/resources/particle_process_material_flash.tres" id="5_mntrp"]
[sub_resource type="Curve" id="Curve_m5722"]
_data = [Vector2(0.247387, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
point_count = 2
[sub_resource type="SphereShape3D" id="SphereShape3D_1htx7"]
radius = 10.6
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_dlm7y"]
emission_shape_offset = Vector3(0, 0.25, 0)
angle_min = -20.0
angle_max = 20.0
direction = Vector3(0, 1, 0)
initial_velocity_min = 2.0
initial_velocity_max = 2.0
gravity = Vector3(0, 0, 0)
damping_min = 1.0
damping_max = 1.0
color = Color(1.5, 1.5, 1.5, 1)
hue_variation_max = 0.05
anim_speed_min = 1.0
anim_speed_max = 1.0
[sub_resource type="QuadMesh" id="QuadMesh_35tvq"]
material = ExtResource("3_tsixm")
size = Vector2(5, 5)
[sub_resource type="QuadMesh" id="QuadMesh_wt5ts"]
material = ExtResource("4_634rq")
[sub_resource type="QuadMesh" id="QuadMesh_mv2qw"]
material = ExtResource("4_634rq")
[node name="GrenadeLauncherProjectileExplosion" type="Node3D" node_paths=PackedStringArray("explosive_damage")]
script = ExtResource("1_xb4jo")
explosive_damage = NodePath("ExplosiveDamage")
[node name="ExplosiveDamage" type="Area3D" parent="."]
collision_mask = 13
script = ExtResource("2_r5wb7")
damage = 128
blast_force = 2000
falloff = SubResource("Curve_m5722")
[node name="CollisionShape3D" type="CollisionShape3D" parent="ExplosiveDamage"]
shape = SubResource("SphereShape3D_1htx7")
[node name="Particles" type="Node3D" parent="."]
[node name="Explosion" type="GPUParticles3D" parent="Particles"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
emitting = false
amount = 1
lifetime = 2.0
one_shot = true
speed_scale = 3.0
fixed_fps = 60
draw_order = 3
process_material = SubResource("ParticleProcessMaterial_dlm7y")
draw_pass_1 = SubResource("QuadMesh_35tvq")
[node name="Sparks" type="GPUParticles3D" parent="Particles"]
process_priority = 1
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.00311279, 0.0152655, -0.000196457)
emitting = false
amount = 12
lifetime = 0.3
one_shot = true
explosiveness = 1.0
randomness = 0.3
process_material = ExtResource("3_4u6ue")
draw_pass_1 = SubResource("QuadMesh_wt5ts")
[node name="Flash" type="GPUParticles3D" parent="Particles"]
emitting = false
amount = 1
lifetime = 0.1
one_shot = true
explosiveness = 1.0
fixed_fps = 60
process_material = ExtResource("5_mntrp")
draw_pass_1 = SubResource("QuadMesh_mv2qw")