[gd_scene load_steps=24 format=3 uid="uid://cersx8w4ps2sr"]

[ext_resource type="Script" path="res://src/player.ts" id="2_pdrhn"]
[ext_resource type="PackedScene" uid="uid://b1vb3py5av0e3" path="res://scenes/player_mesh2.tscn" id="2_rje1f"]
[ext_resource type="Script" path="res://src/player_animation.ts" id="3_26yay"]
[ext_resource type="Script" path="res://src/player_input.ts" id="3_x6527"]
[ext_resource type="Script" path="res://src/interactor.ts" id="5_uk7c1"]
[ext_resource type="Script" path="res://src/inventory.ts" id="6_jscba"]

[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_1kx10"]

[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_vilbe"]
animation = &"Idle"

[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_kjlhm"]
animation = &"PistolIdle"

[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_84wxe"]
animation = &"Shooting"

[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_d7cro"]
animation = &"SlowRun"

[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_w5ck1"]
animation = &"Walking"

[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_twhp3"]
advance_mode = 2

[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_p6dv3"]
xfade_time = 0.25
reset = false
switch_mode = 1
advance_mode = 2
advance_expression = "velocity"

[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_xh0w6"]
xfade_time = 0.25
reset = false
switch_mode = 1
advance_mode = 2
advance_expression = "is_running()"

[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_vse2m"]
xfade_time = 0.25
reset = false
switch_mode = 1
advance_mode = 2
advance_expression = "not is_running()"

[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_yh7m2"]
xfade_time = 0.25
reset = false
switch_mode = 1
advance_mode = 2
advance_expression = "not velocity"

[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_h1vpo"]
xfade_time = 0.3
advance_mode = 2
advance_expression = "is_aiming()"

[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_wqng5"]
xfade_time = 0.3
advance_mode = 2
advance_expression = "not is_aiming()"

[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_n5lxw"]
advance_mode = 2
advance_expression = "is_shooting()"

[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_3tstq"]
switch_mode = 2
advance_mode = 2

[sub_resource type="AnimationNodeStateMachine" id="AnimationNodeStateMachine_8s3qg"]
states/Idle/node = SubResource("AnimationNodeAnimation_vilbe")
states/Idle/position = Vector2(311, 100)
states/PistolIdle/node = SubResource("AnimationNodeAnimation_kjlhm")
states/PistolIdle/position = Vector2(311, 207)
states/Shooting/node = SubResource("AnimationNodeAnimation_84wxe")
states/Shooting/position = Vector2(454, 207)
states/SlowRun/node = SubResource("AnimationNodeAnimation_d7cro")
states/SlowRun/position = Vector2(572, 100)
states/Walking/node = SubResource("AnimationNodeAnimation_w5ck1")
states/Walking/position = Vector2(434, 100)
transitions = ["Start", "Idle", SubResource("AnimationNodeStateMachineTransition_twhp3"), "Idle", "Walking", SubResource("AnimationNodeStateMachineTransition_p6dv3"), "Walking", "SlowRun", SubResource("AnimationNodeStateMachineTransition_xh0w6"), "SlowRun", "Walking", SubResource("AnimationNodeStateMachineTransition_vse2m"), "Walking", "Idle", SubResource("AnimationNodeStateMachineTransition_yh7m2"), "Idle", "PistolIdle", SubResource("AnimationNodeStateMachineTransition_h1vpo"), "PistolIdle", "Idle", SubResource("AnimationNodeStateMachineTransition_wqng5"), "PistolIdle", "Shooting", SubResource("AnimationNodeStateMachineTransition_n5lxw"), "Shooting", "PistolIdle", SubResource("AnimationNodeStateMachineTransition_3tstq")]
graph_offset = Vector2(155, -1)

[sub_resource type="SphereShape3D" id="SphereShape3D_64co4"]

[node name="Player" type="CharacterBody3D"]
script = ExtResource("2_pdrhn")

[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1.25, 0, 0, 0, 1.25, 0, 0, 0, 1.25, 0, 1.25, 0)
shape = SubResource("CapsuleShape3D_1kx10")

[node name="PlayerMesh" parent="." instance=ExtResource("2_rje1f")]

[node name="Skeleton3D" parent="PlayerMesh/Scene/Armature" index="0"]
bones/0/position = Vector3(0.17945, 104.41, 0.110052)
bones/0/rotation = Quaternion(-0.0406521, -0.0416971, -0.0129259, 0.998219)
bones/1/position = Vector3(5.96109e-08, -7.79423e-06, 8.06525e-07)
bones/2/rotation = Quaternion(-0.0597369, 0.00111039, 0.00642272, 0.998193)
bones/3/position = Vector3(-2.98023e-07, -1.34446e-05, 2.14577e-06)
bones/4/rotation = Quaternion(0.0409263, 0.00151155, 0.0114956, 0.999095)
bones/5/position = Vector3(1.63912e-07, 2.08151e-07, 3.01749e-07)
bones/6/rotation = Quaternion(0.0537973, 0.00165954, 0.0114752, 0.998485)
bones/7/position = Vector3(-5.96042e-07, -2.79844e-05, -6.33299e-07)
bones/8/rotation = Quaternion(0.561827, -0.587188, 0.4308, 0.392392)
bones/9/position = Vector3(1.63913e-06, -1.72853e-06, 2.13917e-05)
bones/10/position = Vector3(2.77566e-06, 10.8382, 6.21936e-05)
bones/10/rotation = Quaternion(0.546062, -0.128743, -0.247847, 0.789819)
bones/11/position = Vector3(-3.33721e-06, -2.59971e-05, -4.23144e-07)
bones/12/rotation = Quaternion(-1.44821e-07, 1.29284e-07, -0.269901, 0.962888)
bones/13/position = Vector3(4.32435e-07, 3.89919e-06, 7.05178e-07)
bones/14/position = Vector3(7.82341e-06, 28.3288, -1.32138e-06)
bones/14/rotation = Quaternion(-0.111071, -0.0606597, 0.117823, 0.984937)
bones/15/position = Vector3(1.78986e-06, 7.87047e-06, 1.65885e-06)
bones/16/rotation = Quaternion(0.410799, 0.0410545, -0.0191872, 0.910599)
bones/17/position = Vector3(5.01544e-07, -6.299e-06, 3.963e-07)
bones/18/position = Vector3(-4.8526e-07, 3.60001, -4.86888e-05)
bones/18/rotation = Quaternion(0.53131, 0.0228324, -0.106782, 0.840111)
bones/19/position = Vector3(3.32548e-07, -8.41357e-06, -2.27747e-05)
bones/20/rotation = Quaternion(-4.9514e-08, 5.57123e-08, -1.76427e-07, 1)
bones/21/position = Vector3(-1.54454e-06, -7.68341e-06, -8.74918e-06)
bones/22/position = Vector3(-8.60441e-07, 2.11579, -1.07681e-05)
bones/23/position = Vector3(-2.92063e-06, 7.30623e-07, -3.37238e-06)
bones/24/position = Vector3(-2.72793e-05, 9.53252, 4.71968e-05)
bones/24/rotation = Quaternion(0.339952, 0.0300464, 0.0273285, 0.939565)
bones/25/position = Vector3(-9.73276e-07, 9.30667e-06, 1.7444e-05)
bones/26/position = Vector3(-2.40773e-06, 3.70001, -1.51598e-05)
bones/26/rotation = Quaternion(0.430758, 0.165335, 0.0714135, 0.884314)
bones/27/position = Vector3(2.42792e-06, -5.07634e-06, -1.79432e-05)
bones/28/position = Vector3(5.23295e-07, 2.95001, -1.36814e-05)
bones/28/rotation = Quaternion(3.76456e-09, -9.34081e-09, -3.22034e-08, 1)
bones/31/position = Vector3(6.74278e-07, 1.0987e-05, -1.06914e-05)
bones/32/rotation = Quaternion(0.367356, 0.012829, -0.0137641, 0.92989)
bones/33/position = Vector3(-2.16168e-06, -9.28698e-06, 1.61968e-05)
bones/34/position = Vector3(-2.08148e-06, 3.37928, -2.75762e-06)
bones/34/rotation = Quaternion(0.435237, 0.0202325, -0.0616527, 0.897975)
bones/36/position = Vector3(5.32687e-06, 2.88968, 1.89373e-05)
bones/36/rotation = Quaternion(6.7077e-08, 6.14505e-08, -1.0756e-07, 1)
bones/37/position = Vector3(1.10354e-06, -4.4019e-06, 1.37493e-05)
bones/38/position = Vector3(-1.83442e-06, 2.63883, -1.48906e-05)
bones/39/position = Vector3(-4.24683e-07, 1.03333e-05, -2.27057e-05)
bones/40/position = Vector3(2.25983, 9.1083, 0.517871)
bones/40/rotation = Quaternion(0.230758, 0.0232, 0.0553016, 0.971161)
bones/41/position = Vector3(-1.50283e-06, -3.18235e-06, 1.64979e-05)
bones/42/rotation = Quaternion(0.345931, -0.0275399, 0.00615904, 0.937835)
bones/43/position = Vector3(2.44329e-07, 8.88386e-06, -6.62667e-06)
bones/44/rotation = Quaternion(7.46085e-09, -1.39777e-08, -2.75613e-08, 1)
bones/45/position = Vector3(-4.96307e-07, 1.11183e-05, 2.6697e-06)
bones/48/position = Vector3(2.68185, 2.4648, 1.57399)
bones/48/rotation = Quaternion(0.253233, 0.0269746, -0.19885, 0.946364)
bones/49/position = Vector3(-4.76836e-07, -4.29153e-06, 8.58607e-06)
bones/50/position = Vector3(-5.36506e-06, 4.18898, 1.80082e-06)
bones/50/rotation = Quaternion(-0.0236439, 0.0331235, 0.0393129, 0.998398)
bones/52/position = Vector3(-8.58953e-06, 3.41627, -3.79061e-06)
bones/52/rotation = Quaternion(1.62159e-06, -0.000806941, 3.60843e-07, 1)
bones/53/position = Vector3(-7.33137e-06, 1.96993e-05, -3.36238e-06)
bones/56/rotation = Quaternion(-0.168671, 0.00146631, -0.00322634, 0.985666)
bones/57/position = Vector3(-1.48998e-08, -1.55101e-05, -2.81259e-07)
bones/58/rotation = Quaternion(0.116994, 0.0330545, -0.00432665, 0.992573)
bones/59/position = Vector3(4.47016e-08, -3.2247e-05, -2.96597e-06)
bones/61/rotation = Quaternion(0.506672, 0.632248, -0.512417, 0.28456)
bones/62/position = Vector3(-2.02656e-06, -3.57628e-07, -4.18441e-05)
bones/63/position = Vector3(7.15469e-08, 10.8377, 1.51746e-05)
bones/63/rotation = Quaternion(0.502967, 0.244286, 0.329048, 0.76097)
bones/64/position = Vector3(3.60969e-06, 1.52503e-05, 4.33931e-06)
bones/65/position = Vector3(6.08624e-06, 27.8415, 3.61837e-05)
bones/65/rotation = Quaternion(1.00117e-07, -9.33561e-08, 0.240972, 0.970532)
bones/66/position = Vector3(1.5152e-06, 5.09353e-07, 1.06806e-07)
bones/67/rotation = Quaternion(-0.124955, -0.15428, -0.118697, 0.97288)
bones/68/position = Vector3(-1.47492e-06, 9.18099e-07, 8.22066e-07)
bones/69/rotation = Quaternion(0.223335, 0.00464231, 0.100994, 0.969485)
bones/70/position = Vector3(3.93391e-06, -3.12924e-06, 1.2352e-05)
bones/71/position = Vector3(-7.3569e-06, 4.18708, 3.80831e-06)
bones/71/rotation = Quaternion(-0.017028, -0.0337403, -0.0322282, 0.998766)
bones/72/position = Vector3(5.96047e-08, -1.01924e-05, -1.82316e-05)
bones/73/position = Vector3(-7.20031e-06, 3.41838, -3.40019e-05)
bones/73/rotation = Quaternion(-2.43768e-06, 0.000745857, 5.4902e-07, 1)
bones/74/position = Vector3(-3.96371e-06, -8.34465e-06, 1.30411e-07)
bones/75/position = Vector3(-3.2532e-06, 2.58059, 3.56767e-06)
bones/77/rotation = Quaternion(0.329022, -0.00440169, -0.0369186, 0.94359)
bones/78/position = Vector3(4.72453e-07, -1.04497e-06, 3.59342e-07)
bones/79/position = Vector3(-2.66038e-07, 3.7, 8.95903e-07)
bones/79/rotation = Quaternion(0.28229, 0.0283846, 0.000264906, 0.958909)
bones/80/position = Vector3(-1.96994e-06, 1.6327e-06, -1.63261e-05)
bones/81/rotation = Quaternion(-3.65055e-07, -4.16772e-09, -6.83649e-08, 1)
bones/84/position = Vector3(-4.94532e-07, -1.87893e-05, 1.52819e-05)
bones/85/rotation = Quaternion(0.331909, -0.019802, -0.0105555, 0.943044)
bones/86/position = Vector3(-2.09158e-07, -2.31277e-06, -1.46174e-05)
bones/87/rotation = Quaternion(0.403889, -0.00181236, 0.0290873, 0.914344)
bones/88/position = Vector3(2.26344e-07, -5.1729e-06, -4.39392e-06)
bones/89/rotation = Quaternion(4.04652e-07, 8.72496e-12, 6.58802e-08, 1)
bones/90/position = Vector3(-2.41998e-07, -4.32138e-06, -4.24358e-06)
bones/92/position = Vector3(3.67407e-07, 1.44696e-06, -5.79837e-06)
bones/93/rotation = Quaternion(0.331827, -0.0487858, 0.034802, 0.941435)
bones/94/position = Vector3(1.83496e-07, -1.69704e-05, -3.62689e-06)
bones/95/rotation = Quaternion(0.547972, -0.0207689, 0.058348, 0.834201)
bones/96/position = Vector3(-6.40724e-07, 1.08097e-06, 1.03508e-05)
bones/97/position = Vector3(1.86266e-06, 2.95, 2.9305e-05)
bones/97/rotation = Quaternion(-1.44502e-15, 1.80445e-09, -3.60028e-08, 1)
bones/98/position = Vector3(7.57416e-07, -2.73586e-06, -1.18274e-06)
bones/99/position = Vector3(-2.38102e-05, 2.64431, -7.72471e-06)
bones/100/position = Vector3(-1.36858e-06, -8.86206e-06, 9.053e-06)
bones/101/position = Vector3(3.80626, 8.0778, 0.486895)
bones/101/rotation = Quaternion(0.379958, -0.0550092, 0.0382487, 0.922574)
bones/102/position = Vector3(-1.08492e-06, 2.92186e-05, 1.50487e-05)
bones/103/rotation = Quaternion(0.582059, -0.0103286, 0.0735094, 0.809751)
bones/104/position = Vector3(-1.73342e-06, -1.47918e-06, -2.0886e-05)
bones/105/rotation = Quaternion(-5.4723e-08, -3.14058e-09, 1.77999e-07, 1)
bones/106/position = Vector3(8.89177e-07, -7.90852e-06, 1.76198e-05)
bones/107/position = Vector3(2.5899e-06, 2.12554, 9.70504e-08)
bones/108/position = Vector3(8.49366e-07, 5.665e-06, 3.62648e-06)
bones/109/rotation = Quaternion(-0.036333, 0.0217706, 0.999101, 0.00199951)
bones/110/position = Vector3(-1.3528e-06, 3.43757e-05, -4.54129e-08)
bones/111/rotation = Quaternion(-0.143928, 0.000177422, 0.00374932, 0.989581)
bones/112/position = Vector3(-4.23869e-07, 1.24792e-07, 6.58015e-07)
bones/113/rotation = Quaternion(0.495013, 0.131615, -0.0439782, 0.857732)
bones/115/rotation = Quaternion(0.335413, 0.00425432, -0.000217396, 0.942062)
bones/119/rotation = Quaternion(0.119179, 0.0314785, 0.992322, -0.0101509)
bones/120/position = Vector3(8.86776e-07, -4.30776e-06, 1.57868e-06)
bones/121/rotation = Quaternion(-0.0940526, 0.000144511, -0.0022175, 0.995565)
bones/122/position = Vector3(-8.41099e-07, -1.2368e-06, 3.5533e-07)
bones/123/rotation = Quaternion(0.451014, 0.00101661, 0.0176655, 0.892342)
bones/125/rotation = Quaternion(0.335216, 0.000625836, -1.98777e-05, 0.942141)

[node name="Input" type="Node3D" parent="."]
script = ExtResource("3_x6527")
min_range = 0.5

[node name="AnimationTree" type="AnimationTree" parent="."]
root_node = NodePath("../PlayerMesh")
tree_root = SubResource("AnimationNodeStateMachine_8s3qg")
advance_expression_base_node = NodePath("..")
anim_player = NodePath("../PlayerMesh/AnimationPlayer")
script = ExtResource("3_26yay")

[node name="Interactor" type="Area3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.5, 1)
script = ExtResource("5_uk7c1")
_root_node = NodePath("..")

[node name="CollisionShape3D" type="CollisionShape3D" parent="Interactor"]
shape = SubResource("SphereShape3D_64co4")

[node name="Inventory" type="Node" parent="."]
script = ExtResource("6_jscba")

[editable path="PlayerMesh"]
