Merge branch 'master' of github.com:unfa/liblast

remotes/1699310152913738325/tmp_refs/heads/legacy
Jan Heemstra 2021-05-03 01:04:40 +02:00
commit a2c00aa699
3 changed files with 320 additions and 0 deletions

View File

@ -0,0 +1,320 @@
[gd_scene load_steps=33 format=2]
[ext_resource path="res://Assets/Effects/CircleHard.svg" type="Texture" id=1]
[ext_resource path="res://Assets/Effects/CircleSoft.svg" type="Texture" id=2]
[ext_resource path="res://Assets/Effects/FreeTimer.gd" type="Script" id=3]
[ext_resource path="res://Classes/Audio/SoundPlayer.tscn" type="PackedScene" id=4]
[ext_resource path="res://Assets/Effects/Bullet Holes/4x4 Decal Sheet.glb" type="PackedScene" id=5]
[ext_resource path="res://Assets/Effects/Bullet Holes/Concrete.tres" type="Material" id=6]
[ext_resource path="res://Assets/Effects/Bullet Holes/4x4 Decal Sheet.gd" type="Script" id=7]
[sub_resource type="Animation" id=1]
resource_name = "Effect"
length = 5.0
step = 0.05
tracks/0/type = "value"
tracks/0/path = NodePath("Hit:scale")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.05, 0.9 ),
"transitions": PoolRealArray( 1, 1, 1 ),
"update": 0,
"values": [ Vector3( 2, 2, 2 ), Vector3( 1, 1, 1 ), Vector3( 0, 0, 0 ) ]
}
tracks/1/type = "value"
tracks/1/path = NodePath("ParticlesFire:emitting")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 1,
"values": [ true ]
}
tracks/2/type = "value"
tracks/2/path = NodePath("ParticlesSparks:emitting")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 1,
"values": [ true ]
}
tracks/3/type = "value"
tracks/3/path = NodePath("ParticlesSmoke:emitting")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/keys = {
"times": PoolRealArray( 0 ),
"transitions": PoolRealArray( 1 ),
"update": 1,
"values": [ true ]
}
[sub_resource type="SphereMesh" id=2]
radius = 0.1
height = 0.2
radial_segments = 12
rings = 6
[sub_resource type="SpatialMaterial" id=3]
flags_unshaded = true
albedo_color = Color( 3.72, 2.12, 0.24, 1 )
[sub_resource type="SpatialMaterial" id=4]
albedo_color = Color( 0, 0, 0, 1 )
[sub_resource type="CylinderMesh" id=5]
material = SubResource( 4 )
top_radius = 0.001
bottom_radius = 0.1
height = 0.02
radial_segments = 10
rings = 1
[sub_resource type="Gradient" id=6]
offsets = PoolRealArray( 0, 0.0573394, 0.422018, 1 )
colors = PoolColorArray( 3, 2.88, 2.07, 1, 0.986328, 0.741326, 0.127144, 1, 0.876953, 0.527703, 0.260345, 1, 0.0469799, 0.0469799, 0.0469799, 1 )
[sub_resource type="GradientTexture" id=7]
gradient = SubResource( 6 )
[sub_resource type="Curve" id=8]
_data = [ Vector2( 0, 1 ), 0.0, -0.386777, 0, 0, Vector2( 0.987179, 0 ), -0.127956, 0.0, 0, 0 ]
[sub_resource type="CurveTexture" id=9]
curve = SubResource( 8 )
[sub_resource type="ParticlesMaterial" id=10]
lifetime_randomness = 0.9
spread = 180.0
initial_velocity = 25.0
initial_velocity_random = 0.6
damping = 79.08
scale = 6.0
scale_random = 0.9
scale_curve = SubResource( 9 )
color_ramp = SubResource( 7 )
[sub_resource type="SpatialMaterial" id=11]
flags_transparent = true
flags_unshaded = true
vertex_color_use_as_albedo = true
params_specular_mode = 4
params_blend_mode = 1
params_billboard_mode = 3
params_use_alpha_scissor = true
params_alpha_scissor_threshold = 0.5
particles_anim_h_frames = 1
particles_anim_v_frames = 1
particles_anim_loop = false
albedo_texture = ExtResource( 2 )
[sub_resource type="QuadMesh" id=12]
material = SubResource( 11 )
[sub_resource type="ParticlesMaterial" id=13]
lifetime_randomness = 0.65
initial_velocity = 7.0
initial_velocity_random = 0.6
damping = 6.0
damping_random = 0.6
scale_random = 0.9
scale_curve = SubResource( 9 )
[sub_resource type="Gradient" id=14]
offsets = PoolRealArray( 0, 0.0346021, 0.083045, 0.49481, 1 )
colors = PoolColorArray( 1, 0.984375, 0.75, 1, 0.933594, 0.694326, 0.12764, 1, 0.963584, 0.38076, 0.069996, 1, 0.439216, 0, 0, 0.176471, 0, 0, 0, 0 )
[sub_resource type="GradientTexture" id=15]
gradient = SubResource( 14 )
[sub_resource type="ParticlesMaterial" id=16]
lifetime_randomness = 0.8
spread = 35.0
initial_velocity = 14.0
initial_velocity_random = 0.7
damping = 7.82
damping_random = 0.92
scale = 0.5
scale_random = 0.5
scale_curve = SubResource( 9 )
color_ramp = SubResource( 15 )
hue_variation = 0.01
hue_variation_random = 1.0
[sub_resource type="SpatialMaterial" id=17]
flags_transparent = true
flags_unshaded = true
flags_do_not_receive_shadows = true
vertex_color_use_as_albedo = true
vertex_color_is_srgb = true
params_blend_mode = 1
params_billboard_mode = 3
params_use_alpha_scissor = true
params_alpha_scissor_threshold = 0.5
particles_anim_h_frames = 1
particles_anim_v_frames = 1
particles_anim_loop = false
albedo_color = Color( 4, 4, 4, 1 )
albedo_texture = ExtResource( 1 )
[sub_resource type="QuadMesh" id=18]
material = SubResource( 17 )
size = Vector2( 0.05, 0.05 )
[sub_resource type="Gradient" id=19]
offsets = PoolRealArray( 0, 0.0692042, 0.474048, 1 )
colors = PoolColorArray( 0.756863, 0.756863, 0.756863, 0.329412, 0.598546, 0.598546, 0.598546, 0.512111, 0.504174, 0.504174, 0.504174, 0.223016, 0.431373, 0.431373, 0.431373, 0 )
[sub_resource type="GradientTexture" id=20]
gradient = SubResource( 19 )
[sub_resource type="Curve" id=21]
_data = [ Vector2( 0, 0.278253 ), 0.0, 1.12677, 0, 0, Vector2( 1, 1 ), 0.0, 0.0, 0, 0 ]
[sub_resource type="CurveTexture" id=22]
curve = SubResource( 21 )
[sub_resource type="ParticlesMaterial" id=23]
spread = 10.0
gravity = Vector3( 0, 0, 0 )
initial_velocity = 4.0
initial_velocity_random = 0.2
angular_velocity = 395.12
angular_velocity_random = 1.0
damping = 12.0
damping_random = 0.83
scale = 4.0
scale_random = 0.5
scale_curve = SubResource( 22 )
color_ramp = SubResource( 20 )
hue_variation = 0.01
hue_variation_random = 1.0
[sub_resource type="SpatialMaterial" id=24]
flags_transparent = true
vertex_color_use_as_albedo = true
vertex_color_is_srgb = true
params_billboard_mode = 3
particles_anim_h_frames = 1
particles_anim_v_frames = 1
particles_anim_loop = false
albedo_texture = ExtResource( 2 )
proximity_fade_enable = true
proximity_fade_distance = 0.15
[sub_resource type="QuadMesh" id=25]
material = SubResource( 24 )
[node name="BulletHit" type="Spatial"]
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
autoplay = "Effect"
anims/Effect = SubResource( 1 )
[node name="Hit" type="MeshInstance" parent="."]
transform = Transform( 2, 0, 0, 0, 2, 0, 0, 0, 2, 0, 0, 0 )
visible = false
mesh = SubResource( 2 )
material/0 = SubResource( 3 )
[node name="OmniLight" type="OmniLight" parent="."]
transform = Transform( 1, 0, 0, 0, -1, -4.37114e-08, 0, 4.37114e-08, -1, 0, 0, 0 )
light_color = Color( 1, 0.784314, 0.0509804, 1 )
omni_range = 7.57563
[node name="4x4 Decal Sheet" parent="." instance=ExtResource( 5 )]
transform = Transform( 0.25, 0, 0, 0, 0.25, 0, 0, 0, 0.25, 0, 0.002, 0 )
script = ExtResource( 7 )
[node name="Decal2" parent="4x4 Decal Sheet" index="0"]
visible = false
material/0 = ExtResource( 6 )
[node name="Decal3" parent="4x4 Decal Sheet" index="1"]
visible = false
material/0 = ExtResource( 6 )
[node name="Decal4" parent="4x4 Decal Sheet" index="2"]
visible = false
material/0 = ExtResource( 6 )
[node name="Decal1" parent="4x4 Decal Sheet" index="3"]
visible = false
material/0 = ExtResource( 6 )
[node name="Decal" type="MeshInstance" parent="."]
transform = Transform( 1, 0, 0, 0, -1, -4.37114e-08, 0, 4.37114e-08, -1, 0, 0, 0 )
visible = false
mesh = SubResource( 5 )
material/0 = null
[node name="ParticlesFire" type="Particles" parent="."]
transform = Transform( -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0, 1, 0, 0, 0 )
emitting = false
amount = 64
lifetime = 0.5
explosiveness = 1.0
local_coords = false
process_material = SubResource( 10 )
draw_pass_1 = SubResource( 12 )
[node name="ParticlesDust2" type="Particles" parent="."]
transform = Transform( -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0, 1, 0, 0, 0 )
visible = false
emitting = false
amount = 32
one_shot = true
explosiveness = 1.0
local_coords = false
process_material = SubResource( 13 )
draw_pass_1 = SubResource( 12 )
[node name="ParticlesSparks" type="Particles" parent="."]
transform = Transform( -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0, 1, 0, 0, 0 )
visible = false
amount = 7
lifetime = 2.0
explosiveness = 1.0
randomness = 1.0
local_coords = false
process_material = SubResource( 16 )
draw_pass_1 = SubResource( 18 )
[node name="ParticlesSmoke" type="Particles" parent="."]
transform = Transform( -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0, 1, 0, 0, 0 )
visible = false
amount = 1
lifetime = 3.0
explosiveness = 1.0
local_coords = false
process_material = SubResource( 23 )
draw_pass_1 = SubResource( 25 )
[node name="FreeTimer" type="Timer" parent="."]
wait_time = 15.0
one_shot = true
autostart = true
script = ExtResource( 3 )
__meta__ = {
"_editor_description_": "Time to delete this scene."
}
[node name="SoundPlayer" parent="." instance=ExtResource( 4 )]
SoundClip = "res://Assets/SFX/Weapons_BulletHitWall_01.wav"
AutoPlay = true
[connection signal="timeout" from="FreeTimer" to="FreeTimer" method="_on_FreeTimer_timeout"]
[editable path="4x4 Decal Sheet"]