SpielBackupAlt/addons/RadMatt.3DFPP/Player.tscn

196 lines
5.4 KiB
Plaintext
Raw Normal View History

2024-12-26 14:54:06 +00:00
[gd_scene load_steps=8 format=2]
[ext_resource path="res://addons/RadMatt.3DFPP/Player.gd" type="Script" id=1]
[ext_resource path="res://addons/RadMatt.3DFPP/Test_Objects/pointer.png" type="Texture" id=2]
[ext_resource path="res://entities/LightLevel.tscn" type="PackedScene" id=3]
[sub_resource type="CapsuleShape" id=3]
radius = 0.6
[sub_resource type="GDScript" id=4]
script/source = "extends Label
# class member variables go here, for example:
# var a = 2
# var b = \"textvar\"
func _ready():
# Called every time the node is added to the scene.
# Initialization here
pass
func _process(delta):
set_text(str(Engine.get_frames_per_second()))
"
[sub_resource type="Animation" id=5]
length = 0.5
tracks/0/type = "value"
tracks/0/path = NodePath("Collision:shape:height")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/keys = {
"times": PoolRealArray( 0, 0.5 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ 1.0, 0.1 ]
}
tracks/1/type = "value"
tracks/1/path = NodePath("Collision:translation")
tracks/1/interp = 2
tracks/1/loop_wrap = true
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/keys = {
"times": PoolRealArray( 0, 0.5 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Vector3( 0, 1.5, 0 ), Vector3( 0, 1, 0 ) ]
}
tracks/2/type = "value"
tracks/2/path = NodePath("Yaw/Camera:translation")
tracks/2/interp = 2
tracks/2/loop_wrap = true
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/keys = {
"times": PoolRealArray( 0, 0.5 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Vector3( 0, 2.5, 0 ), Vector3( 0, 1.5, 0 ) ]
}
tracks/3/type = "value"
tracks/3/path = NodePath("ceiling_check:translation")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/keys = {
"times": PoolRealArray( 0, 0.5 ),
"transitions": PoolRealArray( 1, 1 ),
"update": 0,
"values": [ Vector3( 0, 2.5, 0 ), Vector3( 0, 1.5, 1.42109e-14 ) ]
}
[sub_resource type="GDScript" id=6]
script/source = "extends ProgressBar
# class member variables go here, for example:
# var a = 2
# var b = \"textvar\"
func _ready():
set_max(250)
func _process(delta):
set_value(get_parent().throw_power)
"
[node name="Player" type="KinematicBody" groups=["Player"]]
script = ExtResource( 1 )
[node name="ceiling_check" type="RayCast" parent="."]
transform = Transform( 1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 2.5, 0 )
enabled = true
cast_to = Vector3( 0, 0, 4 )
[node name="Collision" type="CollisionShape" parent="."]
transform = Transform( 1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 1.5, 0 )
shape = SubResource( 3 )
[node name="floor_check" type="RayCast" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0 )
enabled = true
cast_to = Vector3( 0, -0.5, 0 )
[node name="Yaw" type="Spatial" parent="."]
[node name="Camera" type="Camera" parent="Yaw"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.5, 0 )
cull_mask = 524287
current = true
[node name="Item_Holder" type="Spatial" parent="Yaw/Camera"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.584962, -0.714723, -1.12066 )
[node name="look_at" type="Position3D" parent="Yaw/Camera"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -2.3193 )
[node name="pickup_pos" type="Position3D" parent="Yaw/Camera"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.423076, -0.173781, -0.980936 )
[node name="InteractionRay" type="RayCast" parent="Yaw/Camera"]
enabled = true
cast_to = Vector3( 0, 0, -5 )
collision_mask = 3
[node name="CamPos" type="Spatial" parent="Yaw"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.5, 0 )
[node name="stair_check" type="RayCast" parent="Yaw"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.02655, -0.624282 )
enabled = true
cast_to = Vector3( 0, -0.5, 0 )
[node name="FPS" type="Label" parent="."]
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
margin_left = -200.0
margin_top = -50.0
align = 2
valign = 1
script = SubResource( 4 )
[node name="crouching" type="AnimationPlayer" parent="."]
anims/crouch = SubResource( 5 )
[node name="ProgressBar" type="ProgressBar" parent="."]
margin_left = 26.0
margin_top = 22.0
margin_right = 378.0
margin_bottom = 51.0
max_value = 250.0
step = 2.0
script = SubResource( 6 )
[node name="message" type="Label" parent="."]
margin_left = 716.0
margin_top = 168.0
margin_right = 807.0
margin_bottom = 182.0
rect_scale = Vector2( 2, 2 )
[node name="Timer" type="Timer" parent="message"]
[node name="interaction_text" type="Label" parent="."]
anchor_top = 0.5
anchor_right = 1.0
anchor_bottom = 0.5
margin_top = -43.0
margin_bottom = 7.0
text = "interaction"
align = 1
valign = 1
[node name="Pointer" type="TextureRect" parent="."]
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
margin_left = -13.5
margin_top = -14.0
margin_right = 252.5
margin_bottom = 252.0
rect_scale = Vector2( 0.1, 0.1 )
mouse_filter = 2
texture = ExtResource( 2 )
[node name="LightLevel" parent="." instance=ExtResource( 3 )]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.5, 0 )
[connection signal="animation_finished" from="crouching" to="." method="_on_crouching_animation_finished"]