retrace/Characters/Player/Player.tscn

118 lines
3.4 KiB
Plaintext

[gd_scene load_steps=11 format=2]
[ext_resource path="res://Characters/Player/Player.gd" type="Script" id=1]
[ext_resource path="res://Characters/Player/Footsteps.gd" type="Script" id=2]
[ext_resource path="res://Resources/Audio/Step.wav" type="AudioStream" id=3]
[ext_resource path="res://Characters/Player/UI/UI.tscn" type="PackedScene" id=4]
[ext_resource path="res://Characters/Player/PillTaker.gd" type="Script" id=5]
[sub_resource type="CylinderShape" id=1]
[sub_resource type="Animation" id=5]
resource_name = "PillTaking"
tracks/0/type = "transform"
tracks/0/path = NodePath("PillTaker/Pill")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = PoolRealArray( )
[sub_resource type="Animation" id=2]
resource_name = "Walk"
length = 0.8
loop = true
tracks/0/type = "value"
tracks/0/path = NodePath("Body/Camera:translation")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.2, 0.4, 0.6 ),
"transitions": PoolRealArray( 1, 1, 1, 1 ),
"update": 0,
"values": [ Vector3( 0, 1.8, 0 ), Vector3( -0.1, 1.9, 0 ), Vector3( 0, 1.8, 0 ), Vector3( 0.1, 1.9, 0 ) ]
}
tracks/1/type = "method"
tracks/1/path = NodePath("Footsteps")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0.3, 0.7 ),
"transitions": PoolRealArray( 1, 1 ),
"values": [ {
"args": [ ],
"method": "play_footstep"
}, {
"args": [ ],
"method": "play_footstep"
} ]
}
[sub_resource type="AudioStreamRandomPitch" id=3]
audio_stream = ExtResource( 3 )
random_pitch = 1.3
[sub_resource type="CapsuleMesh" id=4]
[node name="Player" type="KinematicBody" groups=[
"Player",
]]
collision_layer = 5
collision_mask = 5
script = ExtResource( 1 )
body_nodepath = NodePath("Body")
lookingAt_nodepath = NodePath("Body/Camera/LookingAt")
animation_nodepath = NodePath("AnimationPlayer")
ui_interact_nodepath = NodePath("HUD/PressInteract")
[node name="Body" type="Spatial" parent="."]
[node name="Camera" type="Camera" parent="Body"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0625, 1.85, 0 )
current = true
[node name="LookingAt" type="RayCast" parent="Body/Camera"]
transform = Transform( -1, 0, -8.74228e-008, 0, 1, 0, 8.74228e-008, 0, -1, 0, 0, 0 )
enabled = true
cast_to = Vector3( 0, 0, 2 )
[node name="Listener" type="Listener" parent="Body/Camera"]
current = true
[node name="Collider" type="CollisionShape" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0 )
shape = SubResource( 1 )
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
autoplay = "Walk"
anims/PillTaking = SubResource( 5 )
anims/Walk = SubResource( 2 )
[node name="Footsteps" type="Spatial" parent="."]
script = ExtResource( 2 )
[node name="Footstep1" type="AudioStreamPlayer3D" parent="Footsteps"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1 )
stream = SubResource( 3 )
unit_db = -25.0
pitch_scale = 1.5
[node name="HUD" parent="." instance=ExtResource( 4 )]
[node name="PillTaker" type="Spatial" parent="."]
script = ExtResource( 5 )
[node name="Pill" type="Spatial" parent="PillTaker"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -1 )
[node name="MeshInstance" type="MeshInstance" parent="PillTaker/Pill"]
transform = Transform( 0.1, 0, 0, 0, -4.37114e-009, -0.1, 0, 0.1, -4.37114e-009, 0, 0, 0 )
mesh = SubResource( 4 )
material/0 = null
[editable path="HUD"]