liblast/Game/Assets/Characters/Player.tscn

195 lines
5.9 KiB
Plaintext

[gd_scene load_steps=18 format=3 uid="uid://cwuys43c7ak61"]
[ext_resource type="Script" path="res://Assets/Characters/Player.gd" id="1"]
[ext_resource type="PackedScene" uid="uid://bemrov0tiy08n" path="res://Assets/Weapons/Weapon.tscn" id="3"]
[ext_resource type="Texture2D" uid="uid://cguy76rs8e220" 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"]
[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="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="GradientTexture" 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
[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
script = null
[node name="Head" type="Node3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.45276, 0)
script = null
[node name="Camera" type="Camera3D" parent="Head"]
transform = Transform3D(1, 0, 2.38419e-07, 0, 1, 0, -2.38419e-07, 0, 1, 0, 0, 0)
fov = 90.0
script = null
[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)
script = null
[node name="Weapon" parent="Head/Camera/Hand" instance=ExtResource( "3" )]
[node name="Tween" type="Node" parent="Head/Camera"]
script = null
[node name="Body" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.852763, 0)
shape = SubResource( "2" )
script = null
[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
script = null
[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
script = null
[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)
script = null
[node name="ClimbTween" type="Node" parent="."]
script = null
[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
script = 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
script = null
[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
script = null
[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" )
script = null
[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
script = null