119 lines
5.4 KiB
Plaintext
119 lines
5.4 KiB
Plaintext
[gd_scene format=3 uid="uid://dwxpt0s7vn36k"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://b2gh50nogfllj" path="res://game/player/camera/camera_holder.tscn" id="1_obar5"]
|
|
[ext_resource type="Script" uid="uid://br1dfd4fltlef" path="res://game/player/player_character.gd" id="1_pj0hh"]
|
|
[ext_resource type="Script" uid="uid://c8vfvcjtsb220" path="res://game/player/input/input_management_component.gd" id="2_r5dqo"]
|
|
[ext_resource type="Script" uid="uid://dy4wrpvpep1jq" path="res://game/player/states/state_machine.gd" id="3_o4naa"]
|
|
[ext_resource type="Script" uid="uid://bf6hjwfa74ttj" path="res://game/player/states/idle_state.gd" id="4_38lxl"]
|
|
[ext_resource type="Script" uid="uid://2agliol5dulc" path="res://game/player/states/walk_state.gd" id="4_lg056"]
|
|
[ext_resource type="Script" uid="uid://dr5p8ygj25w6x" path="res://game/player/states/jump_state.gd" id="6_lwgph"]
|
|
[ext_resource type="Script" uid="uid://dn5idrvu68k83" path="res://game/player/states/aim_state.gd" id="7_kxr4l"]
|
|
[ext_resource type="Script" uid="uid://dpcfffs3vt5co" path="res://game/player/states/run_state.gd" id="8_j4mf1"]
|
|
[ext_resource type="Script" uid="uid://c3jh22p4w3xco" path="res://game/player/states/throw_state.gd" id="8_k0r6x"]
|
|
[ext_resource type="Script" uid="uid://bwojkp7yrwswt" path="res://game/player/states/dodge_state.gd" id="9_6abew"]
|
|
[ext_resource type="Script" uid="uid://d0577tj0c23bu" path="res://game/player/states/crouch_state.gd" id="10_mi63v"]
|
|
[ext_resource type="Script" uid="uid://c820hnwuwpmlg" path="res://game/player/input/recall_input.gd" id="13_siyau"]
|
|
|
|
[sub_resource type="Curve" id="Curve_kxr4l"]
|
|
_limits = [0.0, 10.0, 0.0, 1.0]
|
|
_data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(0.6640625, 2.3387098), 0.0, 0.0, 0, 0, Vector2(1, 6.370968), 0.0, 0.0, 0, 0]
|
|
point_count = 3
|
|
|
|
[sub_resource type="Curve" id="Curve_j4mf1"]
|
|
_limits = [0.0, 10.0, 0.0, 1.0]
|
|
_data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(1, 10), 0.0, 0.0, 0, 0]
|
|
point_count = 2
|
|
|
|
[sub_resource type="Curve" id="Curve_6abew"]
|
|
_limits = [0.0, 10.0, 0.0, 1.0]
|
|
_data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(0.6640625, 3.467742), 0.0, 0.0, 0, 0, Vector2(1, 6.451613), 0.0, 0.0, 0, 0]
|
|
point_count = 3
|
|
|
|
[sub_resource type="Curve" id="Curve_mi63v"]
|
|
_limits = [0.0, 10.0, 0.0, 1.0]
|
|
_data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(1, 9.83871), 0.0, 0.0, 0, 0]
|
|
point_count = 2
|
|
|
|
[sub_resource type="BoxMesh" id="BoxMesh_3agn1"]
|
|
size = Vector3(0.1484375, 0.1640625, 0.907959)
|
|
|
|
[sub_resource type="CapsuleMesh" id="CapsuleMesh_3agn1"]
|
|
|
|
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_3agn1"]
|
|
|
|
[node name="PlayerCharacter" type="CharacterBody3D" unique_id=1830301535]
|
|
script = ExtResource("1_pj0hh")
|
|
nb_jumps_in_air_allowed = 0
|
|
in_air_move_speed = Array[Curve]([SubResource("Curve_kxr4l"), SubResource("Curve_j4mf1")])
|
|
in_air_accel = Array[Curve]([SubResource("Curve_6abew"), SubResource("Curve_mi63v")])
|
|
hit_wall_cut_velocity = true
|
|
follow_cam_pos_when_aimed = true
|
|
|
|
[node name="VisualRoot" type="Node3D" parent="." unique_id=1587327772]
|
|
unique_name_in_owner = true
|
|
|
|
[node name="MeshInstance3D2" type="MeshInstance3D" parent="VisualRoot" unique_id=670759105]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.4555889, 0.5468005)
|
|
mesh = SubResource("BoxMesh_3agn1")
|
|
|
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="VisualRoot" unique_id=1202850119]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
|
mesh = SubResource("CapsuleMesh_3agn1")
|
|
|
|
[node name="CameraHolder" parent="." unique_id=232451612 instance=ExtResource("1_obar5")]
|
|
unique_name_in_owner = true
|
|
transform = Transform3D(-1, 0, -8.742278e-08, 0, 1, 0, 8.742278e-08, 0, -1, -0.009075999, 1.6803148, 0.01983509)
|
|
fov_val = 30.0
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="." unique_id=1800756522]
|
|
unique_name_in_owner = true
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
|
shape = SubResource("CapsuleShape3D_3agn1")
|
|
|
|
[node name="StateMachine" type="Node" parent="." unique_id=1128144703 node_paths=PackedStringArray("initial_state")]
|
|
unique_name_in_owner = true
|
|
script = ExtResource("3_o4naa")
|
|
initial_state = NodePath("IdleState")
|
|
|
|
[node name="IdleState" type="Node" parent="StateMachine" unique_id=1417869633]
|
|
script = ExtResource("4_38lxl")
|
|
|
|
[node name="WalkState" type="Node" parent="StateMachine" unique_id=1524475809]
|
|
script = ExtResource("4_lg056")
|
|
|
|
[node name="JumpState" type="Node" parent="StateMachine" unique_id=711160985]
|
|
script = ExtResource("6_lwgph")
|
|
|
|
[node name="AimState" type="Node" parent="StateMachine" unique_id=296560188]
|
|
script = ExtResource("7_kxr4l")
|
|
aim_action = null
|
|
switch_target_action = null
|
|
unlock_action = null
|
|
throw_action = null
|
|
throw_range = null
|
|
max_aim_angle = null
|
|
auto_lock_angle = null
|
|
lose_range_margin = null
|
|
check_line_of_sight = null
|
|
line_of_sight_mask = null
|
|
aim_move_speed = null
|
|
aim_move_accel = null
|
|
|
|
[node name="ThrowState" type="Node" parent="StateMachine" unique_id=1159570489]
|
|
script = ExtResource("8_k0r6x")
|
|
|
|
[node name="RunState" type="Node" parent="StateMachine" unique_id=1345421775]
|
|
script = ExtResource("8_j4mf1")
|
|
|
|
[node name="DodgeState" type="Node" parent="StateMachine" unique_id=232179400]
|
|
script = ExtResource("9_6abew")
|
|
|
|
[node name="CrouchState" type="Node" parent="StateMachine" unique_id=381419367]
|
|
script = ExtResource("10_mi63v")
|
|
|
|
[node name="InputManagementComponent" type="Node" parent="." unique_id=1981951371]
|
|
script = ExtResource("2_r5dqo")
|
|
|
|
[node name="RecallInput" type="Node" parent="." unique_id=1544887696]
|
|
script = ExtResource("13_siyau")
|