1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
|
[gd_scene load_steps=23 format=2]
[ext_resource path="res://meshes/pistol.tres" type="ArrayMesh" id=1]
[ext_resource path="res://animations/weapons/pistol_idle.tres" type="Animation" id=2]
[ext_resource path="res://animations/weapons/pistol_fire.tres" type="Animation" id=3]
[ext_resource path="res://meshes/pistol_skin.tres" type="Skin" id=4]
[ext_resource path="res://sounds/pistol.wav" type="AudioStream" id=5]
[ext_resource path="res://animations/weapons/pistol_reset.tres" type="Animation" id=6]
[ext_resource path="res://sounds/lock_click.wav" type="AudioStream" id=7]
[ext_resource path="res://sounds/reload_sounds.wav" type="AudioStream" id=8]
[sub_resource type="Gradient" id=4]
offsets = PoolRealArray( 0, 0.577778 )
colors = PoolColorArray( 1, 0.633789, 0.0625, 1, 0, 0, 0, 1 )
[sub_resource type="GradientTexture" id=5]
gradient = SubResource( 4 )
[sub_resource type="Curve" id=6]
max_value = 0.05
_data = [ Vector2( 0, 0.05 ), 0.0, 0.0, 0, 0, Vector2( 1, 0 ), 0.0, 0.0, 0, 0 ]
[sub_resource type="CurveTexture" id=7]
curve = SubResource( 6 )
[sub_resource type="ParticlesMaterial" id=1]
direction = Vector3( 0, 0.5, 1 )
spread = 25.06
initial_velocity = 3.0
initial_velocity_random = 0.04
angle = 360.0
angle_random = 1.0
scale_random = 0.03
scale_curve = SubResource( 7 )
color = Color( 1, 0.678431, 0, 1 )
color_ramp = SubResource( 5 )
[sub_resource type="SpatialMaterial" id=2]
flags_unshaded = true
vertex_color_use_as_albedo = true
params_billboard_mode = 3
particles_anim_h_frames = 1
particles_anim_v_frames = 1
particles_anim_loop = false
[sub_resource type="QuadMesh" id=3]
material = SubResource( 2 )
size = Vector2( 0.25, 1 )
[sub_resource type="Gradient" id=13]
offsets = PoolRealArray( 0, 0.16, 0.488889 )
colors = PoolColorArray( 1, 0, 0, 1, 1, 0.679688, 0, 1, 0, 0, 0, 1 )
[sub_resource type="GradientTexture" id=14]
gradient = SubResource( 13 )
[sub_resource type="Curve" id=11]
_data = [ Vector2( 0, 0.405045 ), 0.0, 0.0, 0, 0, Vector2( 0.0806452, 1 ), 0.0, 0.0, 0, 0, Vector2( 0.229839, 0 ), 0.0, 0.0, 0, 0 ]
[sub_resource type="CurveTexture" id=12]
curve = SubResource( 11 )
[sub_resource type="ParticlesMaterial" id=8]
spread = 14.56
gravity = Vector3( 0, 0, 0 )
initial_velocity = 14.7
damping = 8.82
angle = 360.0
angle_random = 1.0
scale_random = 0.07
scale_curve = SubResource( 12 )
color_ramp = SubResource( 14 )
hue_variation = 0.07
[sub_resource type="SpatialMaterial" id=9]
flags_unshaded = true
vertex_color_use_as_albedo = true
params_billboard_mode = 3
particles_anim_h_frames = 1
particles_anim_v_frames = 1
particles_anim_loop = false
[sub_resource type="PrismMesh" id=10]
material = SubResource( 9 )
size = Vector3( 0.3, 0.3, 0.3 )
[node name="pistol_model" type="Spatial"]
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
autoplay = "idle"
anims/fire = ExtResource( 3 )
anims/idle = ExtResource( 2 )
anims/reset = ExtResource( 6 )
[node name="Skeleton" type="Skeleton" parent="."]
bones/0/name = "Hammer"
bones/0/parent = -1
bones/0/rest = Transform( 0.942829, 0.333276, 9.68673e-08, -0.333276, 0.942829, 1.32945e-07, -4.7022e-08, -1.57628e-07, 1, 0.0808807, 0.0417358, 0.0358447 )
bones/0/enabled = true
bones/0/bound_children = [ ]
bones/1/name = "Frizzen"
bones/1/parent = -1
bones/1/rest = Transform( 0.877352, 0.479847, 1.229e-07, -0.479847, 0.877352, -1.26661e-07, -1.68604e-07, 5.21531e-08, 1, 0.16979, 0.0569473, 0.0387622 )
bones/1/enabled = true
bones/1/bound_children = [ ]
bones/2/name = "neutral_bone"
bones/2/parent = -1
bones/2/rest = Transform( 1, 0, 0, 0, 0, 1, 0, -1, 0, 0, 0, 0 )
bones/2/enabled = true
bones/2/bound_children = [ ]
[node name="Pistol" type="MeshInstance" parent="Skeleton"]
mesh = ExtResource( 1 )
skin = ExtResource( 4 )
[node name="FireAudio" type="AudioStreamPlayer3D" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.625837, 0, 0 )
stream = ExtResource( 5 )
attenuation_model = 2
[node name="LockParticles" type="Particles" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.14647, 0.0421569, 0 )
emitting = false
amount = 10
lifetime = 0.5
one_shot = true
explosiveness = 0.97
process_material = SubResource( 1 )
draw_pass_1 = SubResource( 3 )
[node name="MuzzleParticles" type="Particles" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.529256, 0.065655, 0 )
emitting = false
amount = 16
lifetime = 0.67
one_shot = true
explosiveness = 1.0
process_material = SubResource( 8 )
draw_pass_1 = SubResource( 10 )
[node name="ReloadAudio" type="AudioStreamPlayer3D" parent="."]
stream = ExtResource( 7 )
unit_db = -6.154
[node name="PistolReload" type="AudioStreamPlayer" parent="."]
stream = ExtResource( 8 )
|