2021-04-06 23:56:53 +02:00
|
|
|
[gd_scene load_steps=16 format=2]
|
2020-06-19 22:46:08 +02:00
|
|
|
|
|
|
|
[ext_resource path="res://Assets/Weapons/Handgun/Handgun.gltf" type="PackedScene" id=1]
|
2021-05-02 23:30:34 +02:00
|
|
|
[ext_resource path="res://Assets/Weapons/Handgun/Handgun.gd" type="Script" id=2]
|
2021-04-05 04:14:09 +02:00
|
|
|
[ext_resource path="res://Classes/Audio/LayeredSoundPlayer.gd" type="Script" id=3]
|
2020-09-21 22:26:41 +02:00
|
|
|
[ext_resource path="res://Assets/Effects/CircleSoft.svg" type="Texture" id=4]
|
2021-04-07 01:05:43 +02:00
|
|
|
[ext_resource path="res://Assets/Audio/SFX/Weapons_Empty.wav" type="AudioStream" id=5]
|
|
|
|
[ext_resource path="res://Assets/Audio/SFX/Weapons_Handgun_Reload.wav" type="AudioStream" id=6]
|
2021-04-05 04:14:09 +02:00
|
|
|
[ext_resource path="res://Classes/Audio/SoundPlayer.tscn" type="PackedScene" id=7]
|
2020-09-21 22:26:41 +02:00
|
|
|
|
2021-04-07 01:05:43 +02:00
|
|
|
[sub_resource type="Animation" id=1]
|
2021-04-06 23:56:53 +02:00
|
|
|
resource_name = "Flash"
|
|
|
|
length = 0.1
|
|
|
|
tracks/0/type = "value"
|
|
|
|
tracks/0/path = NodePath("MuzzleLight:light_energy")
|
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
|
|
|
tracks/0/keys = {
|
|
|
|
"times": PoolRealArray( 0, 0.1 ),
|
|
|
|
"transitions": PoolRealArray( 1, 1 ),
|
|
|
|
"update": 0,
|
|
|
|
"values": [ 3.0, 0.0 ]
|
|
|
|
}
|
|
|
|
tracks/1/type = "value"
|
|
|
|
tracks/1/path = NodePath("MuzzleLight:light_color")
|
|
|
|
tracks/1/interp = 1
|
|
|
|
tracks/1/loop_wrap = true
|
|
|
|
tracks/1/imported = false
|
|
|
|
tracks/1/enabled = true
|
|
|
|
tracks/1/keys = {
|
|
|
|
"times": PoolRealArray( 0, 0.1 ),
|
|
|
|
"transitions": PoolRealArray( 1, 1 ),
|
|
|
|
"update": 0,
|
|
|
|
"values": [ Color( 0.996078, 1, 0.670588, 1 ), Color( 1, 0.423529, 0.0431373, 1 ) ]
|
|
|
|
}
|
|
|
|
tracks/2/type = "value"
|
|
|
|
tracks/2/path = NodePath("MuzzleLight:shadow_enabled")
|
|
|
|
tracks/2/interp = 1
|
|
|
|
tracks/2/loop_wrap = true
|
|
|
|
tracks/2/imported = false
|
|
|
|
tracks/2/enabled = true
|
|
|
|
tracks/2/keys = {
|
|
|
|
"times": PoolRealArray( 0, 0.1 ),
|
|
|
|
"transitions": PoolRealArray( 1, 1 ),
|
|
|
|
"update": 1,
|
|
|
|
"values": [ true, false ]
|
|
|
|
}
|
|
|
|
|
2021-04-07 01:05:43 +02:00
|
|
|
[sub_resource type="Gradient" id=2]
|
2020-09-21 22:26:41 +02:00
|
|
|
offsets = PoolRealArray( 0, 0.0511628, 0.0883721, 0.302326, 1 )
|
|
|
|
colors = PoolColorArray( 0, 0, 0, 1, 2, 2, 2, 1, 0.901961, 0.866667, 0.576471, 1, 0.909804, 0.592157, 0.168627, 1, 0, 0, 0, 1 )
|
|
|
|
|
2021-04-07 01:05:43 +02:00
|
|
|
[sub_resource type="GradientTexture" id=3]
|
|
|
|
gradient = SubResource( 2 )
|
2020-09-21 22:26:41 +02:00
|
|
|
|
2021-04-07 01:05:43 +02:00
|
|
|
[sub_resource type="Curve" id=4]
|
2020-09-21 22:26:41 +02:00
|
|
|
_data = [ Vector2( 0, 0.986364 ), 0.0, -0.872434, 0, 0, Vector2( 0.092437, 0.752585 ), 0.0, 0.0, 0, 0, Vector2( 1, 0.198039 ), -0.85103, 0.0, 0, 0 ]
|
|
|
|
|
2021-04-07 01:05:43 +02:00
|
|
|
[sub_resource type="CurveTexture" id=5]
|
|
|
|
curve = SubResource( 4 )
|
2020-09-21 22:26:41 +02:00
|
|
|
|
2021-04-07 01:05:43 +02:00
|
|
|
[sub_resource type="ParticlesMaterial" id=6]
|
2020-09-21 22:26:41 +02:00
|
|
|
direction = Vector3( 0, 0, -5 )
|
|
|
|
spread = 15.0
|
|
|
|
gravity = Vector3( 0, 0, 0 )
|
|
|
|
initial_velocity = 8.0
|
|
|
|
initial_velocity_random = 0.75
|
|
|
|
damping = 100.0
|
|
|
|
damping_random = 0.5
|
|
|
|
scale_random = 1.0
|
2021-04-07 01:05:43 +02:00
|
|
|
scale_curve = SubResource( 5 )
|
|
|
|
color_ramp = SubResource( 3 )
|
2020-09-21 22:26:41 +02:00
|
|
|
|
2021-04-07 01:05:43 +02:00
|
|
|
[sub_resource type="SpatialMaterial" id=7]
|
2020-09-21 22:26:41 +02:00
|
|
|
flags_transparent = true
|
|
|
|
flags_unshaded = true
|
|
|
|
vertex_color_use_as_albedo = true
|
|
|
|
params_blend_mode = 1
|
|
|
|
params_billboard_mode = 3
|
|
|
|
particles_anim_h_frames = 1
|
|
|
|
particles_anim_v_frames = 1
|
|
|
|
particles_anim_loop = false
|
|
|
|
albedo_texture = ExtResource( 4 )
|
|
|
|
|
2021-04-07 01:05:43 +02:00
|
|
|
[sub_resource type="QuadMesh" id=8]
|
|
|
|
material = SubResource( 7 )
|
2020-09-21 22:26:41 +02:00
|
|
|
size = Vector2( 0.3, 0.3 )
|
2020-06-21 00:30:45 +02:00
|
|
|
|
2020-06-19 22:46:08 +02:00
|
|
|
[node name="Weapon" type="Spatial"]
|
2020-06-21 00:30:45 +02:00
|
|
|
script = ExtResource( 2 )
|
2020-06-19 22:46:08 +02:00
|
|
|
|
2021-04-07 23:28:34 +02:00
|
|
|
[node name="Model" parent="." instance=ExtResource( 1 )]
|
2021-04-06 23:56:53 +02:00
|
|
|
|
|
|
|
[node name="Effects" type="Spatial" parent="."]
|
|
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.68988, 0.110679, 0 )
|
|
|
|
|
|
|
|
[node name="Flash" type="AnimationPlayer" parent="Effects"]
|
2021-04-07 01:05:43 +02:00
|
|
|
anims/Flash = SubResource( 1 )
|
2021-04-06 23:56:53 +02:00
|
|
|
|
|
|
|
[node name="MuzzleLight" type="OmniLight" parent="Effects"]
|
2021-05-14 20:51:49 +02:00
|
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.00515842, 1.90735e-06, 0.0512087 )
|
2021-04-06 23:56:53 +02:00
|
|
|
light_color = Color( 1, 0.423529, 0.0431373, 1 )
|
|
|
|
light_energy = 0.0
|
|
|
|
omni_range = 10.0
|
|
|
|
omni_attenuation = 2.92817
|
|
|
|
|
|
|
|
[node name="MuzzleFlash" type="Particles" parent="Effects"]
|
|
|
|
transform = Transform( -4.37113e-08, 0, 0.999999, 0, 0.999999, 0, -1, 0, -4.37114e-08, 0.38458, 0.0133779, 0 )
|
2020-09-21 22:26:41 +02:00
|
|
|
cast_shadow = 0
|
|
|
|
emitting = false
|
|
|
|
amount = 16
|
|
|
|
lifetime = 0.1
|
|
|
|
one_shot = true
|
|
|
|
explosiveness = 1.0
|
|
|
|
visibility_aabb = AABB( -0.176241, -0.185755, -0.556571, 0.352482, 0.37151, 0.655134 )
|
2021-04-07 01:05:43 +02:00
|
|
|
process_material = SubResource( 6 )
|
|
|
|
draw_pass_1 = SubResource( 8 )
|
2020-09-21 22:26:41 +02:00
|
|
|
|
2021-03-30 00:42:51 +02:00
|
|
|
[node name="Sounds" type="Spatial" parent="."]
|
|
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.295478, 0.724833, 0.584699 )
|
|
|
|
|
2021-04-05 04:14:09 +02:00
|
|
|
[node name="Empty" type="AudioStreamPlayer3D" parent="Sounds"]
|
2020-10-12 00:10:57 +02:00
|
|
|
stream = ExtResource( 5 )
|
|
|
|
|
2021-04-05 04:14:09 +02:00
|
|
|
[node name="Reload" type="AudioStreamPlayer3D" parent="Sounds"]
|
2020-10-12 00:10:57 +02:00
|
|
|
stream = ExtResource( 6 )
|
|
|
|
|
2021-04-05 04:14:09 +02:00
|
|
|
[node name="Shoot" type="Spatial" parent="Sounds"]
|
|
|
|
script = ExtResource( 3 )
|
|
|
|
|
2021-04-05 04:28:23 +02:00
|
|
|
[node name="A" parent="Sounds/Shoot" instance=ExtResource( 7 )]
|
2021-04-07 23:28:34 +02:00
|
|
|
SoundClip = "res://Assets/Audio/SFX/Weapons_Handgun_Shot_01_A.wav"
|
2021-04-05 04:28:23 +02:00
|
|
|
RandomizePitch = 0.05
|
2021-04-07 23:28:34 +02:00
|
|
|
Voice_Count = 2
|
2021-04-05 04:14:09 +02:00
|
|
|
|
2021-04-05 04:28:23 +02:00
|
|
|
[node name="B" parent="Sounds/Shoot" instance=ExtResource( 7 )]
|
2021-04-07 23:28:34 +02:00
|
|
|
SoundClip = "res://Assets/Audio/SFX/Weapons_Handgun_Shot_01_B.wav"
|
2021-04-05 04:28:23 +02:00
|
|
|
RandomizePitch = 0.05
|
2021-04-07 23:28:34 +02:00
|
|
|
Voice_Count = 2
|
2021-04-05 04:14:09 +02:00
|
|
|
|
2021-04-05 04:28:23 +02:00
|
|
|
[node name="C" parent="Sounds/Shoot" instance=ExtResource( 7 )]
|
2021-04-07 23:28:34 +02:00
|
|
|
SoundClip = "res://Assets/Audio/SFX/Weapons_Handgun_Shot_01_C.wav"
|
2021-04-05 04:28:23 +02:00
|
|
|
RandomizePitch = 0.05
|
2021-04-07 23:28:34 +02:00
|
|
|
Voice_Count = 2
|