[gd_scene load_steps=54 format=3 uid="uid://dc6663xbsik21"] [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" [sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_x26ck"] animation = &"Falling" [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 input_0/reset = true input_1/name = "crouch" input_1/auto_advance = false 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 input_0/reset = true input_1/name = "Backward" input_1/auto_advance = false 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 input_0/reset = true input_1/name = "Backward" input_1/auto_advance = false 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_mode = 2 advance_condition = &"idle" [sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_rvsaa"] advance_mode = 2 advance_condition = &"stop" [sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_s0egl"] xfade_time = 0.2 switch_mode = 1 advance_mode = 2 advance_condition = &"sprinting" [sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_xf5i1"] advance_mode = 2 advance_condition = &"idle" [sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_nbs2g"] xfade_time = 0.2 switch_mode = 1 advance_mode = 2 advance_condition = &"walking" [sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_rs3n0"] advance_mode = 2 advance_condition = &"stop" [sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_6gab4"] xfade_time = 0.2 switch_mode = 1 advance_mode = 2 advance_condition = &"running" [sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_6m5a2"] xfade_time = 0.2 switch_mode = 1 advance_mode = 2 advance_condition = &"walking" [sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_hy2h2"] xfade_time = 0.2 switch_mode = 1 advance_mode = 2 advance_condition = &"running" [sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_2tyel"] xfade_time = 0.2 switch_mode = 1 advance_mode = 2 advance_condition = &"sprinting" [sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_7h1qf"] advance_mode = 2 advance_condition = &"stop" [sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_4twgu"] xfade_time = 0.2 switch_mode = 1 advance_mode = 2 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(-96.7391, 35.1602) [sub_resource type="AnimationNodeBlendTree" id="AnimationNodeBlendTree_512i8"] graph_offset = Vector2(-419.985, 66.7194) 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 graph_offset = Vector2(488.435, 1346.72) nodes/AnimTurnLeft/node = SubResource("AnimationNodeAnimation_twcy5") nodes/AnimTurnLeft/position = Vector2(500, 1540) nodes/AnimTurnRight/node = SubResource("AnimationNodeAnimation_a2hmg") nodes/AnimTurnRight/position = Vector2(500, 1660) 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) 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 [node name="AnimationTree" parent="." index="2"] tree_root = SubResource("AnimationNodeBlendTree_j336j") parameters/VelocityDirection/crouch/current_state = "crouch" parameters/VelocityDirection/crouch/current_index = 1 parameters/VelocityDirection/crouching/playback = SubResource("AnimationNodeStateMachinePlayback_tgni3") parameters/VelocityDirection/standing/playback = SubResource("AnimationNodeStateMachinePlayback_44upy") parameters/VelocityDirection/standing/Jog/FB/current_state = "Forward" parameters/VelocityDirection/standing/Jog/FB/transition_request = "" parameters/VelocityDirection/standing/Jog/FB/current_index = 0 parameters/VelocityDirection/standing/Walk/FB/current_state = "Forward" parameters/VelocityDirection/standing/Walk/FB/transition_request = "" parameters/VelocityDirection/standing/Walk/FB/current_index = 0 [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="Skeleton3D" parent="Armature" index="0"] bones/0/position = Vector3(-0.000172998, 0.901879, -0.00179914) bones/0/rotation = Quaternion(0.0129103, -0.477019, 0.0128396, 0.878704) bones/1/rotation = Quaternion(-0.034878, 0.0121777, 0.00603897, 0.999299) bones/2/rotation = Quaternion(0.00771038, 0.00387442, 0.0077534, 0.999933) bones/3/rotation = Quaternion(0.0679804, 0.00466348, 0.00750769, 0.997648) bones/4/rotation = Quaternion(0.259049, 0.120367, -0.0335045, 0.957749) bones/5/rotation = Quaternion(-0.00246286, 0.223138, -0.172693, 0.959365) bones/9/rotation = Quaternion(-0.465919, -0.528453, 0.588414, -0.396769) bones/10/rotation = Quaternion(0.520746, -0.203354, 0.188978, 0.807315) bones/11/rotation = Quaternion(9.19054e-05, 0.0274316, 0.655564, 0.754641) bones/12/rotation = Quaternion(-0.0908578, 0.331043, 0.131266, 0.930013) bones/13/rotation = Quaternion(0.68532, -6.03681e-05, -0.0820378, 0.723606) bones/14/rotation = Quaternion(0.816783, -0.000611766, -0.0982718, 0.568513) bones/15/rotation = Quaternion(0.818243, 0.00110579, -0.0972425, 0.566587) bones/17/rotation = Quaternion(0.217917, 0.0898311, 0.175515, 0.955844) bones/18/rotation = Quaternion(0.111987, -0.158249, -0.280048, 0.940207) bones/19/rotation = Quaternion(-0.0215223, -0.07977, -0.565562, 0.820556) bones/21/rotation = Quaternion(0.680469, 0.00849827, -0.0898124, 0.727203) bones/22/rotation = Quaternion(0.845186, -0.00222601, -0.10257, 0.524533) bones/23/rotation = Quaternion(0.811299, 0.00123152, -0.096296, 0.576645) bones/25/rotation = Quaternion(0.70653, -0.0227113, -0.0611423, 0.704671) bones/26/rotation = Quaternion(0.796127, -0.00109192, -0.096178, 0.597436) bones/27/rotation = Quaternion(0.787005, 0.00064355, -0.0937785, 0.609778) bones/29/rotation = Quaternion(0.734984, -0.0394802, -0.050487, 0.675049) bones/30/rotation = Quaternion(0.753528, 0.0265116, -0.0681514, 0.653336) bones/31/rotation = Quaternion(0.882855, 0.000936385, -0.105273, 0.457695) bones/33/rotation = Quaternion(0.502236, -0.498063, 0.599458, 0.374623) bones/34/rotation = Quaternion(0.370554, -0.0482472, -0.469022, 0.800238) bones/35/rotation = Quaternion(0.000238858, -0.0366692, -0.862701, 0.504384) bones/36/rotation = Quaternion(-0.113264, 0.1314, -0.0768276, 0.981836) bones/37/rotation = Quaternion(0.685333, 6.17094e-05, 0.0827409, 0.723514) bones/38/rotation = Quaternion(0.81459, 0.000966602, 0.0990885, 0.571511) bones/39/rotation = Quaternion(0.821818, -0.0017916, 0.0979961, 0.561256) bones/41/rotation = Quaternion(0.258103, -0.0464722, -0.166247, 0.950571) bones/42/rotation = Quaternion(0.0971873, -0.0337892, 0.319316, 0.942046) bones/43/rotation = Quaternion(0.102353, 0.051128, 0.496662, 0.86037) bones/45/rotation = Quaternion(0.68078, -0.0190739, 0.101264, 0.725204) bones/46/rotation = Quaternion(0.853091, 0.000644792, 0.103455, 0.511402) bones/47/rotation = Quaternion(0.803307, 7.36886e-05, 0.0971108, 0.587595) bones/49/rotation = Quaternion(0.723188, 0.0327217, 0.0549051, 0.687687) bones/50/rotation = Quaternion(0.758867, 0.00171341, 0.0930925, 0.644555) bones/51/rotation = Quaternion(0.799428, -0.002656, 0.0944829, 0.59328) bones/53/rotation = Quaternion(0.738816, 0.0655906, 0.0273769, 0.670149) bones/54/rotation = Quaternion(0.747741, 0.00140453, 0.0915433, 0.657648) bones/55/rotation = Quaternion(0.885414, -0.00156687, 0.10615, 0.452518) bones/57/rotation = Quaternion(-0.126738, 0.140515, 0.969622, 0.155006) bones/58/rotation = Quaternion(-0.378447, -0.0320807, -0.00808686, 0.925032) bones/59/rotation = Quaternion(0.629739, 0.0424758, 0.115003, 0.767072) bones/60/rotation = Quaternion(0.340454, 0.0167316, 0.00602515, 0.940093) bones/62/rotation = Quaternion(0.156635, 0.280779, 0.931659, -0.169234) bones/63/rotation = Quaternion(-0.307456, 0.043324, -0.0155887, 0.950448) bones/64/rotation = Quaternion(0.442158, -0.046071, -0.0947431, 0.890729) bones/65/rotation = Quaternion(0.352065, -0.016805, -0.00581727, 0.935807) [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"] visible = false 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"] 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"] 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"] 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"] 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"] 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 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"