hurtbox detects hit

pull/2/head
Sascha 2024-05-29 13:59:36 +07:00
parent a0f78268d8
commit 12dd767b01
5 changed files with 646 additions and 214 deletions

@ -1,4 +1,4 @@
[gd_scene load_steps=65 format=4 uid="uid://cjxeovwundmud"]
[gd_scene load_steps=62 format=4 uid="uid://cjxeovwundmud"]
[ext_resource type="Script" path="res://scripts/enemy.gd" id="1_b1cq4"]
[ext_resource type="Texture2D" uid="uid://bt85qpp4kw7c" path="res://resources/models/skeletons/Skeleton_Warrior_new_skeleton_texture.png" id="1_hjwgk"]
@ -50,8 +50,8 @@ blend_shape_mode = 0
shadow_mesh = SubResource("ArrayMesh_ugdwt")
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_6kus5"]
radius = 0.75
height = 1.5
radius = 0.6
height = 1.4
[sub_resource type="ArrayMesh" id="ArrayMesh_dbwqo"]
resource_name = "Skeleton_Warrior_new_Skeleton_Warrior_Body"
@ -683,9 +683,6 @@ animation = &"Jump_Start"
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_lp4nb"]
animation = &"Skeletons_Awaken_Floor_Long"
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_m8va5"]
animation = &"Unarmed_Melee_Attack_Punch_A"
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_ou2cq"]
animation = &"Unarmed_Melee_Attack_Punch_A"
@ -719,12 +716,6 @@ advance_mode = 2
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_ykhdv"]
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_bsx0c"]
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_hebuk"]
switch_mode = 2
advance_mode = 2
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_138r8"]
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_8a1wb"]
@ -770,11 +761,9 @@ states/Skeletons_Awaken_Floor_Long/position = Vector2(-4, -53.186)
states/Start/position = Vector2(300, 49)
states/Unarmed_Melee_Attack_Punch_A/node = SubResource("AnimationNodeAnimation_ou2cq")
states/Unarmed_Melee_Attack_Punch_A/position = Vector2(300, -53.186)
"states/Unarmed_Melee_Attack_Punch_A 2/node" = SubResource("AnimationNodeAnimation_m8va5")
"states/Unarmed_Melee_Attack_Punch_A 2/position" = Vector2(583, -22.186)
states/Unarmed_Melee_Attack_Punch_B/node = SubResource("AnimationNodeAnimation_u8v08")
states/Unarmed_Melee_Attack_Punch_B/position = Vector2(831, -14.186)
transitions = ["IWR", "Death_A", SubResource("AnimationNodeStateMachineTransition_0pn5a"), "IWR", "Jump_Start", SubResource("AnimationNodeStateMachineTransition_4j7ud"), "Jump_Start", "Jump_Idle", SubResource("AnimationNodeStateMachineTransition_mgjn7"), "Jump_Idle", "Jump_Land", SubResource("AnimationNodeStateMachineTransition_eh75m"), "Jump_Land", "IWR", SubResource("AnimationNodeStateMachineTransition_qllfg"), "IWR", "Jump_Idle", SubResource("AnimationNodeStateMachineTransition_vq1x0"), "Unarmed_Melee_Attack_Punch_A", "IWR", SubResource("AnimationNodeStateMachineTransition_yp0xf"), "IWR", "Unarmed_Melee_Attack_Punch_A", SubResource("AnimationNodeStateMachineTransition_ykhdv"), "IWR", "Unarmed_Melee_Attack_Punch_A 2", SubResource("AnimationNodeStateMachineTransition_bsx0c"), "Unarmed_Melee_Attack_Punch_A 2", "IWR", SubResource("AnimationNodeStateMachineTransition_hebuk"), "IWR", "Unarmed_Melee_Attack_Punch_B", SubResource("AnimationNodeStateMachineTransition_138r8"), "Unarmed_Melee_Attack_Punch_B", "IWR", SubResource("AnimationNodeStateMachineTransition_8a1wb"), "Start", "IWR", SubResource("AnimationNodeStateMachineTransition_hnd51"), "IWR", "Hit_A", SubResource("AnimationNodeStateMachineTransition_ibwmu"), "Hit_A", "IWR", SubResource("AnimationNodeStateMachineTransition_fbopi"), "IWR", "Hit_B", SubResource("AnimationNodeStateMachineTransition_0miw0"), "Hit_B", "IWR", SubResource("AnimationNodeStateMachineTransition_6qnll"), "IWR", "Death_B", SubResource("AnimationNodeStateMachineTransition_bfkmj")]
transitions = ["IWR", "Death_A", SubResource("AnimationNodeStateMachineTransition_0pn5a"), "IWR", "Jump_Start", SubResource("AnimationNodeStateMachineTransition_4j7ud"), "Jump_Start", "Jump_Idle", SubResource("AnimationNodeStateMachineTransition_mgjn7"), "Jump_Idle", "Jump_Land", SubResource("AnimationNodeStateMachineTransition_eh75m"), "Jump_Land", "IWR", SubResource("AnimationNodeStateMachineTransition_qllfg"), "IWR", "Jump_Idle", SubResource("AnimationNodeStateMachineTransition_vq1x0"), "Unarmed_Melee_Attack_Punch_A", "IWR", SubResource("AnimationNodeStateMachineTransition_yp0xf"), "IWR", "Unarmed_Melee_Attack_Punch_A", SubResource("AnimationNodeStateMachineTransition_ykhdv"), "IWR", "Unarmed_Melee_Attack_Punch_B", SubResource("AnimationNodeStateMachineTransition_138r8"), "Unarmed_Melee_Attack_Punch_B", "IWR", SubResource("AnimationNodeStateMachineTransition_8a1wb"), "Start", "IWR", SubResource("AnimationNodeStateMachineTransition_hnd51"), "IWR", "Hit_A", SubResource("AnimationNodeStateMachineTransition_ibwmu"), "Hit_A", "IWR", SubResource("AnimationNodeStateMachineTransition_fbopi"), "IWR", "Hit_B", SubResource("AnimationNodeStateMachineTransition_0miw0"), "Hit_B", "IWR", SubResource("AnimationNodeStateMachineTransition_6qnll"), "IWR", "Death_B", SubResource("AnimationNodeStateMachineTransition_bfkmj")]
graph_offset = Vector2(-318, -97.186)
[sub_resource type="ViewportTexture" id="ViewportTexture_hqv2t"]
@ -799,105 +788,105 @@ bones/0/parent = -1
bones/0/rest = Transform3D(1, 2.0611e-15, 2.40863e-07, -6.18329e-15, 1, 1.71143e-08, -2.40863e-07, -1.71143e-08, 1, 0, 0, 0)
bones/0/enabled = true
bones/0/position = Vector3(0, 0, 0)
bones/0/rotation = Quaternion(-8.55713e-09, 1.20432e-07, -2.0611e-15, 1)
bones/0/rotation = Quaternion(-8.55849e-09, -0.000274706, -1.25818e-11, 1)
bones/0/scale = Vector3(1, 1, 1)
bones/1/name = "hips"
bones/1/parent = 0
bones/1/rest = Transform3D(1, -1.92983e-22, -2.06635e-07, 9.18536e-22, 1, 3.51128e-15, 2.06635e-07, -3.51128e-15, 1, -2.1013e-22, 0.405663, 8.88178e-16)
bones/1/enabled = true
bones/1/position = Vector3(-1.3197e-10, 0.391106, 0.00063869)
bones/1/rotation = Quaternion(0.00128382, 0.0447157, 0.000193296, 0.998999)
bones/1/position = Vector3(5.48912e-19, 0.372981, 1.20998e-15)
bones/1/rotation = Quaternion(5.19302e-05, 0.0425451, 3.4354e-05, 0.999095)
bones/1/scale = Vector3(1, 1, 1)
bones/2/name = "spine"
bones/2/parent = 1
bones/2/rest = Transform3D(1, 8.67181e-22, 3.55271e-15, -8.67181e-22, 1, 3.52176e-23, -3.55271e-15, -3.52176e-23, 1, -4.36903e-23, 0.191978, -8.88178e-16)
bones/2/enabled = true
bones/2/position = Vector3(2.77555e-17, 0.191978, -6.31439e-16)
bones/2/rotation = Quaternion(4.54747e-13, -1.86497e-09, -1.45519e-11, 1)
bones/2/position = Vector3(5.98822e-12, 0.191978, -2.81142e-12)
bones/2/rotation = Quaternion(-3.14878e-05, 0.00387154, 0.000189488, 0.999992)
bones/2/scale = Vector3(1, 1, 1)
bones/3/name = "chest"
bones/3/parent = 2
bones/3/rest = Transform3D(1, -2.05374e-22, -1.77636e-14, 2.05374e-22, 1, -1.11653e-14, 1.77636e-14, 1.11653e-14, 1, -9.6328e-23, 0.374988, 1.77636e-15)
bones/3/enabled = true
bones/3/position = Vector3(1.11022e-16, 0.374988, 3.69843e-15)
bones/3/rotation = Quaternion(0.000958376, -5.05232e-05, 0.000177778, 1)
bones/3/position = Vector3(-1.41718e-11, 0.374988, 2.56119e-11)
bones/3/rotation = Quaternion(2.65483e-05, 7.97105e-05, 0.000545356, 1)
bones/3/scale = Vector3(1, 1, 1)
bones/4/name = "upperarm.l"
bones/4/parent = 3
bones/4/rest = Transform3D(0.0572952, 0.998357, 5.96046e-08, -2.98023e-07, -1.19209e-07, 1, 0.998357, -0.0572953, 2.38419e-07, 0.212007, 0.134132, 8.92131e-08)
bones/4/enabled = true
bones/4/position = Vector3(0.212007, 0.134132, 9.82268e-08)
bones/4/rotation = Quaternion(-0.560183, -0.0584712, -0.642532, 0.519547)
bones/4/position = Vector3(0.211994, 0.134121, -2.21786e-05)
bones/4/rotation = Quaternion(-0.554118, -0.0591129, -0.637145, 0.532452)
bones/4/scale = Vector3(0.999999, 0.999999, 1)
bones/5/name = "lowerarm.l"
bones/5/parent = 4
bones/5/rest = Transform3D(0.993885, 0.110424, -1.77241e-07, -0.110424, 0.993885, -4.82524e-07, 1.22875e-07, 4.99145e-07, 1, -3.31295e-09, 0.241897, 4.4799e-09)
bones/5/enabled = true
bones/5/position = Vector3(4.30662e-08, 0.241897, -1.74334e-07)
bones/5/rotation = Quaternion(2.33689e-07, 6.25939e-08, -0.496045, 0.868297)
bones/5/position = Vector3(4.27124e-08, 0.241897, -1.72472e-07)
bones/5/rotation = Quaternion(2.11227e-07, 5.55063e-08, -0.515365, 0.856971)
bones/5/scale = Vector3(1, 1, 1)
bones/6/name = "wrist.l"
bones/6/parent = 5
bones/6/rest = Transform3D(0.998579, -0.0532972, -3.33198e-09, 0.0532972, 0.998579, 4.71248e-07, -2.1789e-08, -4.70756e-07, 1, 6.74525e-09, 0.260044, -2.16525e-07)
bones/6/enabled = true
bones/6/position = Vector3(1.45879e-08, 0.260044, -2.28096e-08)
bones/6/rotation = Quaternion(-2.29055e-07, 3.92612e-08, 0.0266581, 0.999645)
bones/6/position = Vector3(1.43398e-08, 0.260044, -2.47846e-08)
bones/6/rotation = Quaternion(-2.29225e-07, 3.87405e-08, 0.0266581, 0.999645)
bones/6/scale = Vector3(1, 1, 1)
bones/7/name = "hand.l"
bones/7/parent = 6
bones/7/rest = Transform3D(1, 8.33334e-14, -2.83571e-14, -8.33334e-14, 1, -2.54025e-13, 2.83571e-14, 2.54025e-13, 1, -2.04281e-14, 0.0738259, -1.19209e-07)
bones/7/enabled = true
bones/7/position = Vector3(-7.4506e-09, 0.0738259, -1.11757e-08)
bones/7/rotation = Quaternion(-0.319729, -0.327029, 0.143425, 0.877641)
bones/7/position = Vector3(-7.1782e-09, 0.0738259, -1.0869e-08)
bones/7/rotation = Quaternion(-0.322561, -0.336488, 0.146055, 0.872581)
bones/7/scale = Vector3(1, 1, 1)
bones/8/name = "handslot.l"
bones/8/parent = 7
bones/8/rest = Transform3D(0, 1, -2.32809e-07, -1, 0, -6.82762e-08, -6.82761e-08, 2.32809e-07, 1, 8.34841e-10, 0.0961251, -0.0575)
bones/8/enabled = true
bones/8/position = Vector3(6.33078e-10, 0.0961252, -0.0575)
bones/8/rotation = Quaternion(1.11718e-07, -6.34399e-08, -0.707107, 0.707107)
bones/8/position = Vector3(9.24142e-10, 0.0961252, -0.0575)
bones/8/rotation = Quaternion(0.000659372, 0.000676059, -0.704291, 0.709911)
bones/8/scale = Vector3(1, 1, 1)
bones/9/name = "upperarm.r"
bones/9/parent = 3
bones/9/rest = Transform3D(0.0572954, -0.998357, -1.49012e-07, 2.38419e-07, -1.19209e-07, 1, -0.998357, -0.0572954, 2.38419e-07, -0.212007, 0.134132, 7.46997e-08)
bones/9/enabled = true
bones/9/position = Vector3(-0.212007, 0.134132, 8.08636e-08)
bones/9/rotation = Quaternion(-0.62086, 0.0834125, 0.619289, 0.473346)
bones/9/position = Vector3(-0.212008, 0.134127, -2.33226e-05)
bones/9/rotation = Quaternion(-0.613244, 0.0793295, 0.608982, 0.496768)
bones/9/scale = Vector3(0.999999, 0.999999, 1)
bones/10/name = "lowerarm.r"
bones/10/parent = 9
bones/10/rest = Transform3D(0.993885, -0.110424, 1.06327e-07, 0.110424, 0.993885, -4.82539e-07, -5.23934e-08, 4.91329e-07, 1, 4.03071e-09, 0.241897, 3.62012e-09)
bones/10/enabled = true
bones/10/position = Vector3(-4.08108e-08, 0.241897, -5.59845e-08)
bones/10/rotation = Quaternion(1.96638e-07, -4.09884e-08, 0.511932, 0.859026)
bones/10/position = Vector3(-4.04491e-08, 0.241897, -5.30697e-08)
bones/10/rotation = Quaternion(1.78575e-07, -1.06611e-07, 0.539286, 0.842123)
bones/10/scale = Vector3(1, 1, 1)
bones/11/name = "wrist.r"
bones/11/parent = 10
bones/11/rest = Transform3D(0.998579, 0.0532972, 3.34959e-09, -0.0532972, 0.998579, 4.71254e-07, 2.17717e-08, -4.70763e-07, 1, -6.74523e-09, 0.260044, -2.1653e-07)
bones/11/enabled = true
bones/11/position = Vector3(-3.92325e-08, 0.260044, 1.81635e-08)
bones/11/rotation = Quaternion(-2.17167e-07, -1.25516e-08, -0.0266581, 0.999645)
bones/11/position = Vector3(-3.84913e-08, 0.260044, 1.39398e-08)
bones/11/rotation = Quaternion(-2.17454e-07, -1.26836e-08, -0.0266581, 0.999645)
bones/11/scale = Vector3(1, 1, 1)
bones/12/name = "hand.r"
bones/12/parent = 11
bones/12/rest = Transform3D(1, -8.32931e-14, 2.83546e-14, 8.32931e-14, 1, -6.34575e-14, -2.83546e-14, 6.34575e-14, 1, 2.04281e-14, 0.0738259, -1.19209e-07)
bones/12/enabled = true
bones/12/position = Vector3(-1.49011e-08, 0.0738259, -6.51925e-08)
bones/12/rotation = Quaternion(-0.318569, 0.29807, -0.227013, 0.870709)
bones/12/position = Vector3(-1.3659e-08, 0.0738259, -6.36405e-08)
bones/12/rotation = Quaternion(-0.31691, 0.316465, -0.230113, 0.863983)
bones/12/scale = Vector3(1, 1, 1)
bones/13/name = "handslot.r"
bones/13/parent = 12
bones/13/rest = Transform3D(0, -1, 2.32809e-07, 1, 0, -6.86063e-08, 6.86063e-08, 2.32809e-07, 1, -8.34841e-10, 0.0961251, -0.0575)
bones/13/enabled = true
bones/13/position = Vector3(-2.06436e-08, 0.0961251, -0.0575)
bones/13/rotation = Quaternion(1.12128e-07, 6.36315e-08, 0.707107, 0.707107)
bones/13/position = Vector3(-1.97277e-08, 0.0961251, -0.0575)
bones/13/rotation = Quaternion(0.00224949, 0.00264856, 0.704634, 0.709563)
bones/13/scale = Vector3(1, 1, 1)
bones/14/name = "head"
bones/14/parent = 3
bones/14/rest = Transform3D(1, 8.09955e-22, 1.77636e-14, -8.09955e-22, 1, 1.49605e-14, -1.77636e-14, -1.49605e-14, 1, 4.67612e-25, 0.268797, 0)
bones/14/enabled = true
bones/14/position = Vector3(-1.11022e-16, 0.268797, 4.10089e-15)
bones/14/rotation = Quaternion(-0.000372428, -0.0383817, 0.000621466, 0.999263)
bones/14/position = Vector3(-1.24878e-11, 0.268797, 4.0423e-15)
bones/14/rotation = Quaternion(0.00052844, -0.0308539, -2.16271e-05, 0.999524)
bones/14/scale = Vector3(1, 1, 1)
bones/15/name = "Skeleton_Warrior_Helmet"
bones/15/parent = 14
@ -910,187 +899,187 @@ bones/16/name = "upperleg.l"
bones/16/parent = 1
bones/16/rest = Transform3D(1, -1.31243e-07, -1.34242e-07, -1.35828e-07, -0.999396, -0.0347426, -1.29601e-07, 0.0347426, -0.999397, 0.170945, 0.113587, 1.70271e-08)
bones/16/enabled = true
bones/16/position = Vector3(0.170945, 0.113587, 2.4869e-08)
bones/16/rotation = Quaternion(0.996328, 0.0477852, 0.0582786, -0.0406413)
bones/16/position = Vector3(0.170945, 0.113587, 0.00031432)
bones/16/rotation = Quaternion(0.990357, 0.0818817, 0.0773502, 0.0806568)
bones/16/scale = Vector3(1, 1, 1)
bones/17/name = "lowerleg.l"
bones/17/parent = 16
bones/17/rest = Transform3D(1, 1.62704e-07, 1.37175e-07, -1.30054e-07, 0.977432, -0.211252, -1.68451e-07, 0.211252, 0.977432, -1.1194e-08, 0.227077, -2.32076e-08)
bones/17/enabled = true
bones/17/position = Vector3(2.53604e-08, 0.227078, 5.38709e-09)
bones/17/rotation = Quaternion(0.176855, 7.19657e-08, -1.18275e-07, 0.984237)
bones/17/position = Vector3(3.92422e-08, 0.227078, -1.35528e-10)
bones/17/rotation = Quaternion(0.369176, 7.28212e-08, -2.5649e-07, 0.92936)
bones/17/scale = Vector3(1, 1, 1)
bones/18/name = "foot.l"
bones/18/parent = 17
bones/18/rest = Transform3D(1, -6.39488e-14, 1.68587e-07, -1.36667e-07, 0.585513, 0.810663, -9.87102e-08, -0.810663, 0.585513, -1.49012e-08, 0.149437, 3.72566e-09)
bones/18/enabled = true
bones/18/position = Vector3(4.88945e-09, 0.149437, 4.81626e-09)
bones/18/rotation = Quaternion(-0.54015, -0.260877, 0.00229523, 0.80011)
bones/18/position = Vector3(4.37849e-08, 0.149437, -6.94943e-09)
bones/18/rotation = Quaternion(-0.608418, -0.199833, 0.0702458, 0.764826)
bones/18/scale = Vector3(1, 1, 0.999999)
bones/19/name = "toes.l"
bones/19/parent = 18
bones/19/rest = Transform3D(-1, 1.21361e-07, 3.37844e-07, -1.58967e-07, 0.694106, -0.719873, -3.21865e-07, -0.719873, -0.694106, -1.6149e-10, 0.16565, 8.79764e-10)
bones/19/enabled = true
bones/19/position = Vector3(7.5865e-09, 0.16565, -7.23491e-10)
bones/19/rotation = Quaternion(0.000253987, 0.920208, -0.391431, -5.7337e-05)
bones/19/scale = Vector3(1, 0.999997, 1)
bones/19/position = Vector3(-7.03199e-09, 0.16565, 2.68891e-08)
bones/19/rotation = Quaternion(-2.6127e-06, 0.920152, -0.391562, 1.0283e-06)
bones/19/scale = Vector3(1, 0.999998, 1)
bones/20/name = "upperleg.r"
bones/20/parent = 1
bones/20/rest = Transform3D(1, 1.31243e-07, 2.02657e-07, 1.38205e-07, -0.999396, -0.0347426, 1.97975e-07, 0.0347426, -0.999397, -0.170945, 0.113587, 5.32468e-09)
bones/20/enabled = true
bones/20/position = Vector3(-0.170945, 0.113587, 3.36761e-09)
bones/20/rotation = Quaternion(0.997108, -0.0298649, 0.0330811, 0.0615542)
bones/20/position = Vector3(-0.170945, 0.113344, -0.000314643)
bones/20/rotation = Quaternion(0.992758, -0.0322725, 0.0296577, 0.111846)
bones/20/scale = Vector3(1, 1, 1)
bones/21/name = "lowerleg.r"
bones/21/parent = 20
bones/21/rest = Transform3D(1, -1.65029e-07, -1.36672e-07, 1.32432e-07, 0.977432, -0.211252, 1.6845e-07, 0.211252, 0.977432, 1.18882e-08, 0.227077, -2.32075e-08)
bones/21/enabled = true
bones/21/position = Vector3(-9.59047e-09, 0.227077, -1.42578e-08)
bones/21/rotation = Quaternion(0.282499, -7.34175e-08, 1.97813e-07, 0.959268)
bones/21/position = Vector3(-9.67559e-09, 0.227077, -1.42054e-08)
bones/21/rotation = Quaternion(0.420268, -6.65278e-08, 2.92923e-07, 0.9074)
bones/21/scale = Vector3(1, 1, 1)
bones/22/name = "foot.r"
bones/22/parent = 21
bones/22/rest = Transform3D(1, 5.68434e-14, 1.68587e-07, -1.36668e-07, 0.585513, 0.810663, -9.87101e-08, -0.810663, 0.585513, 1.49012e-08, 0.149437, 3.72559e-09)
bones/22/enabled = true
bones/22/position = Vector3(1.63563e-08, 0.149437, 7.03783e-09)
bones/22/rotation = Quaternion(-0.565211, 0.11444, -0.00955765, 0.816914)
bones/22/position = Vector3(1.60742e-08, 0.149437, 6.9127e-09)
bones/22/rotation = Quaternion(-0.635771, 0.111438, -0.0203141, 0.763521)
bones/22/scale = Vector3(1, 1, 0.999999)
bones/23/name = "toes.r"
bones/23/parent = 22
bones/23/rest = Transform3D(-1, 1.21361e-07, 3.58529e-08, 5.84281e-08, 0.694106, -0.719873, -1.12251e-07, -0.719873, -0.694106, -1.61491e-10, 0.16565, 2.84604e-09)
bones/23/enabled = true
bones/23/position = Vector3(7.27704e-09, 0.16565, 2.48323e-08)
bones/23/rotation = Quaternion(-8.52737e-05, 0.920214, -0.391416, 1.94929e-05)
bones/23/position = Vector3(6.94013e-09, 0.16565, 2.44373e-08)
bones/23/rotation = Quaternion(-8.80778e-05, 0.920215, -0.391413, 2.01302e-05)
bones/23/scale = Vector3(1, 0.999998, 1)
bones/24/name = "kneeIK.l"
bones/24/parent = 0
bones/24/rest = Transform3D(1, -2.47926e-07, -3.89414e-07, -3.89414e-07, 3.57628e-07, -1, 2.47926e-07, 1, 3.57628e-07, 0.170945, 0.29231, 0.575812)
bones/24/enabled = true
bones/24/position = Vector3(0.170945, 0.29231, 0.575812)
bones/24/position = Vector3(0.170945, 0.292313, 0.575815)
bones/24/rotation = Quaternion(0.707107, -2.25334e-07, -5.00237e-08, 0.707107)
bones/24/scale = Vector3(1, 1, 1)
bones/25/name = "control-toe-roll.l"
bones/25/parent = 0
bones/25/rest = Transform3D(1, 2.05345e-07, -6.39488e-14, -7.10543e-15, 3.57628e-07, 1, 2.05345e-07, -1, 3.57628e-07, 0.170945, 0.0259902, 0.245789)
bones/25/enabled = true
bones/25/position = Vector3(0.213918, 0.0259903, 0.173866)
bones/25/rotation = Quaternion(-0.705092, 0.0533355, 0.0533355, 0.705092)
bones/25/position = Vector3(0.201736, 0.0279352, 0.208286)
bones/25/rotation = Quaternion(-0.709492, -7.23498e-08, -7.28523e-08, 0.704713)
bones/25/scale = Vector3(1, 1, 1)
bones/26/name = "control-heel-roll.l"
bones/26/parent = 25
bones/26/rest = Transform3D(-1, 1.33759e-14, -1.65812e-07, -1.33759e-14, -1, -4.16075e-15, -1.65812e-07, -4.16075e-15, 1, 1.90583e-08, 0.362833, -9.01383e-10)
bones/26/enabled = true
bones/26/position = Vector3(1.62132e-09, 0.362833, 4.78112e-10)
bones/26/rotation = Quaternion(-7.42714e-08, 1.39612e-08, 0.985719, -0.168398)
bones/26/position = Vector3(-7.49557e-10, 0.362833, -6.70081e-10)
bones/26/rotation = Quaternion(-7.43883e-08, 1.36633e-08, 0.986123, -0.166014)
bones/26/scale = Vector3(1, 1, 1)
bones/27/name = "control-foot-roll.l"
bones/27/parent = 26
bones/27/rest = Transform3D(-1, -1.44017e-07, -2.51498e-07, -8.10837e-08, -0.694106, 0.719873, -2.7824e-07, 0.719873, 0.694106, -8.85797e-10, 0.213436, -8.66923e-10)
bones/27/enabled = true
bones/27/position = Vector3(2.17653e-08, 0.213436, -4.06199e-09)
bones/27/rotation = Quaternion(-1.42753e-07, 0.391084, 0.920355, 1.66096e-08)
bones/27/position = Vector3(-4.34108e-08, 0.213436, -1.24871e-08)
bones/27/rotation = Quaternion(-1.33533e-07, 0.391084, 0.920355, 2.12007e-08)
bones/27/scale = Vector3(1, 1, 1)
bones/28/name = "heelIK.l"
bones/28/parent = 27
bones/28/rest = Transform3D(1, 1.16602e-07, -2.30213e-08, -6.43617e-08, 0.694106, 0.719873, 9.99178e-08, -0.719873, 0.694106, 7.39534e-10, 0.16565, -5.83864e-09)
bones/28/enabled = true
bones/28/position = Vector3(2.21064e-08, 0.16565, -1.82659e-09)
bones/28/rotation = Quaternion(-0.391084, -2.26827e-08, -4.56123e-08, 0.920355)
bones/28/position = Vector3(2.49135e-08, 0.16565, 4.15134e-10)
bones/28/rotation = Quaternion(-0.391084, -1.9452e-08, -4.71066e-08, 0.920355)
bones/28/scale = Vector3(1, 1, 1)
bones/29/name = "IK-foot.l"
bones/29/parent = 27
bones/29/rest = Transform3D(1, 3.25834e-14, 3.89414e-07, -6.02602e-14, -1, 2.38419e-07, 3.89414e-07, -2.38419e-07, -1, 1.56407e-08, 0.16565, -1.42205e-08)
bones/29/enabled = true
bones/29/position = Vector3(3.93933e-08, 0.16565, -3.04466e-09)
bones/29/rotation = Quaternion(1, -2.30652e-09, 1.85033e-07, -1.21072e-07)
bones/29/position = Vector3(4.40738e-08, 0.16565, -1.00732e-08)
bones/29/rotation = Quaternion(1, -1.43484e-08, 1.98699e-07, -1.03499e-07)
bones/29/scale = Vector3(1, 1, 1)
bones/30/name = "IK-toe.l"
bones/30/parent = 26
bones/30/rest = Transform3D(1, 3.55183e-08, -6.34202e-15, -3.55183e-08, 1, -8.06019e-08, 3.47919e-15, 8.06019e-08, 1, -8.46667e-09, 1.56659e-08, -1.80702e-08)
bones/30/enabled = true
bones/30/position = Vector3(4.33621e-10, 1.43643e-08, -1.20462e-08)
bones/30/rotation = Quaternion(4.03009e-08, 2.87377e-15, -1.77591e-08, 1)
bones/30/position = Vector3(-1.01971e-08, 1.4023e-08, -1.90554e-08)
bones/30/rotation = Quaternion(4.02062e-08, -6.75534e-12, -1.77594e-08, 1)
bones/30/scale = Vector3(1, 1, 1)
bones/31/name = "kneeIK.r"
bones/31/parent = 0
bones/31/rest = Transform3D(1, -2.47926e-07, 1.50996e-07, 1.50996e-07, 3.57628e-07, -1, 2.47926e-07, 1, 3.57628e-07, -0.170945, 0.29231, 0.575812)
bones/31/enabled = true
bones/31/position = Vector3(-0.170945, 0.29231, 0.575812)
bones/31/position = Vector3(-0.170945, 0.292313, 0.575815)
bones/31/rotation = Quaternion(0.707107, -3.427e-08, 1.4104e-07, 0.707107)
bones/31/scale = Vector3(1, 1, 1)
bones/32/name = "control-toe-roll.r"
bones/32/parent = 0
bones/32/rest = Transform3D(1, 2.05345e-07, -5.68434e-14, -1.42109e-14, 3.57628e-07, 1, 2.05345e-07, -1, 3.57628e-07, -0.170945, 0.0259902, 0.245789)
bones/32/enabled = true
bones/32/position = Vector3(-0.170945, 0.0259902, 0.245789)
bones/32/rotation = Quaternion(-0.707107, -7.26004e-08, -7.26003e-08, 0.707107)
bones/32/position = Vector3(-0.170945, 0.0251931, 0.240823)
bones/32/rotation = Quaternion(-0.702755, -7.30942e-08, -7.21064e-08, 0.711432)
bones/32/scale = Vector3(1, 1, 1)
bones/33/name = "control-heel-roll.r"
bones/33/parent = 32
bones/33/rest = Transform3D(-1, -6.00194e-17, -1.65812e-07, 6.00201e-17, -1, -4.16075e-15, -1.65812e-07, -4.16075e-15, 1, 1.90583e-08, 0.362833, -6.00926e-10)
bones/33/enabled = true
bones/33/position = Vector3(1.26238e-08, 0.362833, -7.96801e-10)
bones/33/rotation = Quaternion(-9.36515e-08, -8.4362e-09, 0.994809, 0.101756)
bones/33/position = Vector3(1.23156e-08, 0.362833, -3.27995e-10)
bones/33/rotation = Quaternion(-9.3501e-08, -8.30957e-09, 0.994956, 0.100307)
bones/33/scale = Vector3(1, 1, 1)
bones/34/name = "control-foot-roll.r"
bones/34/parent = 33
bones/34/rest = Transform3D(-1, -1.44017e-07, -2.51498e-07, -8.10837e-08, -0.694106, 0.719873, -2.7824e-07, 0.719873, 0.694106, 1.40154e-08, 0.213436, -5.23748e-10)
bones/34/enabled = true
bones/34/position = Vector3(-3.59319e-09, 0.213436, -1.62782e-08)
bones/34/rotation = Quaternion(-1.47022e-07, 0.391084, 0.920355, 2.41467e-08)
bones/34/position = Vector3(-2.94849e-09, 0.213436, -1.62925e-08)
bones/34/rotation = Quaternion(-1.46973e-07, 0.391084, 0.920355, 2.40384e-08)
bones/34/scale = Vector3(1, 1, 1)
bones/35/name = "heelIK.r"
bones/35/parent = 34
bones/35/rest = Transform3D(1, 1.16602e-07, -2.30213e-08, -6.43617e-08, 0.694106, 0.719873, 9.99178e-08, -0.719873, 0.694106, 7.3953e-10, 0.16565, 1.51519e-08)
bones/35/enabled = true
bones/35/position = Vector3(-9.03959e-09, 0.16565, 1.70316e-08)
bones/35/rotation = Quaternion(-0.391084, -3.1134e-08, -5.82118e-08, 0.920355)
bones/35/position = Vector3(-8.78417e-09, 0.16565, 1.69807e-08)
bones/35/rotation = Quaternion(-0.391084, -3.11633e-08, -5.80803e-08, 0.920355)
bones/35/scale = Vector3(1, 1, 1)
bones/36/name = "IK-foot.r"
bones/36/parent = 34
bones/36/rest = Transform3D(1, 3.98363e-14, 3.89414e-07, -1.8191e-14, -1, 1.49012e-07, 3.89414e-07, -1.49012e-07, -1, 7.39527e-10, 0.16565, 3.75036e-08)
bones/36/enabled = true
bones/36/position = Vector3(5.91897e-09, 0.16565, 1.14266e-08)
bones/36/rotation = Quaternion(1, -1.46142e-09, 1.93298e-07, -8.75443e-08)
bones/36/position = Vector3(6.05823e-09, 0.16565, 1.15316e-08)
bones/36/rotation = Quaternion(1, -1.43787e-09, 1.9332e-07, -8.73225e-08)
bones/36/scale = Vector3(1, 1, 1)
bones/37/name = "IK-toe.r"
bones/37/parent = 33
bones/37/rest = Transform3D(1, 3.55183e-08, 1.56374e-15, -3.55183e-08, 1, 1.53609e-09, -1.50918e-15, -1.53609e-09, 1, -8.46667e-09, 1.40714e-08, -1.95874e-10)
bones/37/enabled = true
bones/37/position = Vector3(3.94612e-09, -3.96422e-09, -5.76058e-09)
bones/37/rotation = Quaternion(-7.68041e-10, 1.65641e-15, -1.77591e-08, 1)
bones/37/position = Vector3(4.5566e-09, -3.13355e-09, -5.74337e-09)
bones/37/rotation = Quaternion(-6.66488e-10, 8.29075e-12, -1.77544e-08, 1)
bones/37/scale = Vector3(1, 1, 1)
bones/38/name = "elbowIK.l"
bones/38/parent = 0
bones/38/rest = Transform3D(1, 1.98341e-07, 0, 0, 0, 1, 1.98341e-07, -1, 0, 0.453507, 1.10676, -0.588859)
bones/38/enabled = true
bones/38/position = Vector3(0.453507, 1.10676, -0.588859)
bones/38/rotation = Quaternion(-0.707107, -7.0124e-08, -7.01241e-08, 0.707107)
bones/38/position = Vector3(0.453379, 1.10355, -0.593026)
bones/38/rotation = Quaternion(-0.707107, 6.4707e-05, 6.4707e-05, 0.707107)
bones/38/scale = Vector3(1, 1, 1)
bones/39/name = "handIK.l"
bones/39/parent = 0
bones/39/rest = Transform3D(-1.19209e-07, 1, 0, -1.19209e-07, 0, 1, 1, 1.19209e-07, 1.19209e-07, 0.713181, 1.10676, 2.99767e-07)
bones/39/enabled = true
bones/39/position = Vector3(0.520205, 0.788329, -0.0600544)
bones/39/rotation = Quaternion(0.796881, 0.000478305, 0.604134, -0.00124197)
bones/39/position = Vector3(0.520733, 0.779381, -0.0592629)
bones/39/rotation = Quaternion(0.795616, 0.00380772, 0.605784, 0.00243902)
bones/39/scale = Vector3(1, 1, 1)
bones/40/name = "elbowIK.r"
bones/40/parent = 0
bones/40/rest = Transform3D(1, 1.98341e-07, 0, 0, 0, 1, 1.98341e-07, -1, 0, -0.453507, 1.10676, -0.58886)
bones/40/enabled = true
bones/40/position = Vector3(-0.453507, 1.10392, -0.587862)
bones/40/rotation = Quaternion(-0.707107, -7.0124e-08, -7.01241e-08, 0.707107)
bones/40/position = Vector3(-0.45384, 1.10345, -0.592593)
bones/40/rotation = Quaternion(-0.707107, 6.4707e-05, 6.4707e-05, 0.707107)
bones/40/scale = Vector3(1, 1, 1)
bones/41/name = "handIK.r"
bones/41/parent = 0
bones/41/rest = Transform3D(0, -1, -5.96046e-08, 1.78814e-07, -1.19209e-07, 1, -1, -5.96046e-08, 1.19209e-07, -0.713182, 1.10676, -6.1348e-08)
bones/41/enabled = true
bones/41/position = Vector3(-0.510844, 0.784596, 0.0639512)
bones/41/rotation = Quaternion(-0.75825, -0.00073126, 0.651963, 0.000934521)
bones/41/position = Vector3(-0.510811, 0.779833, 0.0633181)
bones/41/rotation = Quaternion(-0.762388, 0.00756036, 0.647063, -0.00406019)
bones/41/scale = Vector3(1, 1, 1)
[node name="Skeleton_Head" type="BoneAttachment3D" parent="Rig/Skeleton3D"]
transform = Transform3D(0.999919, -0.00173364, 0.0125783, 0.00178182, 0.999991, -0.0038205, -0.0125716, 0.0038426, 0.999914, -0.000276003, 1.22686, 0.00331859)
transform = Transform3D(0.999526, -0.00142026, 0.0307482, 0.00145904, 0.999998, -0.00123881, -0.0307464, 0.00128309, 0.999526, -0.000590946, 1.20874, 0.000111541)
bone_name = "head"
bone_idx = 14
@ -1099,11 +1088,14 @@ transform = Transform3D(1, 4.23516e-22, 0, 0, 1, 1.42109e-14, 0, -1.42109e-14, 1
mesh = SubResource("ArrayMesh_o1vl2")
skeleton = NodePath("")
[node name="HurtBox_Head" type="Area3D" parent="Rig/Skeleton3D/Skeleton_Head"]
[node name="HurtBox_Head" type="Area3D" parent="Rig/Skeleton3D/Skeleton_Head" node_paths=PackedStringArray("unit")]
collision_layer = 0
collision_mask = 2
script = ExtResource("3_oqsg8")
unit = NodePath("../../../..")
[node name="CollisionShape3D" type="CollisionShape3D" parent="Rig/Skeleton3D/Skeleton_Head/HurtBox_Head"]
transform = Transform3D(1, 0, 0, -2.77556e-17, 1, 0, 0, 0, 1, -2.00267e-10, 0.505716, 8.513e-09)
transform = Transform3D(1, -2.026e-05, -6.68131e-06, 2.02599e-05, 1, -4.2983e-05, 6.72229e-06, 4.29826e-05, 1, 0.000172617, 0.628405, -0.000116687)
shape = SubResource("CapsuleShape3D_6kus5")
[node name="Skeleton_Warrior_Body" type="MeshInstance3D" parent="Rig/Skeleton3D"]
@ -1135,7 +1127,7 @@ mesh = SubResource("ArrayMesh_or0td")
skin = SubResource("Skin_irdo5")
[node name="Skeleton_Hand_L" type="BoneAttachment3D" parent="Rig/Skeleton3D"]
transform = Transform3D(0.270044, 0.00225517, 0.962845, -0.000739425, -0.999995, 0.00255066, 0.962847, -0.00140119, -0.270042, 0.562759, 0.732679, -0.0366924)
transform = Transform3D(0.263558, 0.00154537, 0.964642, 0.0127141, -0.999916, -0.00187081, 0.964559, 0.0127571, -0.263557, 0.563469, 0.724164, -0.0337203)
bone_name = "hand.l"
bone_idx = 7
@ -1145,16 +1137,20 @@ mesh = SubResource("ArrayMesh_6881f")
skin = SubResource("Skin_8len0")
skeleton = NodePath("../..")
[node name="HitBox_Hand_L" type="Area3D" parent="Rig/Skeleton3D/Skeleton_Hand_L"]
[node name="HitBox_Hand_L" type="Area3D" parent="Rig/Skeleton3D/Skeleton_Hand_L" node_paths=PackedStringArray("unit")]
transform = Transform3D(0.27436, -0.230892, 0.933496, 0.0429198, -0.966839, -0.251754, 0.960669, 0.109136, -0.255353, 0.154051, 0.673974, -0.580579)
collision_layer = 2
collision_mask = 0
script = ExtResource("3_t74aj")
unit = NodePath("../../../..")
[node name="CollisionShape3D" type="CollisionShape3D" parent="Rig/Skeleton3D/Skeleton_Hand_L/HitBox_Hand_L"]
transform = Transform3D(0.808714, -0.504755, -0.302001, 0.495834, 0.861213, -0.111635, 0.316434, -0.0594617, 0.94675, 0.452269, 0.854163, -0.0528726)
shape = SubResource("CapsuleShape3D_70xfu")
disabled = true
[node name="Skeleton_Hand_R" type="BoneAttachment3D" parent="Rig/Skeleton3D"]
transform = Transform3D(0.149887, -0.000121593, -0.988703, 0.00231528, -0.999996, 0.000474751, -0.9887, -0.00236078, -0.149887, -0.547963, 0.733266, 0.101913)
transform = Transform3D(0.151556, -0.0116231, -0.98838, -0.0150806, -0.999841, 0.00944635, -0.988333, 0.0134733, -0.151707, -0.549283, 0.729936, 0.102688)
bone_name = "hand.r"
bone_idx = 12
@ -1164,13 +1160,17 @@ mesh = SubResource("ArrayMesh_txmvf")
skin = SubResource("Skin_xbjll")
skeleton = NodePath("../..")
[node name="HitBox_Hand_R" type="Area3D" parent="Rig/Skeleton3D/Skeleton_Hand_R"]
[node name="HitBox_Hand_R" type="Area3D" parent="Rig/Skeleton3D/Skeleton_Hand_R" node_paths=PackedStringArray("unit")]
transform = Transform3D(0.162471, 0.119352, -0.979469, -0.115937, -0.983473, -0.13907, -0.979879, 0.136151, -0.145948, -0.0204939, 0.666083, -0.603629)
collision_layer = 2
collision_mask = 0
script = ExtResource("3_t74aj")
unit = NodePath("../../../..")
[node name="CollisionShape3D" type="CollisionShape3D" parent="Rig/Skeleton3D/Skeleton_Hand_R/HitBox_Hand_R"]
transform = Transform3D(-0.836478, -0.503842, -0.21552, 0.373705, -0.812112, 0.448129, -0.400812, 0.294308, 0.867601, -0.410952, 0.849042, 0.0445099)
shape = SubResource("CapsuleShape3D_mb4wi")
disabled = true
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
@ -1181,7 +1181,7 @@ libraries = {
tree_root = SubResource("AnimationNodeStateMachine_34gcr")
anim_player = NodePath("../AnimationPlayer")
parameters/current_length = 1.04167
parameters/current_position = 0.841256
parameters/current_position = 0.375222
parameters/current_delta = 0.0166667
parameters/conditions/grounded = false
parameters/conditions/jumping = false
@ -1201,11 +1201,11 @@ parameters/Hit_B/current_length = 0.833333
parameters/Hit_B/current_position = 0.833333
parameters/Hit_B/current_delta = 0.0175824
parameters/IWR/current_length = 1.04167
parameters/IWR/current_position = 0.841256
parameters/IWR/current_position = 0.375222
parameters/IWR/current_delta = 0.0166667
parameters/IWR/blend_position = Vector2(0.000524879, -0.0137615)
parameters/IWR/0/current_length = 1.04167
parameters/IWR/0/current_position = 0.841256
parameters/IWR/0/current_position = 0.375222
parameters/IWR/0/current_delta = 0.0166667
parameters/IWR/1/current_length = 0.791667
parameters/IWR/1/current_position = 0.708259
@ -1214,7 +1214,7 @@ parameters/IWR/2/current_length = 1.04167
parameters/IWR/2/current_position = 1.04167
parameters/IWR/2/current_delta = 0.0
parameters/IWR/3/current_length = 0.791667
parameters/IWR/3/current_position = 0.216255
parameters/IWR/3/current_position = 0.0418862
parameters/IWR/3/current_delta = 0.0166667
parameters/IWR/4/current_length = 0.791667
parameters/IWR/4/current_position = 0.390352
@ -1236,13 +1236,10 @@ parameters/Start/current_position = 0.0
parameters/Start/current_delta = 0.0
parameters/Unarmed_Melee_Attack_Punch_A/current_length = 1.45833
parameters/Unarmed_Melee_Attack_Punch_A/current_position = 1.45833
parameters/Unarmed_Melee_Attack_Punch_A/current_delta = 0.0199126
"parameters/Unarmed_Melee_Attack_Punch_A 2/current_length" = 1.45833
"parameters/Unarmed_Melee_Attack_Punch_A 2/current_position" = 1.45833
"parameters/Unarmed_Melee_Attack_Punch_A 2/current_delta" = 0.0247903
parameters/Unarmed_Melee_Attack_Punch_A/current_delta = 0.026887
parameters/Unarmed_Melee_Attack_Punch_B/current_length = 1.66667
parameters/Unarmed_Melee_Attack_Punch_B/current_position = 1.66667
parameters/Unarmed_Melee_Attack_Punch_B/current_delta = 0.0177787
parameters/Unarmed_Melee_Attack_Punch_B/current_delta = 0.0170947
[node name="sprite_enemy_overlay" type="Sprite3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, 0)

@ -1,4 +1,4 @@
[gd_resource type="AnimationLibrary" load_steps=96 format=3 uid="uid://dr4nd3fhvp26k"]
[gd_resource type="AnimationLibrary" load_steps=97 format=3 uid="uid://dr4nd3fhvp26k"]
[sub_resource type="Animation" id="Animation_thp3h"]
resource_name = "1H_Melee_Attack_Chop"
@ -75265,6 +75265,30 @@ tracks/122/path = NodePath("Rig/Skeleton3D:handIK.r")
tracks/122/interp = 1
tracks/122/loop_wrap = true
tracks/122/keys = PackedFloat32Array(0, 1, 1, 1, 1)
tracks/123/type = "value"
tracks/123/imported = false
tracks/123/enabled = true
tracks/123/path = NodePath("Rig/Skeleton3D/Skeleton_Hand_L/HitBox_Hand_L/CollisionShape3D:disabled")
tracks/123/interp = 1
tracks/123/loop_wrap = true
tracks/123/keys = {
"times": PackedFloat32Array(0, 1.0989, 1.45833),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 1,
"values": [true, false, false]
}
tracks/124/type = "value"
tracks/124/imported = false
tracks/124/enabled = true
tracks/124/path = NodePath("Rig/Skeleton3D/Skeleton_Hand_R/HitBox_Hand_R/CollisionShape3D:disabled")
tracks/124/interp = 1
tracks/124/loop_wrap = true
tracks/124/keys = {
"times": PackedFloat32Array(0, 1.0989),
"transitions": PackedFloat32Array(1, 1),
"update": 1,
"values": [true, false]
}
[sub_resource type="Animation" id="Animation_nmdm5"]
resource_name = "Unarmed_Melee_Attack_Punch_B"
@ -76130,6 +76154,30 @@ tracks/122/path = NodePath("Rig/Skeleton3D:handIK.r")
tracks/122/interp = 0
tracks/122/loop_wrap = true
tracks/122/keys = PackedFloat32Array(0, 1, 1, 1, 1)
tracks/123/type = "value"
tracks/123/imported = false
tracks/123/enabled = true
tracks/123/path = NodePath("Rig/Skeleton3D/Skeleton_Hand_R/HitBox_Hand_R/CollisionShape3D:disabled")
tracks/123/interp = 1
tracks/123/loop_wrap = true
tracks/123/keys = {
"times": PackedFloat32Array(0, 1.0989),
"transitions": PackedFloat32Array(1, 1),
"update": 1,
"values": [false, true]
}
tracks/124/type = "value"
tracks/124/imported = false
tracks/124/enabled = true
tracks/124/path = NodePath("Rig/Skeleton3D/Skeleton_Hand_L/HitBox_Hand_L/CollisionShape3D:disabled")
tracks/124/interp = 1
tracks/124/loop_wrap = true
tracks/124/keys = {
"times": PackedFloat32Array(0, 1.0989),
"transitions": PackedFloat32Array(1, 1),
"update": 1,
"values": [false, true]
}
[sub_resource type="Animation" id="Animation_1qbqm"]
resource_name = "Unarmed_Pose"
@ -82186,6 +82234,33 @@ tracks/122/interp = 0
tracks/122/loop_wrap = true
tracks/122/keys = PackedFloat32Array(0, 1, 1, 1, 1)
[sub_resource type="Animation" id="Animation_r5jhi"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Rig/Skeleton3D/Skeleton_Hand_L/HitBox_Hand_L/CollisionShape3D:disabled")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [true]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Rig/Skeleton3D/Skeleton_Hand_R/HitBox_Hand_R/CollisionShape3D:disabled")
tracks/1/interp = 1
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [true]
}
[resource]
_data = {
"1H_Melee_Attack_Chop": SubResource("Animation_thp3h"),
@ -82242,6 +82317,7 @@ _data = {
"Lie_Pose": SubResource("Animation_3gugc"),
"Lie_StandUp": SubResource("Animation_oec13"),
"PickUp": SubResource("Animation_rwonq"),
"RESET": SubResource("Animation_r5jhi"),
"Running_A": SubResource("Animation_uo12v"),
"Running_B": SubResource("Animation_7swap"),
"Running_C": SubResource("Animation_3vc4a"),

File diff suppressed because one or more lines are too long

@ -1,7 +1,7 @@
class_name HitBox
extends Area3D
@onready var unit: Unit = $"../../../../.."
@export var unit: Unit
func _init() -> void:
collision_layer = 2

@ -1,6 +1,8 @@
class_name HurtBox
extends Area3D
@export var unit: Unit
func _init() -> void:
collision_layer = 0
collision_mask = 2
@ -10,5 +12,6 @@ func _ready() -> void:
func _on_area_entered(hitbox: HitBox) -> void:
if hitbox == null: return
if unit != null: print(unit.name + " take damage by " + hitbox.unit.name + "...")
if owner.has_method("take_damage"):
owner.take_damage(hitbox.get_damage())