118 lines
3.4 KiB
Plaintext
118 lines
3.4 KiB
Plaintext
[gd_scene load_steps=13 format=3 uid="uid://egphnvwk6cg"]
|
|
|
|
[ext_resource type="Script" path="res://Assets/Effects/Impact.gd" id="1"]
|
|
[ext_resource type="Texture2D" uid="uid://cguy76rs8e220" path="res://Assets/Effects/Flame.png" id="2"]
|
|
[ext_resource type="Shader" path="res://Assets/Effects/ImpactBlood.gdshader" id="3_4p01j"]
|
|
[ext_resource type="PackedScene" uid="uid://c5cwnfuw4go1b" path="res://Assets/Audio/SoundPlayer.tscn" id="3_ftpj2"]
|
|
|
|
[sub_resource type="Animation" id="Animation_es1gj"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/path = NodePath("MeshInstance3D:shader_params/o3007790_ANIM")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.5),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 0,
|
|
"values": [0.0, 1.0]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_fex44"]
|
|
resource_name = "Splat"
|
|
tracks/0/type = "value"
|
|
tracks/0/path = NodePath("MeshInstance3D:shader_params/o3007790_ANIM")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.3),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 0,
|
|
"values": [0.0, 1.0]
|
|
}
|
|
|
|
[sub_resource type="StandardMaterial3D" id="7"]
|
|
blend_mode = 3
|
|
shading_mode = 0
|
|
vertex_color_use_as_albedo = true
|
|
albedo_texture = ExtResource( "2" )
|
|
billboard_mode = 3
|
|
particles_anim_h_frames = 2
|
|
particles_anim_v_frames = 2
|
|
particles_anim_loop = false
|
|
|
|
[sub_resource type="QuadMesh" id="2"]
|
|
material = SubResource( "7" )
|
|
size = Vector2(0.2, 0.2)
|
|
|
|
[sub_resource type="Curve" id="3"]
|
|
_data = [Vector2(0, 0.981818), 0.0, -1.7826, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
|
|
|
|
[sub_resource type="Gradient" id="8"]
|
|
colors = PackedColorArray(1, 0, 0, 1, 1, 1, 1, 1)
|
|
|
|
[sub_resource type="ShaderMaterial" id="ShaderMaterial_d8ai5"]
|
|
shader = ExtResource( "3_4p01j" )
|
|
|
|
[sub_resource type="QuadMesh" id="QuadMesh_xdhl5"]
|
|
material = SubResource( "ShaderMaterial_d8ai5" )
|
|
size = Vector2(2, 2)
|
|
|
|
[node name="Impact" type="Node3D"]
|
|
script = ExtResource( "1" )
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
autoplay = "Splat"
|
|
anims/RESET = SubResource( "Animation_es1gj" )
|
|
anims/Splat = SubResource( "Animation_fex44" )
|
|
blend_times = []
|
|
script = null
|
|
|
|
[node name="CPUParticles3D" type="CPUParticles3D" parent="."]
|
|
visible = false
|
|
emitting = false
|
|
amount = 32
|
|
lifetime = 3.0
|
|
one_shot = true
|
|
explosiveness = 1.0
|
|
local_coords = false
|
|
mesh = SubResource( "2" )
|
|
particle_flag_rotate_y = true
|
|
direction = Vector3(0, 1, 0)
|
|
spread = 180.0
|
|
initial_velocity_min = 0.5
|
|
initial_velocity_max = 5.0
|
|
scale_amount_curve = SubResource( "3" )
|
|
color_ramp = SubResource( "8" )
|
|
script = null
|
|
|
|
[node name="Timer" type="Timer" parent="."]
|
|
wait_time = 2.0
|
|
one_shot = true
|
|
autostart = true
|
|
script = null
|
|
|
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, -1, 8.74228e-08, 0, -8.74228e-08, -1, 0, 0.00379224, 0)
|
|
shader_params/o3007790_ANIM = 0.0
|
|
shader_params/o3007790_OFFSET = 0.0
|
|
mesh = SubResource( "QuadMesh_xdhl5" )
|
|
surface_material_override/0 = null
|
|
script = null
|
|
|
|
[node name="SoundPlayer" parent="." instance=ExtResource( "3_ftpj2" )]
|
|
SoundClip = "res://Assets/SFX/Weapons_BulletHitPlayer_01.wav"
|
|
AutoPlay = true
|
|
|
|
[node name="AudioStreamPlayer3D" parent="SoundPlayer" index="0"]
|
|
unit_db = -3.0
|
|
unit_size = 2.0
|
|
|
|
[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]
|
|
|
|
[editable path="SoundPlayer"]
|