111 lines
3.1 KiB
Plaintext
111 lines
3.1 KiB
Plaintext
[gd_scene load_steps=10 format=3 uid="uid://ikiqohjvlqni"]
|
|
|
|
[ext_resource type="Script" path="res://Assets/Weapons/Handgun/Flash.gd" id="1_ob70b"]
|
|
[ext_resource type="Texture2D" uid="uid://cguy76rs8e220" path="res://Assets/Effects/Flame.png" id="2_1simy"]
|
|
|
|
[sub_resource type="Animation" id="1"]
|
|
length = 0.1
|
|
step = 0.025
|
|
tracks/0/type = "value"
|
|
tracks/0/path = NodePath("OmniLight3D:light_color")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.025, 0.05, 0.1),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1),
|
|
"update": 0,
|
|
"values": [Color(1, 1, 1, 1), Color(1, 0.933333, 0.380392, 1), Color(1, 0.637428, 0.415262, 1), Color(0, 0, 0, 1)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="2"]
|
|
length = 0.001
|
|
|
|
[sub_resource type="Animation" id="3"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/path = NodePath("OmniLight3D:light_color")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Color(1, 1, 1, 1)]
|
|
}
|
|
|
|
[sub_resource type="StandardMaterial3D" id="6"]
|
|
blend_mode = 1
|
|
shading_mode = 0
|
|
vertex_color_use_as_albedo = true
|
|
albedo_color = Color(3, 3, 3, 1)
|
|
albedo_texture = ExtResource( "2_1simy" )
|
|
billboard_mode = 3
|
|
particles_anim_h_frames = 2
|
|
particles_anim_v_frames = 2
|
|
particles_anim_loop = false
|
|
|
|
[sub_resource type="QuadMesh" id="7"]
|
|
material = SubResource( "6" )
|
|
size = Vector2(0.3, 0.3)
|
|
|
|
[sub_resource type="Curve" id="8"]
|
|
_data = [Vector2(0, 0), 0.0, 8.69697, 0, 0, Vector2(0.501742, 0.918182), -1.36667, -1.36667, 0, 0, Vector2(1, 0.0363636), -3.03219, 0.0, 0, 0]
|
|
|
|
[sub_resource type="Gradient" id="9"]
|
|
offsets = PackedFloat32Array(0, 0.0568182, 0.454545, 0.746212, 1)
|
|
colors = PackedColorArray(1, 1, 1, 1, 2, 1.7, 0.7, 1, 1, 0.682129, 0.34375, 1, 0.675781, 0.355111, 0.0976715, 1, 0, 0, 0, 1)
|
|
|
|
[node name="Flash" type="Node3D"]
|
|
script = ExtResource( "1_ob70b" )
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
autoplay = "Off"
|
|
anims/Flash = SubResource( "1" )
|
|
anims/Off = SubResource( "2" )
|
|
anims/RESET = SubResource( "3" )
|
|
blend_times = []
|
|
script = null
|
|
|
|
[node name="CPUParticles3D" type="CPUParticles3D" parent="."]
|
|
emitting = false
|
|
lifetime = 0.15
|
|
one_shot = true
|
|
explosiveness = 1.0
|
|
lifetime_randomness = 0.2
|
|
fixed_fps = 120
|
|
mesh = SubResource( "7" )
|
|
particle_flag_rotate_y = true
|
|
direction = Vector3(0, 1, 0)
|
|
spread = 0.0
|
|
gravity = Vector3(0, 0, 0)
|
|
initial_velocity_min = 1.0
|
|
initial_velocity_max = 10.0
|
|
angle_min = -180.0
|
|
angle_max = 180.0
|
|
scale_amount_curve = SubResource( "8" )
|
|
color_ramp = SubResource( "9" )
|
|
anim_offset_max = 1.0
|
|
script = null
|
|
|
|
[node name="Timer" type="Timer" parent="."]
|
|
wait_time = 0.1
|
|
one_shot = true
|
|
autostart = true
|
|
script = null
|
|
|
|
[node name="OmniLight3D" type="OmniLight3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.160545, 0)
|
|
light_energy = 5.0
|
|
light_bake_mode = 0
|
|
shadow_enabled = true
|
|
shadow_blur = 8.0
|
|
omni_range = 100.0
|
|
omni_attenuation = 4.0
|
|
script = null
|
|
|
|
[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]
|