godot-third-person-basic-scene/PlayerB/Player/Player.tscn

376 lines
16 KiB
Text
Raw Normal View History

2023-04-07 11:41:06 +00:00
[gd_scene load_steps=54 format=3 uid="uid://dc6663xbsik21"]
2023-04-07 11:41:06 +00:00
[ext_resource type="PackedScene" uid="uid://bq0bttof5t0c8" path="res://PlayerB/Character/mixamo_character.tscn" id="1_ihvpu"]
[ext_resource type="PackedScene" uid="uid://bfkejs88xm680" path="res://addons/PoseWarping/MotionWarping.tscn" id="2_0jifq"]
[ext_resource type="Script" path="res://addons/AMSG/Components/PlayerGameplayComponent.gd" id="3_jj2if"]
[ext_resource type="PackedScene" uid="uid://cegbfvlakd2rw" path="res://addons/AMSG/Components/Networking.tscn" id="4_8jv5v"]
[ext_resource type="PackedScene" path="res://PlayerB/Player/flashlight/Flashlight.tscn" id="5_euvsl"]
[ext_resource type="Script" path="res://PlayerB/Player/Status.gd" id="6_8h4hk"]
[ext_resource type="Texture2D" uid="uid://dpkisrpco54qj" path="res://PlayerB/Player/UI/Debug/circle.png" id="7_n2d8i"]
[ext_resource type="Texture2D" uid="uid://ijv6wr22hov8" path="res://PlayerB/Player/UI/Debug/direction.png" id="8_t071y"]
[ext_resource type="Texture2D" uid="uid://ck5riwbh478s4" path="res://PlayerB/Player/UI/Debug/velocity.png" id="9_464xm"]
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_twcy5"]
animation = &"TurnLeft"
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_a2hmg"]
animation = &"TurnRight"
2023-04-07 11:41:06 +00:00
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_x26ck"]
animation = &"Falling"
2023-04-07 11:41:06 +00:00
[sub_resource type="AnimationNodeBlend2" id="AnimationNodeBlend2_1l4w4"]
sync = true
[sub_resource type="AnimationNodeBlend2" id="AnimationNodeBlend2_rgrah"]
sync = true
[sub_resource type="AnimationNodeBlend2" id="AnimationNodeBlend2_nh7d2"]
filter_enabled = true
filters = ["Armature/Skeleton3D:Hips", "Armature/Skeleton3D:LeftFoot", "Armature/Skeleton3D:LeftLeg", "Armature/Skeleton3D:LeftToeBase", "Armature/Skeleton3D:LeftUpLeg", "Armature/Skeleton3D:RightFoot", "Armature/Skeleton3D:RightLeg", "Armature/Skeleton3D:RightToeBase", "Armature/Skeleton3D:RightUpLeg"]
sync = true
[sub_resource type="AnimationNodeTransition" id="AnimationNodeTransition_ap4r3"]
sync = true
xfade_time = 0.3
input_0/name = "stand"
input_0/auto_advance = false
2023-04-07 11:41:06 +00:00
input_0/reset = true
input_1/name = "crouch"
input_1/auto_advance = false
2023-04-07 11:41:06 +00:00
input_1/reset = true
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_154hg"]
animation = &"CrouchIdle"
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_0bv1y"]
animation = &"CrouchWalkingForward"
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_urt4k"]
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_6juuf"]
xfade_time = 0.2
switch_mode = 1
advance_condition = &"walking"
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_611fp"]
xfade_time = 0.2
switch_mode = 1
advance_condition = &"idle"
[sub_resource type="AnimationNodeStateMachine" id="AnimationNodeStateMachine_w0g24"]
states/CrouchIdle/node = SubResource("AnimationNodeAnimation_154hg")
states/CrouchIdle/position = Vector2(321, 100)
states/CrouchWalkingForward/node = SubResource("AnimationNodeAnimation_0bv1y")
states/CrouchWalkingForward/position = Vector2(560, 100)
states/Start/position = Vector2(157, 100)
transitions = ["Start", "CrouchIdle", SubResource("AnimationNodeStateMachineTransition_urt4k"), "CrouchIdle", "CrouchWalkingForward", SubResource("AnimationNodeStateMachineTransition_6juuf"), "CrouchWalkingForward", "CrouchIdle", SubResource("AnimationNodeStateMachineTransition_611fp")]
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_5ouea"]
animation = &"Idle"
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_q0w1d"]
animation = &"Jogbackward"
[sub_resource type="AnimationNodeTransition" id="AnimationNodeTransition_5puiv"]
input_0/name = "Forward"
input_0/auto_advance = false
2023-04-07 11:41:06 +00:00
input_0/reset = true
input_1/name = "Backward"
input_1/auto_advance = false
2023-04-07 11:41:06 +00:00
input_1/reset = true
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_2fd4a"]
animation = &"JogForward"
[sub_resource type="AnimationNodeBlendTree" id="AnimationNodeBlendTree_fipxh"]
graph_offset = Vector2(-467, 62.6111)
nodes/Backward/node = SubResource("AnimationNodeAnimation_q0w1d")
nodes/Backward/position = Vector2(-100, 220)
nodes/FB/node = SubResource("AnimationNodeTransition_5puiv")
nodes/FB/position = Vector2(140, 140)
nodes/Forward/node = SubResource("AnimationNodeAnimation_2fd4a")
nodes/Forward/position = Vector2(-100, 100)
node_connections = [&"output", 0, &"FB", &"FB", 0, &"Forward", &"FB", 1, &"Backward"]
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_j4dou"]
animation = &"Run"
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_o6ga8"]
animation = &"RunToStop"
[sub_resource type="AnimationNodeTimeSeek" id="AnimationNodeTimeSeek_mnurx"]
[sub_resource type="AnimationNodeBlendTree" id="AnimationNodeBlendTree_rd7gb"]
graph_offset = Vector2(-348.252, 95.8945)
nodes/StopAnim/node = SubResource("AnimationNodeAnimation_o6ga8")
nodes/StopAnim/position = Vector2(-260, 180)
nodes/StopSeek/node = SubResource("AnimationNodeTimeSeek_mnurx")
nodes/StopSeek/position = Vector2(-60, 160)
node_connections = [&"output", 0, &"StopSeek", &"StopSeek", 0, &"StopAnim"]
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_fgiyf"]
animation = &"WalkingBackward"
[sub_resource type="AnimationNodeTransition" id="AnimationNodeTransition_s7sc4"]
input_0/name = "Forward"
input_0/auto_advance = false
2023-04-07 11:41:06 +00:00
input_0/reset = true
input_1/name = "Backward"
input_1/auto_advance = false
2023-04-07 11:41:06 +00:00
input_1/reset = true
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_msank"]
animation = &"Walk"
[sub_resource type="AnimationNodeBlendTree" id="AnimationNodeBlendTree_8bvke"]
graph_offset = Vector2(-440, 10)
nodes/Backward/node = SubResource("AnimationNodeAnimation_fgiyf")
nodes/Backward/position = Vector2(-100, 180)
nodes/FB/node = SubResource("AnimationNodeTransition_s7sc4")
nodes/FB/position = Vector2(140, 100)
nodes/Forward/node = SubResource("AnimationNodeAnimation_msank")
nodes/Forward/position = Vector2(-60, 60)
node_connections = [&"output", 0, &"FB", &"FB", 0, &"Forward", &"FB", 1, &"Backward"]
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_wnbtw"]
xfade_time = 0.2
switch_mode = 2
advance_condition = &"idle"
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_rvsaa"]
advance_condition = &"stop"
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_s0egl"]
xfade_time = 0.2
switch_mode = 1
advance_condition = &"sprinting"
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_xf5i1"]
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_nbs2g"]
xfade_time = 0.2
switch_mode = 1
advance_condition = &"walking"
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_rs3n0"]
advance_condition = &"stop"
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_6gab4"]
xfade_time = 0.2
switch_mode = 1
advance_condition = &"running"
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_6m5a2"]
xfade_time = 0.2
switch_mode = 1
advance_condition = &"walking"
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_hy2h2"]
xfade_time = 0.2
switch_mode = 1
advance_condition = &"running"
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_2tyel"]
xfade_time = 0.2
switch_mode = 1
advance_condition = &"sprinting"
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_7h1qf"]
advance_condition = &"stop"
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_4twgu"]
xfade_time = 0.2
switch_mode = 1
advance_condition = &"running"
[sub_resource type="AnimationNodeStateMachine" id="AnimationNodeStateMachine_5xtv7"]
states/Idle/node = SubResource("AnimationNodeAnimation_5ouea")
states/Idle/position = Vector2(137, 278)
states/Jog/node = SubResource("AnimationNodeBlendTree_fipxh")
states/Jog/position = Vector2(687.227, 134)
states/Run/node = SubResource("AnimationNodeAnimation_j4dou")
states/Run/position = Vector2(881, 296)
states/Start/position = Vector2(22, 278)
states/Stopping/node = SubResource("AnimationNodeBlendTree_rd7gb")
states/Stopping/position = Vector2(505, 327)
states/Walk/node = SubResource("AnimationNodeBlendTree_8bvke")
states/Walk/position = Vector2(216.227, 134)
transitions = ["Stopping", "Idle", SubResource("AnimationNodeStateMachineTransition_wnbtw"), "Run", "Stopping", SubResource("AnimationNodeStateMachineTransition_rvsaa"), "Idle", "Run", SubResource("AnimationNodeStateMachineTransition_s0egl"), "Start", "Idle", SubResource("AnimationNodeStateMachineTransition_xf5i1"), "Idle", "Walk", SubResource("AnimationNodeStateMachineTransition_nbs2g"), "Walk", "Stopping", SubResource("AnimationNodeStateMachineTransition_rs3n0"), "Walk", "Jog", SubResource("AnimationNodeStateMachineTransition_6gab4"), "Jog", "Walk", SubResource("AnimationNodeStateMachineTransition_6m5a2"), "Run", "Jog", SubResource("AnimationNodeStateMachineTransition_hy2h2"), "Jog", "Run", SubResource("AnimationNodeStateMachineTransition_2tyel"), "Jog", "Stopping", SubResource("AnimationNodeStateMachineTransition_7h1qf"), "Idle", "Jog", SubResource("AnimationNodeStateMachineTransition_4twgu")]
graph_offset = Vector2(-13.773, 102)
[sub_resource type="AnimationNodeBlendTree" id="AnimationNodeBlendTree_512i8"]
graph_offset = Vector2(-482.415, 81.5292)
nodes/crouch/node = SubResource("AnimationNodeTransition_ap4r3")
nodes/crouch/position = Vector2(100, 180)
nodes/crouching/node = SubResource("AnimationNodeStateMachine_w0g24")
nodes/crouching/position = Vector2(-120, 300)
nodes/standing/node = SubResource("AnimationNodeStateMachine_5xtv7")
nodes/standing/position = Vector2(-120, 40)
node_connections = [&"output", 0, &"crouch", &"crouch", 0, &"standing", &"crouch", 1, &"crouching"]
[sub_resource type="AnimationNodeBlendTree" id="AnimationNodeBlendTree_j336j"]
resource_local_to_scene = true
2023-04-07 11:41:06 +00:00
graph_offset = Vector2(189.59, 976.103)
nodes/AnimTurnLeft/node = SubResource("AnimationNodeAnimation_twcy5")
nodes/AnimTurnLeft/position = Vector2(500, 1540)
nodes/AnimTurnRight/node = SubResource("AnimationNodeAnimation_a2hmg")
nodes/AnimTurnRight/position = Vector2(500, 1660)
2023-04-07 11:41:06 +00:00
nodes/FallAnimation/node = SubResource("AnimationNodeAnimation_x26ck")
nodes/FallAnimation/position = Vector2(1060, 1640)
nodes/InAir/node = SubResource("AnimationNodeBlend2_1l4w4")
nodes/InAir/position = Vector2(1280, 1380)
nodes/RightOrLeft/node = SubResource("AnimationNodeBlend2_rgrah")
nodes/RightOrLeft/position = Vector2(720, 1560)
nodes/Turn/node = SubResource("AnimationNodeBlend2_nh7d2")
nodes/Turn/position = Vector2(980, 1400)
nodes/VelocityDirection/node = SubResource("AnimationNodeBlendTree_512i8")
nodes/VelocityDirection/position = Vector2(680, 1400)
nodes/output/position = Vector2(1540, 1400)
2023-04-07 11:41:06 +00:00
node_connections = [&"output", 0, &"InAir", &"InAir", 0, &"Turn", &"InAir", 1, &"FallAnimation", &"RightOrLeft", 0, &"AnimTurnLeft", &"RightOrLeft", 1, &"AnimTurnRight", &"Turn", 0, &"VelocityDirection", &"Turn", 1, &"RightOrLeft"]
[sub_resource type="AnimationNodeStateMachinePlayback" id="AnimationNodeStateMachinePlayback_tgni3"]
[sub_resource type="AnimationNodeStateMachinePlayback" id="AnimationNodeStateMachinePlayback_44upy"]
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_ied37"]
resource_local_to_scene = true
radius = 0.375
height = 1.0
[node name="Character" instance=ExtResource("1_ihvpu")]
[node name="MotionWarping" parent="." index="0" instance=ExtResource("2_0jifq")]
[node name="CharacterMovementComponent" parent="." index="1"]
script = ExtResource("3_jj2if")
networking_path = NodePath("../Networking")
OnePressJump = true
UsingSprintToggle = false
UsingCrouchToggle = true
2023-04-07 11:41:06 +00:00
[node name="AnimationTree" parent="." index="2"]
tree_root = SubResource("AnimationNodeBlendTree_j336j")
parameters/VelocityDirection/crouching/playback = SubResource("AnimationNodeStateMachinePlayback_tgni3")
parameters/VelocityDirection/standing/playback = SubResource("AnimationNodeStateMachinePlayback_44upy")
2023-04-07 11:41:06 +00:00
[node name="CameraComponent" parent="." index="3"]
networking_path = NodePath("../Networking")
[node name="Networking" parent="." index="4" instance=ExtResource("4_8jv5v")]
character_movement_component = NodePath("../CharacterMovementComponent")
[node name="CollisionShape3D" parent="." index="5"]
shape = SubResource("CapsuleShape3D_ied37")
[node name="flashlight" parent="Armature" index="1" instance=ExtResource("5_euvsl")]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 1.12407, 0.156779)
light_energy = 10.0
[node name="Status" type="Control" parent="." index="11"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("6_8h4hk")
[node name="Control" type="Control" parent="Status" index="0"]
layout_mode = 3
anchors_preset = 0
offset_left = 192.847
offset_top = 162.692
offset_right = 232.847
offset_bottom = 202.692
[node name="Circle" type="Sprite2D" parent="Status/Control" index="0"]
scale = Vector2(0.287, 0.287)
texture = ExtResource("7_n2d8i")
[node name="mesh" type="Sprite2D" parent="Status/Control" index="1"]
modulate = Color(1, 0.345098, 0.345098, 1)
scale = Vector2(0.287, 0.287)
texture = ExtResource("8_t071y")
offset = Vector2(112, 0)
[node name="Velocity" type="Sprite2D" parent="Status/Control" index="2"]
scale = Vector2(0.287, 0.287)
texture = ExtResource("9_464xm")
[node name="Direction" type="Sprite2D" parent="Status/Control" index="3"]
scale = Vector2(0.287, 0.287)
texture = ExtResource("8_t071y")
offset = Vector2(112, 0)
[node name="Label" type="Label" parent="Status" index="1"]
2023-04-07 11:41:06 +00:00
layout_mode = 0
offset_left = 500.618
offset_top = 234.989
offset_right = 540.618
offset_bottom = 248.989
theme_override_colors/font_color = Color(0, 0, 0, 1)
[node name="Label2" type="Label" parent="Status" index="2"]
2023-04-07 11:41:06 +00:00
layout_mode = 0
offset_left = 500.618
offset_top = 263.497
offset_right = 540.618
offset_bottom = 277.497
theme_override_colors/font_color = Color(0, 0, 0, 1)
[node name="Label3" type="Label" parent="Status" index="3"]
2023-04-07 11:41:06 +00:00
layout_mode = 0
offset_left = 500.618
offset_top = 291.052
offset_right = 540.618
offset_bottom = 305.052
theme_override_colors/font_color = Color(0, 0, 0, 1)
[node name="Label4" type="Label" parent="Status" index="4"]
2023-04-07 11:41:06 +00:00
layout_mode = 0
offset_left = 500.618
offset_top = 319.561
offset_right = 540.618
offset_bottom = 333.561
theme_override_colors/font_color = Color(0, 0, 0, 1)
[node name="InteractionLabel" type="Label" parent="Status" index="5"]
2023-04-07 11:41:06 +00:00
layout_mode = 0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_top = -55.0
grow_horizontal = 2
grow_vertical = 0
theme_override_font_sizes/font_size = 16
text = "Press E to interact"
horizontal_alignment = 1
vertical_alignment = 1
[node name="RichTextLabel" type="RichTextLabel" parent="Status" index="6"]
visible = false
2023-04-07 11:41:06 +00:00
layout_mode = 0
offset_left = 29.0
offset_top = 354.0
offset_right = 400.0
offset_bottom = 803.0
text = " Controls
(W,A,S,D) Move In The Four Directions
(Shift) Sprint
(C) Long Press : Switch First/Third Person View
(C) One Press : Switch Camera Angle (Right Shoulder,Left Shoulder,Head(Center) )
(Space) Jump
(CTRL) Crouch/UnCrouch
(Q) Run (Temporarily)
(F) Interaction
(L) Flashlight"