This repository has been archived on 2022-01-09. You can view files and clone it, but cannot push or open issues/pull-requests.
liblast/Game/Assets/Characters/Player.tscn

424 lines
13 KiB
Plaintext

[gd_scene load_steps=46 format=3 uid="uid://cwuys43c7ak61"]
[ext_resource type="Script" path="res://Assets/Characters/Player.gd" id="1"]
[ext_resource type="AudioStream" uid="uid://cy80oknjqs5om" path="res://Assets/SFX/Wind.wav" id="2_4ifi7"]
[ext_resource type="PackedScene" uid="uid://bemrov0tiy08n" path="res://Assets/Weapons/Weapon.tscn" id="3"]
[ext_resource type="Script" path="res://Assets/Audio/WindSFX.gd" id="3_7t4ny"]
[ext_resource type="Texture2D" uid="uid://pnh872qjk0oy" path="res://Assets/Effects/Flame.png" id="3_jw7jd"]
[ext_resource type="AudioStream" uid="uid://bmjh522fpxeee" path="res://Assets/SFX/Player_Jetpack.wav" id="4_k24if"]
[ext_resource type="AudioStream" uid="uid://3kb1cqt6lcaq" path="res://Assets/SFX/Player_Spawn.wav" id="5_bmajs"]
[ext_resource type="PackedScene" uid="uid://c5cwnfuw4go1b" path="res://Assets/Audio/SoundPlayer.tscn" id="5_yiom2"]
[ext_resource type="AudioStream" uid="uid://dnffb1xcdi2u5" path="res://Assets/SFX/Player_Pain_01.wav" id="6_a4nh8"]
[ext_resource type="AudioStream" uid="uid://dpxtkvkdj2ri3" path="res://Assets/SFX/Player_Jump_02.wav" id="6_s024f"]
[ext_resource type="AudioStream" uid="uid://gqypp5xk2ka7" path="res://Assets/SFX/Player_Pain_02.wav" id="7_0tfg5"]
[ext_resource type="AudioStream" uid="uid://ddj28v4w4whkg" path="res://Assets/SFX/Player_Pain_03.wav" id="8_n5il5"]
[ext_resource type="AudioStream" uid="uid://xe0bppsq0wef" path="res://Assets/SFX/Player_Pain_04.wav" id="9_bobut"]
[ext_resource type="AudioStream" uid="uid://b2vgruyk0hae" path="res://Assets/SFX/Player_Land_01.wav" id="14_31oxc"]
[ext_resource type="Texture2D" uid="uid://bf7idsht43ljr" path="res://Assets/Effects/FocusMenu.png" id="14_54yom"]
[ext_resource type="AudioStream" uid="uid://dnd66qj5vjnvd" path="res://Assets/SFX/Player_Impact.wav" id="15_6s4ha"]
[sub_resource type="StandardMaterial3D" id="4"]
albedo_color = Color(0.545098, 0.545098, 0.545098, 1)
roughness = 0.22
rim_enabled = true
rim_tint = 0.0
proximity_fade_distance = 0.68
distance_fade_max_distance = 0.4
[sub_resource type="CapsuleMesh" id="1"]
material = SubResource( "4" )
radius = 0.4
height = 1.7
[sub_resource type="Curve" id="Curve_drgxy"]
min_value = -80.0
max_value = 0.0
_data = [Vector2(0, -80), 0.0, 316.994, 0, 0, Vector2(0.0535332, -61.8182), 226.424, 188.687, 0, 0, Vector2(1, 0), 2.1708, 0.0, 0, 0]
[sub_resource type="Curve" id="Curve_mmscc"]
max_value = 100.0
_data = [Vector2(0, 28.1818), 0.0, 7.9355, 0, 1, Vector2(0.229122, 30), 7.9355, 0.0, 1, 0, Vector2(1, 99.0909), 172.113, 0.0, 0, 0]
[sub_resource type="CapsuleShape3D" id="2"]
radius = 0.4
height = 1.7
[sub_resource type="CylinderShape3D" id="3"]
radius = 0.25
height = 0.5
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_y4s21"]
albedo_color = Color(0.243137, 0.243137, 0.243137, 1)
metallic = 1.0
roughness = 0.45
[sub_resource type="CylinderMesh" id="CylinderMesh_8yana"]
top_radius = 0.1
bottom_radius = 0.1
height = 0.8
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_mytx0"]
blend_mode = 1
shading_mode = 0
vertex_color_use_as_albedo = true
albedo_color = Color(3, 3, 3, 1)
albedo_texture = ExtResource( "3_jw7jd" )
albedo_tex_force_srgb = true
billboard_mode = 3
particles_anim_h_frames = 2
particles_anim_v_frames = 2
particles_anim_loop = false
[sub_resource type="QuadMesh" id="QuadMesh_355ks"]
material = SubResource( "StandardMaterial3D_mytx0" )
[sub_resource type="Curve" id="Curve_elwjc"]
_data = [Vector2(0, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
[sub_resource type="Gradient" id="Gradient_fu53v"]
offsets = PackedFloat32Array(0, 0.0888031, 0.227799, 0.393822, 1)
colors = PackedColorArray(0, 0, 0, 1, 0.671875, 0.946167, 1, 1, 0.996185, 1, 0.511719, 1, 1, 0.732788, 0.222656, 1, 0, 0, 0, 1)
[sub_resource type="GradientTexture1D" id="GradientTexture_nta0d"]
gradient = SubResource( "Gradient_fu53v" )
width = 128
[sub_resource type="CurveTexture" id="CurveTexture_cvegn"]
width = 512
texture_mode = 1
curve = SubResource( "Curve_elwjc" )
[sub_resource type="ParticlesMaterial" id="ParticlesMaterial_px65a"]
scale_curve = SubResource( "CurveTexture_cvegn" )
color_ramp = SubResource( "GradientTexture_nta0d" )
anim_offset_min = -100.0
anim_offset_max = 100.0
collision_friction = 1.0
[sub_resource type="Gradient" id="Gradient_niqb5"]
offsets = PackedFloat32Array(0, 0.186757, 1)
colors = PackedColorArray(0, 0, 0, 1, 4, 4, 4, 1, 0, 0, 0, 1)
[sub_resource type="GradientTexture1D" id="GradientTexture_h65ov"]
gradient = SubResource( "Gradient_niqb5" )
[sub_resource type="ParticlesMaterial" id="ParticlesMaterial_lo734"]
emission_shape = 1
emission_sphere_radius = 0.5
spread = 180.0
gravity = Vector3(0, 0, 0)
initial_velocity_min = 1.46
initial_velocity_max = 1.46
angular_velocity_min = -19.42
angular_velocity_max = 10.59
radial_accel_min = 8.63
radial_accel_max = 8.63
tangential_accel_min = 9.68
tangential_accel_max = 9.68
damping_min = 0.22
damping_max = 0.31
angle_min = -103.3
angle_max = 97.0
scale_min = 0.1
scale_max = 0.7
color_ramp = SubResource( "GradientTexture_h65ov" )
[sub_resource type="Curve" id="Curve_gq708"]
_data = [Vector2(0, 0), 0.0, 13.2052, 0, 0, Vector2(0.366936, 0.509091), -2.93091, -2.93091, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0]
[sub_resource type="OpenSimplexNoise" id="OpenSimplexNoise_gkmtx"]
[sub_resource type="NoiseTexture" id="NoiseTexture_y0a2v"]
seamless = true
noise = SubResource( "OpenSimplexNoise_gkmtx" )
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_uw8c6"]
transparency = 1
blend_mode = 1
shading_mode = 0
vertex_color_use_as_albedo = true
albedo_color = Color(0, 0.137255, 1, 1)
albedo_texture = SubResource( "NoiseTexture_y0a2v" )
refraction_enabled = true
refraction_scale = 0.19
disable_receive_shadows = true
use_particle_trails = true
proximity_fade_enable = true
proximity_fade_distance = 0.1
[sub_resource type="RibbonTrailMesh" id="RibbonTrailMesh_34621"]
material = SubResource( "StandardMaterial3D_uw8c6" )
size = 0.151
sections = 7
section_length = 0.418
curve = SubResource( "Curve_gq708" )
[sub_resource type="Animation" id="Animation_r1ffi"]
resource_name = "01"
length = 0.5
tracks/0/type = "audio"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("PainSFX")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"clips": [{
"end_offset": 0.0,
"start_offset": 0.0,
"stream": ExtResource( "6_a4nh8" )
}],
"times": PackedFloat32Array(0)
}
[sub_resource type="Animation" id="Animation_dc3si"]
resource_name = "02"
length = 0.5
tracks/0/type = "audio"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("PainSFX")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"clips": [{
"end_offset": 0.271473,
"start_offset": 0.0,
"stream": ExtResource( "7_0tfg5" )
}],
"times": PackedFloat32Array(0)
}
[sub_resource type="Animation" id="Animation_uiuci"]
resource_name = "03"
length = 0.5
tracks/0/type = "audio"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("PainSFX")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"clips": [{
"end_offset": 0.216568,
"start_offset": 0.0,
"stream": ExtResource( "8_n5il5" )
}],
"times": PackedFloat32Array(0)
}
[sub_resource type="Animation" id="Animation_66hai"]
resource_name = "04"
length = 0.5
tracks/0/type = "audio"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("PainSFX")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"clips": [{
"end_offset": 0.0,
"start_offset": 0.0,
"stream": ExtResource( "9_bobut" )
}],
"times": PackedFloat32Array(0)
}
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ctb51"]
transparency = 1
no_depth_test = true
shading_mode = 0
albedo_texture = ExtResource( "14_54yom" )
disable_receive_shadows = true
billboard_mode = 1
point_size = 47.3
[sub_resource type="QuadMesh" id="QuadMesh_nhjmb"]
material = SubResource( "StandardMaterial3D_ctb51" )
[node name="Player" type="CharacterBody3D"]
disable_mode = 2
collision_layer = 2
collision_mask = 7
script = ExtResource( "1" )
[node name="Mesh" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.852763, 0)
layers = 2
mesh = SubResource( "1" )
surface_material_override/0 = null
[node name="Head" type="Node3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.45276, 0)
[node name="WindSFX" type="AudioStreamPlayer" parent="Head"]
stream = ExtResource( "2_4ifi7" )
bus = &"WindSFX"
script = ExtResource( "3_7t4ny" )
speed_to_volume = SubResource( "Curve_drgxy" )
speed_to_cutoff = SubResource( "Curve_mmscc" )
[node name="Camera" type="Camera3D" parent="Head"]
fov = 90.0
[node name="Hand" type="Node3D" parent="Head/Camera"]
transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, 0.3, -0.4, -0.6)
[node name="Weapon" parent="Head/Camera/Hand" instance=ExtResource( "3" )]
[node name="Tween" type="Node" parent="Head/Camera"]
[node name="RayCast3D" type="RayCast3D" parent="Head/Camera"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.77099e-07, 0, -0.742805)
target_position = Vector3(0, 0, -1000)
collision_mask = 2
[node name="GPUParticlesCollisionSphere" type="Node" parent="."]
[node name="Body" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.852763, 0)
shape = SubResource( "2" )
[node name="Feet" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.252763, 0)
shape = SubResource( "3" )
disabled = true
[node name="GroundCheck" type="RayCast3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.952763, 0)
target_position = Vector3(0, -1.1, 0)
debug_shape_thickness = 5.0
[node name="ClimbCheck" type="RayCast3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.60905, -0.5)
visible = false
enabled = false
target_position = Vector3(0, -1.35, 0)
[node name="ClimbTween" type="Node" parent="."]
[node name="Jetpack" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.93832, 0.5022)
layers = 2
material_override = SubResource( "StandardMaterial3D_y4s21" )
mesh = SubResource( "CylinderMesh_8yana" )
surface_material_override/0 = null
[node name="OmniLight3D" type="OmniLight3D" parent="Jetpack"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.68079, 0)
visible = false
light_color = Color(0.890196, 0.917647, 1, 1)
light_energy = 4.0
light_size = 0.46
light_specular = 0.27
shadow_enabled = true
shadow_blur = 0.85
[node name="GPUParticles3D" type="CPUParticles3D" parent="Jetpack"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.45039, 0.00259888)
emitting = false
amount = 128
lifetime = 0.5
fixed_fps = 30
local_coords = false
mesh = SubResource( "QuadMesh_355ks" )
particle_flag_rotate_y = true
direction = Vector3(0, -1, 0)
spread = 0.0
initial_velocity_min = 8.0
initial_velocity_max = 9.0
damping_min = 25.0
damping_max = 28.0
angle_min = -180.0
angle_max = 180.0
scale_amount_curve = SubResource( "Curve_elwjc" )
color_ramp = SubResource( "Gradient_fu53v" )
anim_offset_min = -100.0
anim_offset_max = 100.0
[node name="GPUParticles3D2" type="GPUParticles3D" parent="Jetpack"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.45039, 0.00259888)
visible = false
emitting = false
lifetime = 3.0
local_coords = false
process_material = SubResource( "ParticlesMaterial_px65a" )
draw_pass_1 = SubResource( "QuadMesh_355ks" )
[node name="JetpackSound" type="AudioStreamPlayer3D" parent="Jetpack"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.444909, 0)
stream = ExtResource( "4_k24if" )
unit_db = -24.0
unit_size = 4.0
max_db = -12.0
pitch_scale = 3.0
doppler_tracking = 2
[node name="SpawnSFX" type="AudioStreamPlayer3D" parent="."]
stream = ExtResource( "5_bmajs" )
autoplay = true
[node name="SpawnVFX" type="GPUParticles3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.918712, 0)
layers = 4
cast_shadow = 0
emitting = false
amount = 128
lifetime = 2.0
one_shot = true
explosiveness = 1.0
local_coords = false
transform_align = 2
trail_enabled = true
trail_length_secs = 0.35
process_material = SubResource( "ParticlesMaterial_lo734" )
draw_pass_1 = SubResource( "RibbonTrailMesh_34621" )
[node name="Pain" type="AnimationPlayer" parent="."]
root_node = NodePath(".")
anims/01 = SubResource( "Animation_r1ffi" )
anims/02 = SubResource( "Animation_dc3si" )
anims/03 = SubResource( "Animation_uiuci" )
anims/04 = SubResource( "Animation_66hai" )
[node name="PainSFX" type="AudioStreamPlayer3D" parent="Pain"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.29486, 0)
stream = ExtResource( "9_bobut" )
max_db = 0.0
attenuation_filter_cutoff_hz = 10000.0
attenuation_filter_db = -8.0
[node name="JumpSFX" parent="." instance=ExtResource( "5_yiom2" )]
[node name="AudioStreamPlayer3D" parent="JumpSFX" index="0"]
stream = ExtResource( "6_s024f" )
unit_size = 10.0
[node name="LandSFX" parent="." instance=ExtResource( "5_yiom2" )]
[node name="AudioStreamPlayer3D" parent="LandSFX" index="0"]
stream = ExtResource( "14_31oxc" )
unit_size = 10.0
max_db = 0.0
autoplay = true
[node name="ImpactSFX" parent="." instance=ExtResource( "5_yiom2" )]
[node name="AudioStreamPlayer3D" parent="ImpactSFX" index="0"]
stream = ExtResource( "15_6s4ha" )
unit_size = 10.0
max_db = 0.0
autoplay = true
[node name="FocusBanner" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, 0)
layers = 4
cast_shadow = 0
mesh = SubResource( "QuadMesh_nhjmb" )
surface_material_override/0 = null
[editable path="JumpSFX"]
[editable path="LandSFX"]
[editable path="ImpactSFX"]