[gd_scene load_steps=28 format=3 uid="uid://b73y71y3efmv"] [ext_resource type="Script" path="res://scripts/player/player.gd" id="1_xt3i8"] [ext_resource type="Material" uid="uid://cc18ee0wbfoud" path="res://resources/materials/debug/debug_player.tres" id="2_0p422"] [ext_resource type="Script" path="res://scripts/player/player_attack.gd" id="3_8pbtx"] [ext_resource type="PackedScene" uid="uid://b4q85h3ndkh5u" path="res://assets/models/characters/batrix.glb" id="3_ld2i8"] [ext_resource type="Script" path="res://scripts/player/player_animator.gd" id="4_adlgp"] [ext_resource type="Script" path="res://scripts/effects/discrete_animation_player.gd" id="4_i3gf3"] [ext_resource type="Material" uid="uid://bdi02rpvdukem" path="res://resources/materials/debug/debug_attack.tres" id="4_ll2ct"] [ext_resource type="AnimationNodeBlendTree" uid="uid://dhclwpxlgqerd" path="res://resources/animations/batrix_anim_tree.tres" id="5_mq40n"] [ext_resource type="Script" path="res://scripts/effects/bone_to_flatten.gd" id="6_cumn2"] [ext_resource type="Script" path="res://scripts/effects/bone_flattener.gd" id="6_iug5b"] [ext_resource type="PackedScene" uid="uid://c8gqrealje3o" path="res://scenes/effects/shadow_decal.tscn" id="9_vgb3d"] [ext_resource type="Script" path="res://scripts/effects/player_attack_effect.gd" id="11_1cf3j"] [ext_resource type="Script" path="res://scripts/audio/footsteps_player.gd" id="13_6nytf"] [ext_resource type="Resource" uid="uid://driors3v5q1uv" path="res://resources/footsteps/baja_footsteps.tres" id="14_yabal"] [sub_resource type="Curve" id="Curve_03vie"] _data = [Vector2(0.952555, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0] point_count = 2 [sub_resource type="Curve" id="Curve_x7hu0"] min_value = -1.0 _data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(0.145985, 1), 0.0, 0.0, 0, 0, Vector2(0.80292, -1), 0.0, 0.0, 0, 0, Vector2(1, 0), 0.0, 0.0, 0, 0] point_count = 4 [sub_resource type="Resource" id="Resource_komvq"] script = ExtResource("6_cumn2") bone_names = PackedStringArray("Tuft_base") amount_by_pitch_curve = SubResource("Curve_03vie") amount_by_yaw_curve = SubResource("Curve_x7hu0") consider_side = true yaw_fraction = 1.0 do_position = false position_x_amount = 0.0 do_rotation = true rotation_x_amount = 0.0 mirror_rot_x = false consider_side_rot_x = false rotation_y_amount = 0.53 mirror_rot_y = false consider_side_rot_y = false rotation_z_amount = 0.0 mirror_rot_z = false consider_side_rot_z = false do_scale = false [sub_resource type="Curve" id="Curve_dj6ba"] _data = [Vector2(0, 0), 0.0, 0.333126, 0, 0, Vector2(1, 1), 2.20052, 0.0, 0, 0] point_count = 2 [sub_resource type="Curve" id="Curve_4c21p"] _data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(1, 1), 0.0, 0.0, 0, 0] point_count = 2 [sub_resource type="Curve" id="Curve_6imy2"] _data = [Vector2(0, 0), 0.0, 0.0, 0, 0, Vector2(0.265734, 0.538352), 1.71284, 1.71284, 0, 0, Vector2(0.86014, 1), 0.0, 0.0, 0, 0, Vector2(1, 1), 0.0, 0.0, 0, 0] point_count = 4 [sub_resource type="Curve" id="Curve_2gav4"] _data = [Vector2(0, 1), 0.0, 0.0, 0, 0] point_count = 1 [sub_resource type="Curve" id="Curve_suux4"] _data = [Vector2(0, 1), 0.0, 0.0, 0, 0] point_count = 1 [sub_resource type="CapsuleShape3D" id="CapsuleShape3D_n6vi2"] radius = 0.3 height = 1.8 [sub_resource type="CylinderShape3D" id="CylinderShape3D_qsqht"] height = 0.5 radius = 2.0 [sub_resource type="StandardMaterial3D" id="StandardMaterial3D_m1xj5"] resource_local_to_scene = true transparency = 1 blend_mode = 1 shading_mode = 0 [sub_resource type="SphereMesh" id="SphereMesh_kqbjh"] radius = 2.0 height = 2.0 is_hemisphere = true [sub_resource type="AudioStreamPolyphonic" id="AudioStreamPolyphonic_yqedm"] [node name="Player" type="CharacterBody3D"] collision_layer = 16 script = ExtResource("1_xt3i8") _collision_debug_material = ExtResource("2_0p422") [node name="Model" parent="." instance=ExtResource("3_ld2i8")] [node name="Skeleton3D" parent="Model/Armature" index="0"] bones/0/rotation = Quaternion(0.500003, -0.499997, -0.499997, 0.500003) bones/1/rotation = Quaternion(-0.500006, 0.5, 0.499994, 0.5) bones/6/rotation = Quaternion(-0.0323581, 2.46001e-07, 8.00608e-09, 0.999476) bones/7/rotation = Quaternion(0.123965, -2.40098e-07, -2.92456e-09, 0.992287) bones/7/scale = Vector3(1, 1, 1) bones/8/rotation = Quaternion(-0.0917916, -2.67583e-15, 2.18848e-08, 0.995778) bones/9/rotation = Quaternion(1.15202e-07, 0.707107, 0.707107, -5.33851e-08) bones/9/scale = Vector3(1, 1, 1) bones/21/rotation = Quaternion(0.19747, 0.678974, 0.678974, -0.19747) bones/31/rotation = Quaternion(-6.21725e-15, -5.94129e-08, -1.49012e-07, 1) bones/37/rotation = Quaternion(0.19747, 0.678974, 0.678974, -0.19747) bones/37/scale = Vector3(1, 1, 1) bones/41/rotation = Quaternion(-0.19747, 0.678974, 0.678974, 0.19747) bones/41/scale = Vector3(1, 1, 1) bones/45/rotation = Quaternion(4.66323e-07, -0.535908, 0.844276, -1.6823e-07) bones/45/scale = Vector3(1, 1, 1) bones/46/rotation = Quaternion(-0.0181733, 2.38379e-07, 1.14098e-08, 0.999835) bones/47/rotation = Quaternion(-1.20807e-07, 0.993087, -0.117383, 7.85287e-07) bones/49/rotation = Quaternion(-0.034235, -3.57418e-07, 8.86969e-08, 0.999414) bones/51/rotation = Quaternion(0.403888, -2.98082e-07, -3.85178e-07, 0.914808) bones/51/scale = Vector3(1, 1, 1) bones/52/rotation = Quaternion(-0.512846, 3.82068e-07, 4.27952e-07, 0.858481) bones/52/scale = Vector3(1, 1, 1) bones/53/rotation = Quaternion(0.0772044, -1.03801e-06, -1.2885e-07, 0.997015) bones/53/scale = Vector3(1, 1, 1) bones/56/rotation = Quaternion(0.000780555, -0.0237052, 0.0502717, 0.998454) bones/56/scale = Vector3(1, 1, 1) bones/57/scale = Vector3(1, 1, 1) bones/59/rotation = Quaternion(0.00161688, 2.38418e-07, 1.03441e-09, 0.999999) bones/59/scale = Vector3(1, 1, 1) bones/60/rotation = Quaternion(0.228541, 0.947226, 0.209053, -0.0826344) bones/61/rotation = Quaternion(0.133438, -0.0949905, -0.147138, 0.97546) bones/62/rotation = Quaternion(0.0362919, -0.00490006, -0.0475428, 0.998198) bones/64/rotation = Quaternion(-0.497004, -0.574613, 0.266856, 0.592954) bones/65/rotation = Quaternion(-0.0266082, 0.706555, -0.0266833, 0.706654) bones/66/rotation = Quaternion(-8.29555e-05, 9.48293e-05, 0.0141926, 0.999899) bones/66/scale = Vector3(1, 1, 1) bones/67/rotation = Quaternion(2.73443e-05, -2.92389e-05, 0.0202266, 0.999795) bones/67/scale = Vector3(1, 1, 1) bones/70/rotation = Quaternion(-0.706943, -0.0143225, 0.0142829, 0.706981) bones/71/rotation = Quaternion(-0.706726, -0.024286, 0.0243834, 0.70665) bones/73/rotation = Quaternion(-7.74054e-05, 9.75834e-05, -0.00343725, 0.999994) bones/73/scale = Vector3(1, 1, 1) bones/74/rotation = Quaternion(2.5122e-05, -2.6431e-05, 0.00184074, 0.999998) bones/74/scale = Vector3(1, 1, 1) bones/77/rotation = Quaternion(-0.707088, -0.00131944, 0.00128381, 0.707123) bones/78/rotation = Quaternion(-0.707143, 0.0011801, -0.00107765, 0.707069) bones/79/rotation = Quaternion(0.0361992, 0.706123, 0.0361283, 0.70624) bones/81/rotation = Quaternion(-8.66251e-06, 9.56188e-06, -0.0155723, 0.999879) bones/84/rotation = Quaternion(-0.707027, 0.0110055, -0.0109902, 0.707015) bones/85/rotation = Quaternion(-0.706096, 0.0385178, -0.038402, 0.706024) bones/86/rotation = Quaternion(0.0569009, 0.704803, 0.0568902, 0.704825) bones/86/scale = Vector3(1, 1, 1) bones/87/rotation = Quaternion(-7.06026e-06, 1.40335e-05, -0.0424302, 0.999099) bones/88/rotation = Quaternion(-1.06996e-07, 1.17384e-07, -0.0413655, 0.999144) bones/90/rotation = Quaternion(-0.707107, 8.47153e-07, 9.00539e-07, 0.707107) bones/91/rotation = Quaternion(-0.706502, 0.0292507, -0.0292488, 0.706501) bones/92/rotation = Quaternion(-0.70463, 0.0592111, -0.0591898, 0.704619) bones/93/rotation = Quaternion(-0.708275, 5.03263e-14, -2.84259e-07, 0.705936) bones/94/rotation = Quaternion(-0.705843, -3.79543e-06, -5.06699e-05, 0.708368) bones/97/rotation = Quaternion(-0.704198, -0.0522797, 0.0188281, 0.707826) bones/98/rotation = Quaternion(0.0365982, -0.0425263, 0.740578, 0.669624) bones/98/scale = Vector3(1, 1, 1) bones/99/rotation = Quaternion(0.000780569, 0.0237052, -0.0502716, 0.998454) bones/99/scale = Vector3(1, 1, 1) bones/100/rotation = Quaternion(0.00234516, 3.8331e-05, 3.29257e-05, 0.999997) bones/100/scale = Vector3(1, 1, 1) bones/102/rotation = Quaternion(0.00161688, -2.38418e-07, -1.03441e-09, 0.999999) bones/102/scale = Vector3(1, 1, 1) bones/104/rotation = Quaternion(0.133438, 0.0949905, 0.147138, 0.97546) bones/105/rotation = Quaternion(0.0362919, 0.00490006, 0.0475427, 0.998198) bones/106/rotation = Quaternion(-0.467553, 0.526138, -0.458035, 0.542933) bones/107/rotation = Quaternion(-0.497004, 0.574613, -0.266856, 0.592954) bones/108/rotation = Quaternion(-0.0266082, -0.706555, 0.0266833, 0.706654) bones/109/rotation = Quaternion(-8.29556e-05, -9.48397e-05, -0.0141926, 0.999899) bones/109/scale = Vector3(1, 1, 1) bones/110/scale = Vector3(1, 1, 1) bones/112/rotation = Quaternion(-0.707107, -8.48703e-07, -8.9898e-07, 0.707107) bones/113/rotation = Quaternion(-0.706943, 0.0143225, -0.0142829, 0.706981) bones/116/rotation = Quaternion(-7.74053e-05, -9.75928e-05, 0.00343725, 0.999994) bones/116/scale = Vector3(1, 1, 1) bones/117/rotation = Quaternion(2.5122e-05, 2.64312e-05, -0.00184074, 0.999998) bones/117/scale = Vector3(1, 1, 1) bones/119/rotation = Quaternion(-0.707107, -8.47159e-07, -9.00524e-07, 0.707107) bones/120/rotation = Quaternion(-0.707088, 0.00131944, -0.00128381, 0.707123) bones/121/rotation = Quaternion(-0.707143, -0.00118011, 0.00107765, 0.707069) bones/122/rotation = Quaternion(0.0361992, -0.706123, -0.0361283, 0.70624) bones/123/scale = Vector3(1, 1, 1) bones/126/rotation = Quaternion(-0.707107, -8.47681e-07, -9.00015e-07, 0.707107) bones/127/rotation = Quaternion(-0.707027, -0.0110055, 0.0109902, 0.707015) bones/128/rotation = Quaternion(-0.706096, -0.0385178, 0.038402, 0.706024) bones/129/rotation = Quaternion(0.0569009, -0.704803, -0.0568902, 0.704825) bones/129/scale = Vector3(1, 1, 1) bones/131/rotation = Quaternion(-1.06334e-07, -1.19982e-07, 0.0413655, 0.999144) bones/133/rotation = Quaternion(-0.707107, -8.49787e-07, -8.97905e-07, 0.707107) bones/134/rotation = Quaternion(-0.706502, -0.0292508, 0.0292488, 0.706501) bones/135/rotation = Quaternion(-0.70463, -0.0592111, 0.0591898, 0.704619) bones/140/rotation = Quaternion(-0.704198, 0.0522797, -0.018828, 0.707826) bones/141/rotation = Quaternion(0.0323581, -3.23524e-09, 4.47963e-09, 0.999476) bones/142/rotation = Quaternion(0.0323581, -3.23524e-09, 4.47954e-09, 0.999476) bones/143/rotation = Quaternion(0.0323581, -3.23524e-09, 4.47955e-09, 0.999476) bones/144/rotation = Quaternion(0.0323581, -3.23524e-09, 4.47962e-09, 0.999476) bones/145/rotation = Quaternion(0.0323581, -3.08697e-09, -9.99408e-11, 0.999476) bones/146/rotation = Quaternion(0.0323581, -3.08697e-09, -9.99408e-11, 0.999476) bones/147/rotation = Quaternion(0.0323581, -3.08697e-09, -9.99408e-11, 0.999476) bones/148/rotation = Quaternion(0.0323581, -3.08697e-09, -9.99408e-11, 0.999476) bones/149/rotation = Quaternion(0.0323581, -3.08697e-09, -9.99408e-11, 0.999476) bones/150/rotation = Quaternion(0.0323581, -3.08697e-09, -9.99408e-11, 0.999476) bones/151/rotation = Quaternion(0.0323581, -3.08697e-09, -9.99408e-11, 0.999476) bones/152/rotation = Quaternion(0.0323581, -3.08697e-09, -9.99411e-11, 0.999476) bones/153/rotation = Quaternion(0.032358, -3.08697e-09, -9.99404e-11, 0.999476) bones/154/rotation = Quaternion(0.0323581, -3.08697e-09, -9.99409e-11, 0.999476) bones/155/rotation = Quaternion(0.0323581, -3.08697e-09, -9.99408e-11, 0.999476) bones/156/rotation = Quaternion(0.0323581, -3.08697e-09, -9.99408e-11, 0.999476) bones/157/rotation = Quaternion(0.0323581, -2.41381e-07, -7.81471e-09, 0.999476) bones/158/rotation = Quaternion(0.0323581, -2.41381e-07, -7.81472e-09, 0.999476) bones/159/rotation = Quaternion(0.0323581, -2.41381e-07, -7.81472e-09, 0.999476) bones/160/rotation = Quaternion(0.0323581, -2.41381e-07, -7.81472e-09, 0.999476) bones/161/rotation = Quaternion(0.0323581, -2.41381e-07, -7.81472e-09, 0.999476) bones/162/rotation = Quaternion(0.0323581, -2.41381e-07, -7.81472e-09, 0.999476) bones/163/rotation = Quaternion(0.0323581, -2.41381e-07, -7.81472e-09, 0.999476) bones/164/rotation = Quaternion(0.0323581, -2.41381e-07, -7.81471e-09, 0.999476) bones/165/rotation = Quaternion(0.032358, -2.41381e-07, -7.81469e-09, 0.999476) bones/166/rotation = Quaternion(0.0323581, -2.41381e-07, -7.81471e-09, 0.999476) bones/167/rotation = Quaternion(0.0323581, -2.41381e-07, -7.81472e-09, 0.999476) bones/168/rotation = Quaternion(0.0323581, -2.41381e-07, -7.81472e-09, 0.999476) bones/169/rotation = Quaternion(0.999437, 1.66876e-08, 3.38767e-07, -0.0335376) bones/169/scale = Vector3(1, 1, 1.00001) bones/170/rotation = Quaternion(0.0296713, -1.19064e-07, 1.37491e-08, 0.99956) bones/174/rotation = Quaternion(-0.730424, -1.13568e-07, -2.27149e-07, 0.682994) bones/175/rotation = Quaternion(0.999437, 3.26797e-08, -1.37802e-07, -0.0335376) bones/175/scale = Vector3(1, 1, 1.00001) bones/176/rotation = Quaternion(0.0296713, 1.1925e-07, -7.47368e-09, 0.99956) bones/180/rotation = Quaternion(-0.730424, 1.08982e-07, 2.31437e-07, 0.682994) [node name="Mesh" parent="Model/Armature/Skeleton3D" index="0"] layers = 32 cast_shadow = 0 [node name="MeshBat" parent="Model/Armature/Skeleton3D" index="1"] layers = 32 cast_shadow = 0 [node name="AnimationPlayer" parent="Model" index="1"] deterministic = true autoplay = "RESET" script = ExtResource("4_i3gf3") [node name="AnimationTree" type="AnimationTree" parent="."] process_priority = 10 process_physics_priority = 10 root_node = NodePath("../Model") tree_root = ExtResource("5_mq40n") anim_player = NodePath("../Model/AnimationPlayer") parameters/locomotion/run_R/blend_position = Vector2(0.681319, -0.424779) parameters/main_time_scale/scale = 1.0 script = ExtResource("4_adlgp") _suffix_left = null _suffix_right = null _idle_name = null parameters/locomotion/run_R/blend_position = Vector2(0.681319, -0.424779) [node name="BoneFlattener" type="Node3D" parent="." node_paths=PackedStringArray("skeleton")] script = ExtResource("6_iug5b") skeleton = NodePath("../Model/Armature/Skeleton3D") bones_to_flatten = Array[ExtResource("6_cumn2")]([SubResource("Resource_komvq")]) mirror_y_angle = 0.05 mouth_corner_pos_z = -0.043 mouth_pos_z_curve = SubResource("Curve_dj6ba") mouth_corner_pos_x = 0.074 mouth_corner_pos_y = 0.005 mouth_corner_rot_y = 0.703 mouth_rot_y_curve = SubResource("Curve_4c21p") mouth_corner_rot_x = -0.49 mouth_corner_rot_z = -0.525 mouth_value_yaw_curve = SubResource("Curve_6imy2") mouth_front_pitch_curve = SubResource("Curve_2gav4") mouth_front_yaw_curve = SubResource("Curve_suux4") mouth_hide_rot_y = 6.283 [node name="CollisionShape3D" type="CollisionShape3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.9, 0) shape = SubResource("CapsuleShape3D_n6vi2") [node name="Attack" type="Area3D" parent="."] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0) collision_layer = 32 collision_mask = 32 script = ExtResource("3_8pbtx") _collision_debug_material = ExtResource("4_ll2ct") [node name="AttackShape" type="CollisionShape3D" parent="Attack"] shape = SubResource("CylinderShape3D_qsqht") [node name="Effects" type="Node3D" parent="."] [node name="ShadowDecal" parent="Effects" instance=ExtResource("9_vgb3d")] size = Vector3(1.5, 6, 1.5) [node name="SwoopMesh" type="MeshInstance3D" parent="Effects"] transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -0.0985078, 0, 1, -4.30591e-09, 0, 1, 0) visible = false layers = 256 material_override = SubResource("StandardMaterial3D_m1xj5") cast_shadow = 0 mesh = SubResource("SphereMesh_kqbjh") skeleton = NodePath("../../Attack") script = ExtResource("11_1cf3j") [node name="Audio" type="Node3D" parent="."] [node name="FootstepsPlayer" type="AudioStreamPlayer3D" parent="Audio"] stream = SubResource("AudioStreamPolyphonic_yqedm") attenuation_model = 3 volume_db = -10.0 autoplay = true bus = &"SFX" script = ExtResource("13_6nytf") _footsteps = ExtResource("14_yabal") [editable path="Model"]