forked from unfa/liblast
86 lines
2.9 KiB
Plaintext
86 lines
2.9 KiB
Plaintext
[gd_scene load_steps=14 format=2]
|
|
|
|
[ext_resource path="res://Assets/Weapons/GrenadeLauncher/GranadeLauncher.gltf" type="PackedScene" id=1]
|
|
[ext_resource path="res://Classes/Weapon/Weapon.gd" type="Script" id=2]
|
|
[ext_resource path="res://Assets/Audio/SFX/Weapons_Handun_Shot_01_A.wav" type="AudioStream" id=3]
|
|
[ext_resource path="res://Assets/Effects/CircleSoft.svg" type="Texture" id=4]
|
|
[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]
|
|
|
|
[sub_resource type="Gradient" id=1]
|
|
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 )
|
|
|
|
[sub_resource type="GradientTexture" id=2]
|
|
gradient = SubResource( 1 )
|
|
|
|
[sub_resource type="Curve" id=3]
|
|
_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 ]
|
|
|
|
[sub_resource type="CurveTexture" id=4]
|
|
curve = SubResource( 3 )
|
|
|
|
[sub_resource type="ParticlesMaterial" id=5]
|
|
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
|
|
scale_curve = SubResource( 4 )
|
|
color_ramp = SubResource( 2 )
|
|
|
|
[sub_resource type="SpatialMaterial" id=6]
|
|
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 )
|
|
|
|
[sub_resource type="QuadMesh" id=7]
|
|
material = SubResource( 6 )
|
|
size = Vector2( 0.3, 0.3 )
|
|
|
|
[node name="Weapon" type="Spatial"]
|
|
script = ExtResource( 2 )
|
|
|
|
[node name="MuzzleFlash" type="Particles" parent="."]
|
|
transform = Transform( -4.37113e-08, 0, 0.999999, 0, 0.999999, 0, -1, 0, -4.37114e-08, -0.562363, 0.0926898, 0 )
|
|
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 )
|
|
process_material = SubResource( 5 )
|
|
draw_pass_1 = SubResource( 7 )
|
|
|
|
[node name="GranadeLauncher" parent="." instance=ExtResource( 1 )]
|
|
|
|
[node name="Sounds" type="Spatial" parent="."]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.295478, 0.724833, 0.584699 )
|
|
|
|
[node name="SoundShoot" type="AudioStreamPlayer3D" parent="Sounds"]
|
|
transform = Transform( -4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0, 0 )
|
|
stream = ExtResource( 3 )
|
|
attenuation_model = 3
|
|
unit_db = 3.0
|
|
unit_size = 25.0
|
|
pitch_scale = 0.5
|
|
emission_angle_enabled = true
|
|
emission_angle_degrees = 60.0
|
|
attenuation_filter_cutoff_hz = 15000.0
|
|
|
|
[node name="SoundEmpty" type="AudioStreamPlayer3D" parent="Sounds"]
|
|
stream = ExtResource( 5 )
|
|
|
|
[node name="SoundReload" type="AudioStreamPlayer3D" parent="Sounds"]
|
|
stream = ExtResource( 6 )
|