make footsteps player only play if on ground
This commit is contained in:
@@ -145,57 +145,57 @@ attack = NodePath("Attack")
|
||||
[node name="Model" parent="." instance=ExtResource("3_f1ej7")]
|
||||
|
||||
[node name="Skeleton3D" parent="Model/Armature" index="0"]
|
||||
bones/0/position = Vector3(-0.543134, 1.08788, -0.0917138)
|
||||
bones/0/rotation = Quaternion(0.711732, -0.168641, -0.662063, -0.163313)
|
||||
bones/0/position = Vector3(-0.524439, 1.02264, -0.0364679)
|
||||
bones/0/rotation = Quaternion(0.687846, -0.096709, -0.714909, -0.0801328)
|
||||
bones/0/scale = Vector3(1, 1, 1)
|
||||
bones/1/position = Vector3(-9.75365e-05, 0.0319142, -0.124525)
|
||||
bones/1/rotation = Quaternion(-0.000141591, 0.789452, 0.613812, 0.000224233)
|
||||
bones/2/rotation = Quaternion(6.24507e-10, 4.41808e-08, -6.03351e-10, 1)
|
||||
bones/2/scale = Vector3(1, 1, 1)
|
||||
bones/3/rotation = Quaternion(1.74623e-10, -2.60798e-10, -1.30968e-10, 1)
|
||||
bones/4/position = Vector3(-0.0315981, 0.953029, -0.0546811)
|
||||
bones/4/rotation = Quaternion(0.295319, -0.327641, -0.107915, 0.89095)
|
||||
bones/4/position = Vector3(0.0508686, 0.933964, -0.0321962)
|
||||
bones/4/rotation = Quaternion(0.207125, -0.0487409, 0.0797672, 0.973838)
|
||||
bones/5/position = Vector3(6.05363e-09, 0.111695, -8.19564e-08)
|
||||
bones/5/rotation = Quaternion(0.0696866, -0.110981, 0.261727, 0.956204)
|
||||
bones/6/rotation = Quaternion(-0.419676, -0.109495, 0.0130086, 0.900951)
|
||||
bones/7/rotation = Quaternion(0.3265, 0.284802, -0.251691, 0.865411)
|
||||
bones/8/rotation = Quaternion(-0.2495, 0.296628, 0.151267, 0.90933)
|
||||
bones/5/rotation = Quaternion(0.0749254, -0.218292, 0.0864878, 0.969152)
|
||||
bones/6/rotation = Quaternion(-0.419042, -0.138382, 0.0264841, 0.896969)
|
||||
bones/7/rotation = Quaternion(0.350668, 0.0735306, -0.292144, 0.886723)
|
||||
bones/8/rotation = Quaternion(-0.223759, 0.353186, 0.0976295, 0.903139)
|
||||
bones/9/rotation = Quaternion(1.13474e-07, 0.707107, 0.707107, -5.23149e-08)
|
||||
bones/10/scale = Vector3(1, 1, 1)
|
||||
bones/11/position = Vector3(-0.00968189, -1.10066e-08, -0.00662707)
|
||||
bones/11/scale = Vector3(1.00139, 1, 1)
|
||||
bones/11/position = Vector3(-0.0103687, -7.57917e-08, -0.00777752)
|
||||
bones/11/scale = Vector3(1.22112, 1, 0.908669)
|
||||
bones/12/position = Vector3(-0.00823868, 6.83734e-08, -0.0102097)
|
||||
bones/13/position = Vector3(-0.0195226, 6.92139e-09, 0.00588929)
|
||||
bones/13/scale = Vector3(1.00139, 1, 0.997734)
|
||||
bones/14/position = Vector3(-0.0323295, 2.96327e-09, -0.00265635)
|
||||
bones/14/scale = Vector3(1.00139, 1, 0.997734)
|
||||
bones/13/position = Vector3(-0.0229232, -3.61523e-08, 0.000896164)
|
||||
bones/13/scale = Vector3(1.22112, 0.999999, 0.908669)
|
||||
bones/14/position = Vector3(-0.0385402, -5.25668e-08, -0.00573277)
|
||||
bones/14/scale = Vector3(1.22112, 1, 0.908669)
|
||||
bones/15/position = Vector3(-0.0186913, 1.4579e-07, -0.0116523)
|
||||
bones/16/position = Vector3(0.013901, 8.25914e-08, 0.0150569)
|
||||
bones/16/scale = Vector3(1.00139, 1, 0.997735)
|
||||
bones/17/position = Vector3(0.0275303, 9.00419e-08, 0.0069467)
|
||||
bones/17/scale = Vector3(1.00139, 1, 1)
|
||||
bones/16/position = Vector3(0.0176241, -1.16501e-07, 0.00955573)
|
||||
bones/16/scale = Vector3(1.22112, 0.999999, 0.908669)
|
||||
bones/17/position = Vector3(0.0340841, -1.10891e-07, 0.0021126)
|
||||
bones/17/scale = Vector3(1.22112, 0.999999, 0.908669)
|
||||
bones/18/position = Vector3(0.0138112, -1.99382e-07, -0.0106829)
|
||||
bones/19/position = Vector3(-0.029965, -6.74833e-08, -0.0114938)
|
||||
bones/20/position = Vector3(0.0319374, 2.70462e-10, -0.00811319)
|
||||
bones/21/position = Vector3(0.0451344, 0.0764403, 0.0935013)
|
||||
bones/21/position = Vector3(0.0451364, 0.0764193, 0.0935001)
|
||||
bones/21/rotation = Quaternion(0.160115, 0.667183, 0.68874, -0.234237)
|
||||
bones/22/position = Vector3(-0.00351833, -2.67936e-08, 0.0010112)
|
||||
bones/25/position = Vector3(-0.0442944, 0.0756561, 0.0940351)
|
||||
bones/25/position = Vector3(-0.0442962, 0.0756351, 0.094034)
|
||||
bones/25/rotation = Quaternion(-0.161417, 0.667625, 0.688436, 0.232975)
|
||||
bones/26/position = Vector3(0.00351835, 2.9417e-08, 0.00101115)
|
||||
bones/29/rotation = Quaternion(0.0382404, -0.550798, 0.832483, 0.0461726)
|
||||
bones/30/rotation = Quaternion(-0.0957824, 0.000982907, 0.0254876, 0.995075)
|
||||
bones/29/rotation = Quaternion(0.0376932, -0.560579, 0.825928, 0.0466204)
|
||||
bones/30/rotation = Quaternion(-0.0881641, -0.00666916, -0.0743099, 0.993308)
|
||||
bones/31/rotation = Quaternion(0.00282337, 0.992799, -0.117349, -0.0238866)
|
||||
bones/32/rotation = Quaternion(0.618082, -1.36521e-07, -1.28249e-06, 0.786113)
|
||||
bones/32/rotation = Quaternion(0.570454, -6.05212e-08, -1.29001e-06, 0.82133)
|
||||
bones/33/rotation = Quaternion(-0.0342351, -3.5846e-07, 8.54711e-08, 0.999414)
|
||||
bones/35/rotation = Quaternion(0.386226, -0.0288097, 0.216781, 0.896106)
|
||||
bones/36/rotation = Quaternion(-0.676116, 2.82218e-07, 5.06251e-07, 0.736795)
|
||||
bones/37/rotation = Quaternion(0.0468953, -0.0785536, 0.0557795, 0.994243)
|
||||
bones/38/rotation = Quaternion(-0.587791, 3.22231e-07, 9.83445e-07, 0.809013)
|
||||
bones/35/rotation = Quaternion(0.324311, -0.116094, 0.338559, 0.875627)
|
||||
bones/36/rotation = Quaternion(-0.720179, 2.66182e-07, 5.25906e-07, 0.693789)
|
||||
bones/37/rotation = Quaternion(-0.0205028, -0.10076, 0.231045, 0.967494)
|
||||
bones/38/rotation = Quaternion(-0.641319, 2.67015e-07, 1.00452e-06, 0.767275)
|
||||
bones/39/rotation = Quaternion(0.197471, 0.678974, 0.678974, -0.19747)
|
||||
bones/39/scale = Vector3(1.0011, 1, 0.998774)
|
||||
bones/41/position = Vector3(0.0128964, 0.000225329, -0.00384278)
|
||||
bones/41/rotation = Quaternion(-9.69781e-10, -0.00708393, -1.34122e-07, 0.999975)
|
||||
bones/39/scale = Vector3(1.08921, 1, 0.93757)
|
||||
bones/41/position = Vector3(0.0170023, 0.00022532, -0.00384271)
|
||||
bones/41/rotation = Quaternion(2.91755e-08, 0.0070825, -1.17823e-07, 0.999975)
|
||||
bones/41/scale = Vector3(0.999981, 1, 0.538573)
|
||||
bones/42/position = Vector3(0.0392888, -1.17533e-06, -0.00209796)
|
||||
bones/43/position = Vector3(-0.0495715, -2.58908e-06, 0.0301691)
|
||||
@@ -203,9 +203,9 @@ bones/44/position = Vector3(-0.00910762, -1.30386e-08, 0.00452032)
|
||||
bones/45/position = Vector3(-0.013421, 6.33299e-08, -0.0283991)
|
||||
bones/46/position = Vector3(-0.0513805, 8.90344e-07, -0.0104124)
|
||||
bones/47/position = Vector3(0.0446487, -1.27684e-06, -0.0177286)
|
||||
bones/48/scale = Vector3(1.0011, 1, 0.998043)
|
||||
bones/50/position = Vector3(-0.0180255, 0.000225338, -0.00485544)
|
||||
bones/50/rotation = Quaternion(-6.48622e-09, -0.00862222, 1.11814e-08, 0.999963)
|
||||
bones/48/scale = Vector3(1.08921, 1, 0.93757)
|
||||
bones/50/position = Vector3(-0.0139197, 0.000225418, -0.00485518)
|
||||
bones/50/rotation = Quaternion(4.90528e-10, 0.00862028, 1.22952e-07, 0.999963)
|
||||
bones/50/scale = Vector3(0.999977, 1, 0.397035)
|
||||
bones/51/position = Vector3(-0.0392888, -1.22121e-06, -0.00333335)
|
||||
bones/52/position = Vector3(0.0495715, -2.68185e-06, 0.0147188)
|
||||
@@ -213,16 +213,16 @@ bones/53/position = Vector3(0.00910765, -7.47593e-08, 0.000409614)
|
||||
bones/54/position = Vector3(0.0134209, 4.70912e-08, -0.0184937)
|
||||
bones/55/position = Vector3(0.0513805, 9.29226e-07, -0.0104125)
|
||||
bones/56/position = Vector3(-0.0446488, -1.30966e-06, -0.0177287)
|
||||
bones/57/rotation = Quaternion(0.233181, -0.0107908, -0.678944, 0.696093)
|
||||
bones/58/rotation = Quaternion(0.523886, 0.0664228, -0.405548, 0.746098)
|
||||
bones/57/rotation = Quaternion(0.276079, -0.0541187, -0.699893, 0.656507)
|
||||
bones/58/rotation = Quaternion(0.682561, 0.13926, -0.205909, 0.687255)
|
||||
bones/58/scale = Vector3(1, 1, 1)
|
||||
bones/59/position = Vector3(-9.57874e-08, 0.28245, -2.04679e-08)
|
||||
bones/59/rotation = Quaternion(0.472279, -0.000988259, -0.0133858, 0.881347)
|
||||
bones/59/position = Vector3(6.76707e-08, 0.319964, 1.83989e-09)
|
||||
bones/59/rotation = Quaternion(0.394849, -0.37666, -0.148602, 0.824705)
|
||||
bones/59/scale = Vector3(1, 1, 1)
|
||||
bones/60/rotation = Quaternion(0.00106223, -0.239893, 0.000262507, 0.970799)
|
||||
bones/60/rotation = Quaternion(0.00108044, -0.157389, 0.00017222, 0.987536)
|
||||
bones/60/scale = Vector3(1, 1, 1)
|
||||
bones/61/position = Vector3(-2.38435e-08, 0.0662428, -0.000144935)
|
||||
bones/61/rotation = Quaternion(-0.259913, -0.30647, 0.0898474, 0.91129)
|
||||
bones/61/position = Vector3(7.26394e-08, 0.0427884, -9.37813e-05)
|
||||
bones/61/rotation = Quaternion(-0.254767, -0.213829, 0.127782, 0.934368)
|
||||
bones/61/scale = Vector3(1, 1, 1)
|
||||
bones/62/rotation = Quaternion(0.493569, 0.84346, 0.0982726, -0.187901)
|
||||
bones/63/rotation = Quaternion(0.52804, -0.147693, -0.0941254, 0.830964)
|
||||
@@ -267,27 +267,27 @@ bones/93/rotation = Quaternion(-0.494209, 0.0204614, -0.0359497, 0.868359)
|
||||
bones/93/scale = Vector3(1, 1.13164, 1)
|
||||
bones/94/rotation = Quaternion(-0.547852, 0.057849, -0.0581314, 0.832546)
|
||||
bones/94/scale = Vector3(1, 1.05697, 1)
|
||||
bones/95/position = Vector3(3.32503e-09, 0.0662427, -0.000145026)
|
||||
bones/95/rotation = Quaternion(-0.786701, -0.143093, -0.0788224, 0.595326)
|
||||
bones/95/position = Vector3(6.28092e-08, 0.0427884, -9.39121e-05)
|
||||
bones/95/rotation = Quaternion(-0.788472, -0.122721, -0.0313393, 0.601889)
|
||||
bones/95/scale = Vector3(1, 1, 1)
|
||||
bones/96/position = Vector3(1.37622e-09, 0.28245, -1.58384e-08)
|
||||
bones/96/rotation = Quaternion(-0.513124, 0.00451907, -0.00526202, 0.858286)
|
||||
bones/96/scale = Vector3(1, 1.0999, 1)
|
||||
bones/96/position = Vector3(2.35029e-08, 0.319964, 2.06714e-09)
|
||||
bones/96/rotation = Quaternion(-0.528711, -0.0842862, -0.194447, 0.821919)
|
||||
bones/96/scale = Vector3(1, 1.13433, 1)
|
||||
bones/97/position = Vector3(-0.00645471, 0.000163305, -0.00321278)
|
||||
bones/97/rotation = Quaternion(0.248427, 0.0258538, -0.267814, 0.930533)
|
||||
bones/98/position = Vector3(-5.76256e-09, 0.0159596, 0.000181361)
|
||||
bones/98/rotation = Quaternion(-0.0586372, -0.00568235, -0.12181, 0.990804)
|
||||
bones/99/rotation = Quaternion(-0.463077, 0.151382, -0.119364, 0.865098)
|
||||
bones/99/rotation = Quaternion(-0.385839, 0.104819, -0.0157293, 0.916457)
|
||||
bones/99/scale = Vector3(1, 1, 1)
|
||||
bones/100/rotation = Quaternion(0.0487089, -0.0278453, 0.474124, 0.878669)
|
||||
bones/101/rotation = Quaternion(0.0674087, 0.449171, 0.744007, 0.490056)
|
||||
bones/100/rotation = Quaternion(0.0481859, -0.0287408, 0.490282, 0.869756)
|
||||
bones/101/rotation = Quaternion(-0.00208133, 0.506936, 0.639016, 0.578507)
|
||||
bones/102/position = Vector3(6.2732e-09, 0.281682, 9.00968e-08)
|
||||
bones/102/rotation = Quaternion(0.0783999, 5.11893e-05, 4.85968e-05, 0.996922)
|
||||
bones/102/rotation = Quaternion(0.0490929, 5.00416e-05, 5.0113e-05, 0.998794)
|
||||
bones/102/scale = Vector3(1, 1, 1)
|
||||
bones/103/rotation = Quaternion(0.00109412, 0.000158973, -1.86224e-07, 0.999999)
|
||||
bones/103/rotation = Quaternion(0.00109418, 0.000723166, -1.06405e-06, 0.999999)
|
||||
bones/103/scale = Vector3(0.999997, 0.999997, 1)
|
||||
bones/104/position = Vector3(-1.97803e-07, 0.068466, -0.000150014)
|
||||
bones/104/rotation = Quaternion(-0.390861, 0.000250205, -0.000179205, 0.92045)
|
||||
bones/104/rotation = Quaternion(-0.436657, 0.00137482, -0.00118515, 0.899626)
|
||||
bones/104/scale = Vector3(1, 1, 1)
|
||||
bones/105/rotation = Quaternion(-0.272954, 0.938438, 0.146391, -0.152973)
|
||||
bones/106/rotation = Quaternion(0.58496, 0.153924, 0.0835466, 0.791928)
|
||||
@@ -333,96 +333,96 @@ bones/136/scale = Vector3(1, 1.25698, 1)
|
||||
bones/137/rotation = Quaternion(-0.479239, -0.0566498, 0.0570499, 0.873994)
|
||||
bones/137/scale = Vector3(1, 1.15486, 1)
|
||||
bones/138/position = Vector3(-1.96072e-07, 0.068466, -0.000149977)
|
||||
bones/138/rotation = Quaternion(-0.835281, 0.000155048, 2.64581e-05, 0.549823)
|
||||
bones/138/rotation = Quaternion(-0.848847, 0.000928811, 7.20994e-05, 0.528638)
|
||||
bones/138/scale = Vector3(1, 1, 1)
|
||||
bones/139/position = Vector3(3.48513e-09, 0.281682, 1.40144e-07)
|
||||
bones/139/rotation = Quaternion(-0.678372, 2.72611e-06, 6.07555e-05, 0.734718)
|
||||
bones/139/rotation = Quaternion(-0.689087, 1.83005e-06, 6.09371e-05, 0.724678)
|
||||
bones/139/scale = Vector3(1, 1, 1)
|
||||
bones/140/position = Vector3(-0.00091601, -0.00419344, -0.00166352)
|
||||
bones/140/rotation = Quaternion(0.180101, -0.00275761, 0.0409847, 0.98279)
|
||||
bones/140/scale = Vector3(1.12362, 1, 1)
|
||||
bones/141/position = Vector3(2.32831e-10, 0.0159594, 0.000181319)
|
||||
bones/141/rotation = Quaternion(-0.0876969, -0.00686066, -0.0793036, 0.992962)
|
||||
bones/142/rotation = Quaternion(-0.586048, -0.0904486, 0.482526, 0.64462)
|
||||
bones/142/rotation = Quaternion(-0.631175, -0.0224744, 0.448558, 0.632384)
|
||||
bones/142/scale = Vector3(1, 1, 0.999999)
|
||||
bones/143/position = Vector3(-0.018919, 0.110134, 0.070157)
|
||||
bones/144/position = Vector3(-0.0337827, 0.0542148, 0.09068)
|
||||
bones/145/position = Vector3(-0.0510229, -0.00555351, 0.0822772)
|
||||
bones/146/position = Vector3(0.0286733, 0.0509892, -0.115724)
|
||||
bones/147/position = Vector3(0.108819, 0.0395299, -0.0447654)
|
||||
bones/147/rotation = Quaternion(0.125368, -0.182936, 0.0565113, 0.97346)
|
||||
bones/148/position = Vector3(0.112299, 0.0939505, -0.0357108)
|
||||
bones/148/rotation = Quaternion(0.125368, -0.182936, 0.0565113, 0.97346)
|
||||
bones/149/position = Vector3(0.0759571, 0.078725, 0.0577895)
|
||||
bones/149/rotation = Quaternion(0.125368, -0.182936, 0.0565113, 0.97346)
|
||||
bones/150/position = Vector3(0.0778319, 0.000744706, 0.0574671)
|
||||
bones/150/rotation = Quaternion(0.125368, -0.182936, 0.0565113, 0.97346)
|
||||
bones/151/position = Vector3(0.018874, 0.0587846, 0.0816846)
|
||||
bones/152/position = Vector3(0.0156536, -0.00930089, 0.0820753)
|
||||
bones/153/position = Vector3(0.033201, 0.11429, 0.0545836)
|
||||
bones/153/rotation = Quaternion(0.125368, -0.182936, 0.0565113, 0.97346)
|
||||
bones/154/position = Vector3(0.0637267, 0.139331, 0.0384155)
|
||||
bones/154/rotation = Quaternion(0.125368, -0.182936, 0.0565113, 0.97346)
|
||||
bones/155/position = Vector3(0.0747889, 0.163579, 0.00693478)
|
||||
bones/155/rotation = Quaternion(0.125368, -0.182936, 0.0565113, 0.97346)
|
||||
bones/156/position = Vector3(0.0823833, 0.166088, -0.019781)
|
||||
bones/156/rotation = Quaternion(0.125368, -0.182936, 0.0565113, 0.97346)
|
||||
bones/157/position = Vector3(0.106001, 0.131009, -0.0435183)
|
||||
bones/157/rotation = Quaternion(0.125368, -0.182936, 0.0565113, 0.97346)
|
||||
bones/158/position = Vector3(0.0700479, 0.132857, -0.0632079)
|
||||
bones/158/rotation = Quaternion(0.125368, -0.182936, 0.0565113, 0.97346)
|
||||
bones/159/position = Vector3(-0.0889399, 0.0627121, -0.100726)
|
||||
bones/159/rotation = Quaternion(0.0314139, 0.0266726, -0.333223, 0.941947)
|
||||
bones/160/position = Vector3(-0.0729533, 0.106545, -0.0883844)
|
||||
bones/160/rotation = Quaternion(0.0314138, 0.0266726, -0.333223, 0.941947)
|
||||
bones/161/position = Vector3(-0.105049, 0.136257, 0.00595959)
|
||||
bones/161/rotation = Quaternion(0.0314138, 0.0266726, -0.333223, 0.941947)
|
||||
bones/162/position = Vector3(-0.123492, 0.0687571, -0.0301436)
|
||||
bones/162/rotation = Quaternion(0.0314138, 0.0266726, -0.333223, 0.941947)
|
||||
bones/163/position = Vector3(-0.0777084, 0.0784455, 0.0660743)
|
||||
bones/164/position = Vector3(-0.0991848, 0.0200588, 0.0579003)
|
||||
bones/165/position = Vector3(-0.0571452, 0.150272, 0.0521332)
|
||||
bones/165/rotation = Quaternion(0.0314138, 0.0266726, -0.333223, 0.941947)
|
||||
bones/166/position = Vector3(-0.062244, 0.184127, 0.0201765)
|
||||
bones/166/rotation = Quaternion(0.0314138, 0.0266726, -0.333223, 0.941947)
|
||||
bones/167/position = Vector3(-0.0545475, 0.198521, -0.0178273)
|
||||
bones/167/rotation = Quaternion(0.0314139, 0.0266726, -0.333223, 0.941947)
|
||||
bones/168/position = Vector3(-0.056203, 0.195251, -0.0454726)
|
||||
bones/168/rotation = Quaternion(0.0314138, 0.0266726, -0.333223, 0.941947)
|
||||
bones/169/position = Vector3(-0.0888787, 0.166864, -0.0635684)
|
||||
bones/169/rotation = Quaternion(0.0314138, 0.0266726, -0.333223, 0.941947)
|
||||
bones/170/position = Vector3(-0.0563384, 0.148642, -0.0744274)
|
||||
bones/170/rotation = Quaternion(0.0314138, 0.0266726, -0.333223, 0.941947)
|
||||
bones/171/rotation = Quaternion(0.721273, 0.227673, -0.441375, 0.482823)
|
||||
bones/143/position = Vector3(-0.00764884, 0.109973, 0.0700746)
|
||||
bones/144/position = Vector3(0.0178655, 0.0526278, 0.100587)
|
||||
bones/145/position = Vector3(0.0210242, -0.0147893, 0.099826)
|
||||
bones/146/position = Vector3(-0.0215664, 0.0451318, -0.131066)
|
||||
bones/147/position = Vector3(0.113703, 0.0315843, -0.0578424)
|
||||
bones/147/rotation = Quaternion(0.122201, -0.24275, 0.0116683, 0.962291)
|
||||
bones/148/position = Vector3(0.105268, 0.0909962, -0.050102)
|
||||
bones/148/rotation = Quaternion(0.122201, -0.24275, 0.0116683, 0.962291)
|
||||
bones/149/position = Vector3(0.0874399, 0.0739181, 0.0189367)
|
||||
bones/149/rotation = Quaternion(0.122201, -0.24275, 0.0116683, 0.962291)
|
||||
bones/150/position = Vector3(0.106422, 0.00266495, 0.00320829)
|
||||
bones/150/rotation = Quaternion(0.122201, -0.24275, 0.0116683, 0.962291)
|
||||
bones/151/position = Vector3(0.0562395, 0.0598586, 0.0646342)
|
||||
bones/152/position = Vector3(0.0731033, -0.00997822, 0.0527525)
|
||||
bones/153/position = Vector3(0.0382476, 0.112878, 0.0538631)
|
||||
bones/153/rotation = Quaternion(0.122201, -0.24275, 0.0116683, 0.962291)
|
||||
bones/154/position = Vector3(0.056066, 0.133482, 0.0432069)
|
||||
bones/154/rotation = Quaternion(0.122201, -0.24275, 0.0116683, 0.962291)
|
||||
bones/155/position = Vector3(0.0729227, 0.156904, 0.0137346)
|
||||
bones/155/rotation = Quaternion(0.122201, -0.24275, 0.0116683, 0.962291)
|
||||
bones/156/position = Vector3(0.0836328, 0.158995, -0.011929)
|
||||
bones/156/rotation = Quaternion(0.122201, -0.24275, 0.0116683, 0.962291)
|
||||
bones/157/position = Vector3(0.101089, 0.123116, -0.0425435)
|
||||
bones/157/rotation = Quaternion(0.122201, -0.24275, 0.0116683, 0.962291)
|
||||
bones/158/position = Vector3(0.0538709, 0.129498, -0.0710923)
|
||||
bones/158/rotation = Quaternion(0.122201, -0.24275, 0.0116683, 0.962291)
|
||||
bones/159/position = Vector3(-0.114849, 0.0663873, -0.0509387)
|
||||
bones/159/rotation = Quaternion(0.0315606, 0.0252782, -0.315803, 0.947963)
|
||||
bones/160/position = Vector3(-0.107093, 0.120103, -0.0514104)
|
||||
bones/160/rotation = Quaternion(0.0315606, 0.0252782, -0.315803, 0.947963)
|
||||
bones/161/position = Vector3(-0.102978, 0.126402, 0.0405153)
|
||||
bones/161/rotation = Quaternion(0.0315606, 0.0252782, -0.315803, 0.947963)
|
||||
bones/162/position = Vector3(-0.125112, 0.0591295, 0.0369137)
|
||||
bones/162/rotation = Quaternion(0.0315606, 0.0252782, -0.315803, 0.947963)
|
||||
bones/163/position = Vector3(-0.0484435, 0.0767409, 0.0930067)
|
||||
bones/164/position = Vector3(-0.0692514, 0.00983942, 0.090501)
|
||||
bones/165/position = Vector3(-0.0464268, 0.143048, 0.05757)
|
||||
bones/165/rotation = Quaternion(0.0315606, 0.0252782, -0.315803, 0.947963)
|
||||
bones/166/position = Vector3(-0.0634142, 0.182659, 0.0205226)
|
||||
bones/166/rotation = Quaternion(0.0315606, 0.0252782, -0.315803, 0.947963)
|
||||
bones/167/position = Vector3(-0.0564913, 0.197304, -0.0179697)
|
||||
bones/167/rotation = Quaternion(0.0315606, 0.0252782, -0.315803, 0.947963)
|
||||
bones/168/position = Vector3(-0.0579478, 0.193984, -0.0456202)
|
||||
bones/168/rotation = Quaternion(0.0315606, 0.0252782, -0.315803, 0.947963)
|
||||
bones/169/position = Vector3(-0.089663, 0.164595, -0.0638262)
|
||||
bones/169/rotation = Quaternion(0.0315606, 0.0252782, -0.315803, 0.947963)
|
||||
bones/170/position = Vector3(-0.0564422, 0.148014, -0.0744984)
|
||||
bones/170/rotation = Quaternion(0.0315606, 0.0252782, -0.315803, 0.947963)
|
||||
bones/171/rotation = Quaternion(0.88392, -0.0553142, -0.226291, 0.405486)
|
||||
bones/171/scale = Vector3(0.999998, 0.999997, 1.00001)
|
||||
bones/172/position = Vector3(3.62338e-10, 0.531431, 3.56619e-08)
|
||||
bones/172/rotation = Quaternion(0.231705, -3.96115e-06, -6.79493e-07, 0.972786)
|
||||
bones/172/rotation = Quaternion(0.200098, 6.02713e-08, 3.36634e-08, 0.979776)
|
||||
bones/172/scale = Vector3(1, 0.999998, 1.00001)
|
||||
bones/173/position = Vector3(6.48577e-09, 0.418112, 8.79831e-08)
|
||||
bones/173/rotation = Quaternion(-0.351933, -0.0233418, 0.0533289, 0.934213)
|
||||
bones/173/rotation = Quaternion(-0.347174, -0.00263275, 0.00592214, 0.937778)
|
||||
bones/173/scale = Vector3(1, 0.999992, 0.999996)
|
||||
bones/174/rotation = Quaternion(-0.388439, -1.7287e-07, -1.04265e-07, 0.921475)
|
||||
bones/175/position = Vector3(1.16517e-08, 0.418112, 8.45817e-08)
|
||||
bones/175/rotation = Quaternion(-0.729188, -0.014804, 0.0140502, 0.684009)
|
||||
bones/175/rotation = Quaternion(-0.727948, -0.00165749, 0.00155503, 0.685628)
|
||||
bones/175/scale = Vector3(1, 1, 1)
|
||||
bones/176/position = Vector3(1.15382e-08, 0.531431, 3.0748e-08)
|
||||
bones/176/rotation = Quaternion(-0.657024, -1.13106e-06, -1.88299e-06, 0.75387)
|
||||
bones/176/scale = Vector3(1, 1.00727, 1)
|
||||
bones/177/rotation = Quaternion(0.932579, 0.0765598, -0.123127, 0.330569)
|
||||
bones/176/rotation = Quaternion(-0.66914, -1.15438e-08, -1.84286e-07, 0.743137)
|
||||
bones/176/scale = Vector3(1, 1.00433, 1)
|
||||
bones/177/rotation = Quaternion(0.931697, -0.189264, 0.148462, 0.272174)
|
||||
bones/177/scale = Vector3(1, 0.999998, 1.00001)
|
||||
bones/178/position = Vector3(2.73163e-08, 0.531431, 1.20327e-09)
|
||||
bones/178/rotation = Quaternion(0.236746, -6.00452e-07, -1.17628e-07, 0.971572)
|
||||
bones/178/rotation = Quaternion(0.330004, 7.43471e-07, 6.51879e-08, 0.94398)
|
||||
bones/178/scale = Vector3(1, 0.999999, 1.00001)
|
||||
bones/179/position = Vector3(8.4155e-09, 0.418112, 3.97981e-07)
|
||||
bones/179/rotation = Quaternion(-0.314248, 0.00136942, -0.0970126, 0.94437)
|
||||
bones/179/rotation = Quaternion(-0.398044, -0.00465099, -0.142501, 0.906219)
|
||||
bones/179/scale = Vector3(1, 0.99999, 0.999998)
|
||||
bones/180/rotation = Quaternion(-0.606948, 1.50119e-07, 1.78005e-07, 0.794742)
|
||||
bones/180/rotation = Quaternion(-0.586566, 1.53844e-07, 1.64695e-07, 0.809901)
|
||||
bones/181/position = Vector3(2.69973e-08, 0.418112, 4.26027e-07)
|
||||
bones/181/rotation = Quaternion(-0.71957, 0.0136836, -0.0312211, 0.693583)
|
||||
bones/181/rotation = Quaternion(-0.741143, 0.0179313, -0.0467407, 0.669478)
|
||||
bones/181/scale = Vector3(1, 1, 1)
|
||||
bones/182/position = Vector3(1.89344e-08, 0.531431, -1.32203e-08)
|
||||
bones/182/rotation = Quaternion(-0.655067, -1.27296e-07, -5.17688e-08, 0.755571)
|
||||
bones/182/scale = Vector3(1, 1.00784, 1)
|
||||
bones/182/rotation = Quaternion(-0.617551, 2.79398e-07, 5.06008e-07, 0.786531)
|
||||
bones/182/scale = Vector3(1, 1.02465, 1)
|
||||
|
||||
[node name="BoneFlipper" type="SkeletonModifier3D" parent="Model/Armature/Skeleton3D" index="0"]
|
||||
_import_path = NodePath("")
|
||||
@@ -488,7 +488,7 @@ libraries = {
|
||||
&"batrix_gp_generic": ExtResource("7_oprun")
|
||||
}
|
||||
|
||||
[node name="PlayerAnimator" type="AnimationTree" parent="." node_paths=PackedStringArray("_player", "_attack", "_bone_flipper", "_sfx_audio_player", "_hurt_particles")]
|
||||
[node name="PlayerAnimator" type="AnimationTree" parent="." node_paths=PackedStringArray("_player", "_attack", "_bone_flipper", "_sfx_audio_player", "_hurt_particles", "_footsteps_player")]
|
||||
process_priority = 10
|
||||
process_physics_priority = 10
|
||||
root_node = NodePath("../Model")
|
||||
@@ -508,6 +508,7 @@ _attack = NodePath("../Attack")
|
||||
_bone_flipper = NodePath("../Model/Armature/Skeleton3D/BoneFlipper")
|
||||
_sfx_audio_player = NodePath("../Audio/SFXPlayer")
|
||||
_hurt_particles = NodePath("../Effects/HurtParticles")
|
||||
_footsteps_player = NodePath("../Audio/FootstepsPlayer")
|
||||
_hurt_sound = SubResource("AudioStreamRandomizer_fulsm")
|
||||
_hit_sounds = Array[AudioStream]([ExtResource("11_l71n6"), SubResource("AudioStreamRandomizer_wqfne"), SubResource("AudioStreamRandomizer_ke2ow")])
|
||||
_swing_sounds = SubResource("AudioStreamRandomizer_dt7fs")
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
class_name FootstepsPlayer
|
||||
extends AudioStreamPlayer3D
|
||||
|
||||
@export var _footsteps: AudioStream
|
||||
|
||||
var can_play: bool = true
|
||||
|
||||
@onready var _polyphonic := get_stream_playback() as AudioStreamPlaybackPolyphonic
|
||||
|
||||
|
||||
@@ -11,4 +14,5 @@ func _ready() -> void:
|
||||
|
||||
|
||||
func play_footstep() -> void:
|
||||
_polyphonic.play_stream(_footsteps)
|
||||
if can_play:
|
||||
_polyphonic.play_stream(_footsteps)
|
||||
|
||||
@@ -6,6 +6,7 @@ extends AnimationTree
|
||||
@export var _bone_flipper: BoneFlipper
|
||||
@export var _sfx_audio_player: AudioStreamPlayer3D
|
||||
@export var _hurt_particles: GPUParticles3D
|
||||
@export var _footsteps_player: FootstepsPlayer
|
||||
|
||||
@export_group("Audio")
|
||||
@export var _hurt_sound: AudioStream
|
||||
@@ -32,6 +33,7 @@ func _ready() -> void:
|
||||
|
||||
|
||||
func _process(_delta: float) -> void:
|
||||
_footsteps_player.can_play = _player.is_on_floor()
|
||||
_bone_flipper.flip = _is_left()
|
||||
var has_input_prev := _has_input
|
||||
|
||||
|
||||
Reference in New Issue
Block a user