add damage sound and normalize footsteps
This commit is contained in:
@@ -1 +1,5 @@
|
||||
footsteps: Univers Sons - Raricussions
|
||||
Univers Sons - Raricussions
|
||||
- footsteps
|
||||
|
||||
The Hollywood Edge The Super Single Volume 1
|
||||
- player\player_hurt.wav
|
||||
|
||||
Binary file not shown.
@@ -17,7 +17,7 @@ force/mono=false
|
||||
force/max_rate=false
|
||||
force/max_rate_hz=44100
|
||||
edit/trim=true
|
||||
edit/normalize=true
|
||||
edit/normalize=false
|
||||
edit/loop_mode=0
|
||||
edit/loop_begin=0
|
||||
edit/loop_end=-1
|
||||
|
||||
Binary file not shown.
@@ -17,7 +17,7 @@ force/mono=false
|
||||
force/max_rate=false
|
||||
force/max_rate_hz=44100
|
||||
edit/trim=true
|
||||
edit/normalize=true
|
||||
edit/normalize=false
|
||||
edit/loop_mode=0
|
||||
edit/loop_begin=0
|
||||
edit/loop_end=-1
|
||||
|
||||
Binary file not shown.
@@ -17,7 +17,7 @@ force/mono=false
|
||||
force/max_rate=false
|
||||
force/max_rate_hz=44100
|
||||
edit/trim=true
|
||||
edit/normalize=true
|
||||
edit/normalize=false
|
||||
edit/loop_mode=0
|
||||
edit/loop_begin=0
|
||||
edit/loop_end=-1
|
||||
|
||||
Binary file not shown.
@@ -17,7 +17,7 @@ force/mono=false
|
||||
force/max_rate=false
|
||||
force/max_rate_hz=44100
|
||||
edit/trim=true
|
||||
edit/normalize=true
|
||||
edit/normalize=false
|
||||
edit/loop_mode=0
|
||||
edit/loop_begin=0
|
||||
edit/loop_end=-1
|
||||
|
||||
Binary file not shown.
@@ -17,7 +17,7 @@ force/mono=false
|
||||
force/max_rate=false
|
||||
force/max_rate_hz=44100
|
||||
edit/trim=true
|
||||
edit/normalize=true
|
||||
edit/normalize=false
|
||||
edit/loop_mode=0
|
||||
edit/loop_begin=0
|
||||
edit/loop_end=-1
|
||||
|
||||
Binary file not shown.
@@ -17,7 +17,7 @@ force/mono=false
|
||||
force/max_rate=false
|
||||
force/max_rate_hz=44100
|
||||
edit/trim=true
|
||||
edit/normalize=true
|
||||
edit/normalize=false
|
||||
edit/loop_mode=0
|
||||
edit/loop_begin=0
|
||||
edit/loop_end=-1
|
||||
|
||||
Binary file not shown.
@@ -17,7 +17,7 @@ force/mono=false
|
||||
force/max_rate=false
|
||||
force/max_rate_hz=44100
|
||||
edit/trim=true
|
||||
edit/normalize=true
|
||||
edit/normalize=false
|
||||
edit/loop_mode=0
|
||||
edit/loop_begin=0
|
||||
edit/loop_end=-1
|
||||
|
||||
Binary file not shown.
@@ -17,7 +17,7 @@ force/mono=false
|
||||
force/max_rate=false
|
||||
force/max_rate_hz=44100
|
||||
edit/trim=true
|
||||
edit/normalize=true
|
||||
edit/normalize=false
|
||||
edit/loop_mode=0
|
||||
edit/loop_begin=0
|
||||
edit/loop_end=-1
|
||||
|
||||
Binary file not shown.
@@ -17,7 +17,7 @@ force/mono=false
|
||||
force/max_rate=false
|
||||
force/max_rate_hz=44100
|
||||
edit/trim=true
|
||||
edit/normalize=true
|
||||
edit/normalize=false
|
||||
edit/loop_mode=0
|
||||
edit/loop_begin=0
|
||||
edit/loop_end=-1
|
||||
|
||||
BIN
assets/sfx/player/player_hurt.wav
LFS
Normal file
BIN
assets/sfx/player/player_hurt.wav
LFS
Normal file
Binary file not shown.
24
assets/sfx/player/player_hurt.wav.import
Normal file
24
assets/sfx/player/player_hurt.wav.import
Normal file
@@ -0,0 +1,24 @@
|
||||
[remap]
|
||||
|
||||
importer="wav"
|
||||
type="AudioStreamWAV"
|
||||
uid="uid://d3mrapl1f6gx2"
|
||||
path="res://.godot/imported/player_hurt.wav-d39b0764aabb5674dd7d779096d453e5.sample"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/sfx/player/player_hurt.wav"
|
||||
dest_files=["res://.godot/imported/player_hurt.wav-d39b0764aabb5674dd7d779096d453e5.sample"]
|
||||
|
||||
[params]
|
||||
|
||||
force/8_bit=false
|
||||
force/mono=false
|
||||
force/max_rate=false
|
||||
force/max_rate_hz=44100
|
||||
edit/trim=true
|
||||
edit/normalize=false
|
||||
edit/loop_mode=0
|
||||
edit/loop_begin=0
|
||||
edit/loop_end=-1
|
||||
compress/mode=2
|
||||
@@ -1,4 +1,4 @@
|
||||
[gd_scene load_steps=33 format=3 uid="uid://b73y71y3efmv"]
|
||||
[gd_scene load_steps=35 format=3 uid="uid://b73y71y3efmv"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bvvmaqn1fp6nq" 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"]
|
||||
@@ -12,6 +12,7 @@
|
||||
[ext_resource type="Script" uid="uid://bmbbkpkqtugwy" path="res://scripts/effects/bones/bone_flipper.gd" id="6_oprun"]
|
||||
[ext_resource type="AnimationLibrary" uid="uid://d32ucj640bbrw" path="res://assets/models/characters/batrix/animations/batrix_gp_generic.gltf" id="7_oprun"]
|
||||
[ext_resource type="PackedScene" uid="uid://c8gqrealje3o" path="res://scenes/effects/shadow_decal.tscn" id="9_vgb3d"]
|
||||
[ext_resource type="AudioStream" uid="uid://d3mrapl1f6gx2" path="res://assets/sfx/player/player_hurt.wav" id="10_qfm1y"]
|
||||
[ext_resource type="Script" uid="uid://bxsmma3kjo381" path="res://scripts/effects/player_attack_effect.gd" id="11_1cf3j"]
|
||||
[ext_resource type="Material" uid="uid://db5evkae3bexe" path="res://resources/materials/effects/player_attack_aim_mat.tres" id="12_a8ls1"]
|
||||
[ext_resource type="Script" uid="uid://co53auoisxyke" path="res://scripts/audio/footsteps_player.gd" id="13_6nytf"]
|
||||
@@ -98,6 +99,8 @@ is_hemisphere = true
|
||||
|
||||
[sub_resource type="AudioStreamPolyphonic" id="AudioStreamPolyphonic_oprun"]
|
||||
|
||||
[sub_resource type="AudioStreamPolyphonic" id="AudioStreamPolyphonic_qfm1y"]
|
||||
|
||||
[node name="Player" type="CharacterBody3D"]
|
||||
collision_layer = 16
|
||||
script = ExtResource("1_xt3i8")
|
||||
@@ -107,57 +110,57 @@ _collision_debug_material = ExtResource("2_0p422")
|
||||
[node name="Model" parent="." instance=ExtResource("3_f1ej7")]
|
||||
|
||||
[node name="Skeleton3D" parent="Model/Armature" index="0"]
|
||||
bones/0/position = Vector3(-0.550888, 1.05554, -0.0248769)
|
||||
bones/0/rotation = Quaternion(0.661176, -0.150411, -0.72251, -0.134914)
|
||||
bones/0/position = Vector3(-0.530862, 0.988051, -0.104997)
|
||||
bones/0/rotation = Quaternion(0.725798, -0.0719796, -0.681144, -0.0638705)
|
||||
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.0548933, 0.945016, -0.0321123)
|
||||
bones/4/rotation = Quaternion(0.201464, 0.012399, 0.108991, 0.973334)
|
||||
bones/4/position = Vector3(-0.00845796, 0.920658, -0.0360087)
|
||||
bones/4/rotation = Quaternion(0.229705, -0.22598, 0.0112936, 0.946594)
|
||||
bones/5/position = Vector3(6.05363e-09, 0.111695, -8.19564e-08)
|
||||
bones/5/rotation = Quaternion(0.075093, -0.213088, 0.0637649, 0.972054)
|
||||
bones/6/rotation = Quaternion(-0.418363, -0.157945, 0.0356329, 0.893731)
|
||||
bones/7/rotation = Quaternion(0.348519, 0.0200955, -0.311439, 0.883819)
|
||||
bones/8/rotation = Quaternion(-0.242975, 0.354407, 0.0978342, 0.897657)
|
||||
bones/5/rotation = Quaternion(0.0691629, -0.163643, 0.146894, 0.973067)
|
||||
bones/6/rotation = Quaternion(-0.418819, -0.145485, 0.0298038, 0.895844)
|
||||
bones/7/rotation = Quaternion(0.333193, 0.2248, -0.288389, 0.869068)
|
||||
bones/8/rotation = Quaternion(-0.164957, 0.341396, 0.087328, 0.921201)
|
||||
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.00921998, 6.69917e-08, -0.00588973)
|
||||
bones/11/scale = Vector3(1, 1, 1)
|
||||
bones/11/position = Vector3(-0.0104284, -1.76422e-08, -0.00781871)
|
||||
bones/11/scale = Vector3(1.2326, 1, 1)
|
||||
bones/12/position = Vector3(-0.00823868, 6.83734e-08, -0.0102097)
|
||||
bones/13/position = Vector3(-0.0195011, 1.09949e-07, 0.00592734)
|
||||
bones/13/scale = Vector3(1, 1, 1)
|
||||
bones/14/position = Vector3(-0.0322902, 1.92953e-07, -0.00263729)
|
||||
bones/14/scale = Vector3(1, 1, 1)
|
||||
bones/13/position = Vector3(-0.0231009, -1.26374e-07, -0.000485126)
|
||||
bones/13/scale = Vector3(1.2326, 1, 0.620591)
|
||||
bones/14/position = Vector3(-0.0388648, -3.65015e-08, -0.00580034)
|
||||
bones/14/scale = Vector3(1.2326, 1, 0.620591)
|
||||
bones/15/position = Vector3(-0.0186913, 1.4579e-07, -0.0116523)
|
||||
bones/16/position = Vector3(0.0137039, -2.24153e-08, 0.0155367)
|
||||
bones/16/scale = Vector3(1, 1, 1)
|
||||
bones/17/position = Vector3(0.0271834, 2.99134e-08, 0.0072774)
|
||||
bones/17/scale = Vector3(1, 1, 1)
|
||||
bones/16/position = Vector3(0.0178276, 7.90989e-08, 0.00547782)
|
||||
bones/16/scale = Vector3(1.2326, 1, 0.620591)
|
||||
bones/17/position = Vector3(0.0344424, 2.57807e-08, 0.000352207)
|
||||
bones/17/scale = Vector3(1.2326, 1, 1)
|
||||
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.0451417, 0.076361, 0.0934967)
|
||||
bones/21/position = Vector3(0.0451344, 0.0764403, 0.0935013)
|
||||
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.0443014, 0.0755769, 0.0940306)
|
||||
bones/25/position = Vector3(-0.0442944, 0.0756561, 0.0940351)
|
||||
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.0389999, -0.536935, 0.841491, 0.0455329)
|
||||
bones/30/rotation = Quaternion(-0.0800589, -0.0102882, -0.114405, 0.99015)
|
||||
bones/29/rotation = Quaternion(0.0404638, -0.509212, 0.85855, 0.0442371)
|
||||
bones/30/rotation = Quaternion(0.0499299, -0.0206308, -0.0903523, 0.994443)
|
||||
bones/31/rotation = Quaternion(0.00282337, 0.992799, -0.117349, -0.0238866)
|
||||
bones/32/rotation = Quaternion(0.606462, -1.1568e-07, -1.28859e-06, 0.795113)
|
||||
bones/32/rotation = Quaternion(0.580699, -7.42462e-08, -1.28985e-06, 0.814118)
|
||||
bones/33/rotation = Quaternion(-0.0342351, -3.5846e-07, 8.54711e-08, 0.999414)
|
||||
bones/35/rotation = Quaternion(0.396693, -0.106301, 0.394204, 0.822154)
|
||||
bones/36/rotation = Quaternion(-0.678361, 3.00306e-07, 4.95419e-07, 0.734729)
|
||||
bones/37/rotation = Quaternion(0.0376763, -0.0877554, 0.262055, 0.960316)
|
||||
bones/38/rotation = Quaternion(-0.576665, 3.41985e-07, 9.7932e-07, 0.816981)
|
||||
bones/35/rotation = Quaternion(0.373011, -0.0833798, 0.316104, 0.868325)
|
||||
bones/36/rotation = Quaternion(-0.288595, 4.82974e-07, 3.00429e-07, 0.957451)
|
||||
bones/37/rotation = Quaternion(-0.0897788, -0.103299, 0.147213, 0.97959)
|
||||
bones/38/rotation = Quaternion(-0.316966, 5.98834e-07, 8.30742e-07, 0.948437)
|
||||
bones/39/rotation = Quaternion(0.197471, 0.678974, 0.678974, -0.19747)
|
||||
bones/39/scale = Vector3(1, 1, 1)
|
||||
bones/41/position = Vector3(0.0180251, 0.000225291, -0.00384237)
|
||||
bones/41/rotation = Quaternion(-4.92163e-09, 0.00738521, -1.15962e-07, 0.999973)
|
||||
bones/39/scale = Vector3(1.14294, 1, 0.839917)
|
||||
bones/41/position = Vector3(0.0139192, 0.000225329, -0.00384292)
|
||||
bones/41/rotation = Quaternion(2.32454e-08, -0.00598613, -1.36913e-07, 0.999982)
|
||||
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)
|
||||
@@ -165,9 +168,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, 1, 1)
|
||||
bones/50/position = Vector3(-0.0128968, 0.000225284, -0.00485495)
|
||||
bones/50/rotation = Quaternion(-8.49574e-09, 0.00898854, 1.32733e-07, 0.99996)
|
||||
bones/48/scale = Vector3(1.14294, 1, 0.744515)
|
||||
bones/50/position = Vector3(-0.0170028, 0.000225411, -0.00485537)
|
||||
bones/50/rotation = Quaternion(1.248e-08, -0.00728642, 6.79947e-08, 0.999973)
|
||||
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)
|
||||
@@ -175,16 +178,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.27652, -0.0709692, -0.675596, 0.679757)
|
||||
bones/58/rotation = Quaternion(0.723183, 0.0729468, -0.23259, 0.646209)
|
||||
bones/57/rotation = Quaternion(0.259143, -0.020929, -0.729309, 0.632863)
|
||||
bones/58/rotation = Quaternion(0.582799, 0.102508, -0.30524, 0.7461)
|
||||
bones/58/scale = Vector3(1, 1, 1)
|
||||
bones/59/position = Vector3(-6.48675e-08, 0.336971, -1.04631e-07)
|
||||
bones/59/rotation = Quaternion(0.368741, -0.25162, -0.0855501, 0.890729)
|
||||
bones/59/position = Vector3(-2.69785e-07, 0.290535, 2.31687e-07)
|
||||
bones/59/rotation = Quaternion(0.427087, -0.0577286, -0.102134, 0.896567)
|
||||
bones/59/scale = Vector3(1, 1, 1)
|
||||
bones/60/rotation = Quaternion(0.00106878, -0.213992, 0.000234115, 0.976835)
|
||||
bones/60/rotation = Quaternion(0.00105993, -0.248163, 0.000271588, 0.968718)
|
||||
bones/60/scale = Vector3(1, 1, 1)
|
||||
bones/61/position = Vector3(-2.65539e-08, 0.0447288, -9.78086e-05)
|
||||
bones/61/rotation = Quaternion(-0.195287, -0.257466, 0.100015, 0.941048)
|
||||
bones/61/position = Vector3(3.0244e-08, 0.0480112, -0.000105048)
|
||||
bones/61/rotation = Quaternion(-0.279606, -0.351515, 0.110733, 0.886564)
|
||||
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)
|
||||
@@ -229,28 +232,28 @@ 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(-5.09631e-08, 0.0447288, -9.78961e-05)
|
||||
bones/95/rotation = Quaternion(-0.768221, -0.128118, -0.0569307, 0.624644)
|
||||
bones/95/position = Vector3(2.02063e-08, 0.0480111, -0.000105074)
|
||||
bones/95/rotation = Quaternion(-0.789962, -0.168004, -0.0882123, 0.583055)
|
||||
bones/95/scale = Vector3(1, 1, 1)
|
||||
bones/96/position = Vector3(-4.25694e-08, 0.336971, -1.10802e-07)
|
||||
bones/96/rotation = Quaternion(-0.552914, -0.0603068, -0.122636, 0.821955)
|
||||
bones/96/scale = Vector3(1, 1.06708, 1)
|
||||
bones/96/position = Vector3(-2.36417e-07, 0.290535, 2.69043e-07)
|
||||
bones/96/rotation = Quaternion(-0.532998, 0.0161485, -0.0580425, 0.843969)
|
||||
bones/96/scale = Vector3(1, 1.07444, 1)
|
||||
bones/97/position = Vector3(-0.00645471, 0.000163305, -0.00321278)
|
||||
bones/97/rotation = Quaternion(0.248427, 0.0258538, -0.267814, 0.930533)
|
||||
bones/97/scale = Vector3(1, 1, 1)
|
||||
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.35866, 0.0905443, -0.0522887, 0.927594)
|
||||
bones/99/rotation = Quaternion(-0.44006, 0.12686, -0.0672892, 0.886412)
|
||||
bones/99/scale = Vector3(1, 1, 1)
|
||||
bones/100/rotation = Quaternion(0.0487202, -0.0278254, 0.473765, 0.878862)
|
||||
bones/101/rotation = Quaternion(-0.0169357, 0.533302, 0.607705, 0.588214)
|
||||
bones/100/rotation = Quaternion(0.0470818, -0.0305159, 0.522343, 0.850888)
|
||||
bones/101/rotation = Quaternion(0.0660043, 0.456709, 0.676666, 0.573745)
|
||||
bones/102/position = Vector3(6.2732e-09, 0.281682, 9.00968e-08)
|
||||
bones/102/rotation = Quaternion(0.081347, 5.13026e-05, 4.84369e-05, 0.996686)
|
||||
bones/102/rotation = Quaternion(0.00973871, 4.84424e-05, 5.21127e-05, 0.999953)
|
||||
bones/102/scale = Vector3(1, 1, 1)
|
||||
bones/103/rotation = Quaternion(0.00109636, -0.00524762, -7.67235e-06, 0.999986)
|
||||
bones/103/rotation = Quaternion(0.00109444, -0.00158144, 5.96646e-07, 0.999998)
|
||||
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.401979, -0.00918438, 0.0079096, 0.915569)
|
||||
bones/104/rotation = Quaternion(-0.431284, -0.0029662, 0.00255522, 0.902208)
|
||||
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)
|
||||
@@ -296,96 +299,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.838585, -0.00617338, -0.000481403, 0.544735)
|
||||
bones/138/rotation = Quaternion(-0.847266, -0.00200115, -0.000155373, 0.531166)
|
||||
bones/138/scale = Vector3(1, 1, 1)
|
||||
bones/139/position = Vector3(3.48513e-09, 0.281682, 1.40144e-07)
|
||||
bones/139/rotation = Quaternion(-0.677286, 2.86897e-06, 6.07292e-05, 0.73572)
|
||||
bones/139/rotation = Quaternion(-0.703217, 1.37249e-06, 5.77426e-05, 0.710975)
|
||||
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.638587, 0.00062795, 0.444843, 0.62795)
|
||||
bones/142/rotation = Quaternion(-0.603455, -0.0578369, 0.444694, 0.659351)
|
||||
bones/142/scale = Vector3(1, 1, 0.999999)
|
||||
bones/143/position = Vector3(-0.00441435, 0.109912, 0.0700499)
|
||||
bones/144/position = Vector3(0.0305766, 0.0530071, 0.0876499)
|
||||
bones/145/position = Vector3(0.049243, -0.00150251, 0.0720072)
|
||||
bones/146/position = Vector3(-0.0537644, 0.0567391, -0.103527)
|
||||
bones/147/position = Vector3(0.0786663, 0.0469097, -0.0737819)
|
||||
bones/147/rotation = Quaternion(0.110105, -0.255168, 0.0449406, 0.959555)
|
||||
bones/148/position = Vector3(0.0956207, 0.0973481, -0.0584126)
|
||||
bones/148/rotation = Quaternion(0.110105, -0.255168, 0.0449406, 0.959555)
|
||||
bones/149/position = Vector3(0.0993157, 0.0777482, 0.0157738)
|
||||
bones/149/rotation = Quaternion(0.110105, -0.255168, 0.0449406, 0.959555)
|
||||
bones/150/position = Vector3(0.100829, 0.0250831, -0.0199767)
|
||||
bones/150/rotation = Quaternion(0.110105, -0.255168, 0.0449406, 0.959555)
|
||||
bones/151/position = Vector3(0.0647507, 0.0607086, 0.0512895)
|
||||
bones/152/position = Vector3(0.083939, 0.00985414, 0.0330609)
|
||||
bones/153/position = Vector3(0.042544, 0.118014, 0.0550436)
|
||||
bones/153/rotation = Quaternion(0.110105, -0.255168, 0.0449406, 0.959555)
|
||||
bones/154/position = Vector3(0.0536542, 0.138407, 0.0445274)
|
||||
bones/154/rotation = Quaternion(0.110105, -0.255168, 0.0449406, 0.959555)
|
||||
bones/155/position = Vector3(0.070221, 0.161611, 0.0147202)
|
||||
bones/155/rotation = Quaternion(0.110105, -0.255168, 0.0449406, 0.959555)
|
||||
bones/156/position = Vector3(0.0816849, 0.163332, -0.0106436)
|
||||
bones/156/rotation = Quaternion(0.110105, -0.255168, 0.0449406, 0.959555)
|
||||
bones/157/position = Vector3(0.10045, 0.127472, -0.042412)
|
||||
bones/157/rotation = Quaternion(0.110105, -0.255168, 0.0449406, 0.959555)
|
||||
bones/158/position = Vector3(0.0490345, 0.130052, -0.0746938)
|
||||
bones/158/rotation = Quaternion(0.110105, -0.255168, 0.0449406, 0.959555)
|
||||
bones/159/position = Vector3(-0.111944, 0.0730992, -0.0133853)
|
||||
bones/159/rotation = Quaternion(0.0314105, 0.0267033, -0.333607, 0.94181)
|
||||
bones/160/position = Vector3(-0.110208, 0.127118, -0.0365544)
|
||||
bones/160/rotation = Quaternion(0.0314105, 0.0267033, -0.333607, 0.94181)
|
||||
bones/161/position = Vector3(-0.0889679, 0.129656, 0.0455753)
|
||||
bones/161/rotation = Quaternion(0.0314105, 0.0267033, -0.333607, 0.94181)
|
||||
bones/162/position = Vector3(-0.0894996, 0.0505781, 0.0536177)
|
||||
bones/162/rotation = Quaternion(0.0314105, 0.0267033, -0.333607, 0.94181)
|
||||
bones/163/position = Vector3(-0.0421836, 0.0775846, 0.0803042)
|
||||
bones/164/position = Vector3(-0.0368235, 0.0195672, 0.0895682)
|
||||
bones/165/position = Vector3(-0.0415503, 0.142235, 0.059689)
|
||||
bones/165/rotation = Quaternion(0.0314105, 0.0267033, -0.333607, 0.94181)
|
||||
bones/166/position = Vector3(-0.0612211, 0.184409, 0.0209355)
|
||||
bones/166/rotation = Quaternion(0.0314105, 0.0267033, -0.333607, 0.94181)
|
||||
bones/167/position = Vector3(-0.0541358, 0.198768, -0.0177983)
|
||||
bones/167/rotation = Quaternion(0.0314105, 0.0267033, -0.333607, 0.94181)
|
||||
bones/168/position = Vector3(-0.0558328, 0.19551, -0.0454425)
|
||||
bones/168/rotation = Quaternion(0.0314105, 0.0267033, -0.333607, 0.94181)
|
||||
bones/169/position = Vector3(-0.0887055, 0.167335, -0.0635148)
|
||||
bones/169/rotation = Quaternion(0.0314105, 0.0267033, -0.333607, 0.94181)
|
||||
bones/170/position = Vector3(-0.056176, 0.149521, -0.0743279)
|
||||
bones/170/rotation = Quaternion(0.0314105, 0.0267033, -0.333607, 0.94181)
|
||||
bones/171/rotation = Quaternion(0.899313, -0.100956, -0.172847, 0.388803)
|
||||
bones/143/position = Vector3(-0.0120245, 0.110009, 0.0701048)
|
||||
bones/144/position = Vector3(-0.00283279, 0.0521566, 0.111235)
|
||||
bones/145/position = Vector3(0.00133761, -0.0123527, 0.127408)
|
||||
bones/146/position = Vector3(-0.0146292, 0.0502574, -0.144096)
|
||||
bones/147/position = Vector3(0.115299, 0.0318349, -0.0789119)
|
||||
bones/147/rotation = Quaternion(0.135266, -0.207062, -0.0247777, 0.968615)
|
||||
bones/148/position = Vector3(0.105626, 0.0873715, -0.0589817)
|
||||
bones/148/rotation = Quaternion(0.135266, -0.207062, -0.0247777, 0.968615)
|
||||
bones/149/position = Vector3(0.0832431, 0.0629689, 0.036124)
|
||||
bones/149/rotation = Quaternion(0.135266, -0.207062, -0.0247777, 0.968615)
|
||||
bones/150/position = Vector3(0.107611, -0.00480628, 0.0130458)
|
||||
bones/150/rotation = Quaternion(0.135266, -0.207062, -0.0247777, 0.968615)
|
||||
bones/151/position = Vector3(0.0524928, 0.0584037, 0.087188)
|
||||
bones/152/position = Vector3(0.0607871, -0.00814018, 0.0891137)
|
||||
bones/153/position = Vector3(0.0369582, 0.107969, 0.0518866)
|
||||
bones/153/rotation = Quaternion(0.135266, -0.207062, -0.0247777, 0.968615)
|
||||
bones/154/position = Vector3(0.0614384, 0.128294, 0.0395365)
|
||||
bones/154/rotation = Quaternion(0.135266, -0.207062, -0.0247777, 0.968615)
|
||||
bones/155/position = Vector3(0.0771941, 0.152016, 0.00969721)
|
||||
bones/155/rotation = Quaternion(0.135266, -0.207062, -0.0247777, 0.968615)
|
||||
bones/156/position = Vector3(0.0859252, 0.154623, -0.0166594)
|
||||
bones/156/rotation = Quaternion(0.135266, -0.207062, -0.0247777, 0.968615)
|
||||
bones/157/position = Vector3(0.100988, 0.118446, -0.046784)
|
||||
bones/157/rotation = Quaternion(0.135266, -0.207062, -0.0247777, 0.968615)
|
||||
bones/158/position = Vector3(0.0576492, 0.12804, -0.0695496)
|
||||
bones/158/rotation = Quaternion(0.135266, -0.207062, -0.0247777, 0.968615)
|
||||
bones/159/position = Vector3(-0.119679, 0.0538159, -0.0699595)
|
||||
bones/159/rotation = Quaternion(0.0318237, 0.0224413, -0.280362, 0.959104)
|
||||
bones/160/position = Vector3(-0.0980273, 0.111598, -0.0728579)
|
||||
bones/160/rotation = Quaternion(0.0318237, 0.0224413, -0.280362, 0.959104)
|
||||
bones/161/position = Vector3(-0.104099, 0.120654, 0.0359309)
|
||||
bones/161/rotation = Quaternion(0.0318237, 0.0224413, -0.280362, 0.959104)
|
||||
bones/162/position = Vector3(-0.126723, 0.0616689, 0.0249862)
|
||||
bones/162/rotation = Quaternion(0.0318237, 0.0224413, -0.280362, 0.959104)
|
||||
bones/163/position = Vector3(-0.0582415, 0.0762568, 0.100326)
|
||||
bones/164/position = Vector3(-0.0755942, 0.011666, 0.113338)
|
||||
bones/165/position = Vector3(-0.0519364, 0.143017, 0.0551163)
|
||||
bones/165/rotation = Quaternion(0.0318237, 0.0224413, -0.280362, 0.959104)
|
||||
bones/166/position = Vector3(-0.0672851, 0.179076, 0.0198743)
|
||||
bones/166/rotation = Quaternion(0.0318237, 0.0224413, -0.280362, 0.959104)
|
||||
bones/167/position = Vector3(-0.0609661, 0.194164, -0.0183362)
|
||||
bones/167/rotation = Quaternion(0.0318236, 0.0224413, -0.280362, 0.959104)
|
||||
bones/168/position = Vector3(-0.061942, 0.190747, -0.0459962)
|
||||
bones/168/rotation = Quaternion(0.0318237, 0.0224413, -0.280362, 0.959104)
|
||||
bones/169/position = Vector3(-0.0912428, 0.159094, -0.0644507)
|
||||
bones/169/rotation = Quaternion(0.0318237, 0.0224413, -0.280362, 0.959104)
|
||||
bones/170/position = Vector3(-0.0567985, 0.145018, -0.0748372)
|
||||
bones/170/rotation = Quaternion(0.0318237, 0.0224413, -0.280362, 0.959104)
|
||||
bones/171/rotation = Quaternion(0.805687, 0.0995504, -0.373371, 0.448946)
|
||||
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.182429, -1.01576e-06, -4.1687e-08, 0.983219)
|
||||
bones/172/rotation = Quaternion(0.292506, -4.43425e-06, -1.04722e-06, 0.956264)
|
||||
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.403608, -0.0018631, 0.00322081, 0.914925)
|
||||
bones/173/rotation = Quaternion(-0.390892, -0.0163002, 0.041928, 0.919336)
|
||||
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.742396, -0.00103996, 0.000786517, 0.66996)
|
||||
bones/175/rotation = Quaternion(-0.739155, -0.0109652, 0.0113144, 0.673351)
|
||||
bones/175/scale = Vector3(1, 1, 1)
|
||||
bones/176/position = Vector3(1.15382e-08, 0.531431, 3.0748e-08)
|
||||
bones/176/rotation = Quaternion(-0.675801, -3.78665e-07, -6.30909e-07, 0.737084)
|
||||
bones/176/scale = Vector3(1, 1.00311, 1)
|
||||
bones/177/rotation = Quaternion(0.918336, -0.222452, 0.20671, 0.253859)
|
||||
bones/176/rotation = Quaternion(-0.632948, -1.1568e-06, -2.15648e-06, 0.774194)
|
||||
bones/176/scale = Vector3(1, 1.0163, 1)
|
||||
bones/177/rotation = Quaternion(0.948234, -0.0732697, -0.0219717, 0.308222)
|
||||
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.311673, 3.35557e-06, 9.30442e-07, 0.950189)
|
||||
bones/178/rotation = Quaternion(0.34746, 1.48858e-06, 3.54615e-07, 0.937695)
|
||||
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.363903, -0.00623498, -0.145, 0.92006)
|
||||
bones/179/rotation = Quaternion(-0.496099, 0.00197433, -0.110447, 0.86121)
|
||||
bones/179/scale = Vector3(1, 0.99999, 0.999998)
|
||||
bones/180/rotation = Quaternion(-0.607671, 1.51412e-07, 1.85934e-07, 0.794189)
|
||||
bones/180/rotation = Quaternion(-0.511086, 1.57037e-07, 1.50203e-07, 0.85953)
|
||||
bones/181/position = Vector3(2.69973e-08, 0.418112, 4.26027e-07)
|
||||
bones/181/rotation = Quaternion(-0.73238, 0.017772, -0.0477988, 0.678984)
|
||||
bones/181/rotation = Quaternion(-0.766362, 0.0156935, -0.0354446, 0.641239)
|
||||
bones/181/scale = Vector3(1, 1, 1)
|
||||
bones/182/position = Vector3(1.89344e-08, 0.531431, -1.32203e-08)
|
||||
bones/182/rotation = Quaternion(-0.625133, 7.89168e-07, 1.8051e-06, 0.780518)
|
||||
bones/182/scale = Vector3(1, 1.02027, 1)
|
||||
bones/182/rotation = Quaternion(-0.610228, 4.22834e-07, 9.47307e-07, 0.792226)
|
||||
bones/182/scale = Vector3(1, 1.0294, 1)
|
||||
|
||||
[node name="BoneFlipper" type="SkeletonModifier3D" parent="Model/Armature/Skeleton3D" index="0"]
|
||||
_import_path = NodePath("")
|
||||
@@ -466,6 +469,7 @@ parameters/run->idle_oneshot/active = false
|
||||
parameters/run->idle_oneshot/internal_active = false
|
||||
parameters/run->idle_oneshot/request = 0
|
||||
script = ExtResource("4_adlgp")
|
||||
_hurt_sound = ExtResource("10_qfm1y")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.9, 0)
|
||||
@@ -517,4 +521,12 @@ attenuation_filter_cutoff_hz = 20500.0
|
||||
script = ExtResource("13_6nytf")
|
||||
_footsteps = ExtResource("14_yabal")
|
||||
|
||||
[node name="ScriptSFXPlayer" type="AudioStreamPlayer3D" parent="Audio"]
|
||||
stream = SubResource("AudioStreamPolyphonic_qfm1y")
|
||||
attenuation_model = 3
|
||||
autoplay = true
|
||||
panning_strength = 0.0
|
||||
bus = &"SFX"
|
||||
attenuation_filter_cutoff_hz = 20500.0
|
||||
|
||||
[editable path="Model"]
|
||||
|
||||
@@ -1,18 +1,29 @@
|
||||
extends AnimationTree
|
||||
|
||||
@export_group("Audio")
|
||||
@export var _hurt_sound: AudioStream
|
||||
|
||||
var _speed: float
|
||||
var _has_input: bool
|
||||
|
||||
var _sfx_audio_playback_polyphonic: AudioStreamPlaybackPolyphonic
|
||||
|
||||
@onready var _player: Player = $"../" as Player
|
||||
@onready var _attack: PlayerAttack = $"../Attack" as PlayerAttack
|
||||
@onready var _bone_flipper: BoneFlipper = $"../Model/Armature/Skeleton3D/BoneFlipper"
|
||||
|
||||
@onready var _sfx_audio_player: AudioStreamPlayer3D = $"../Audio/ScriptSFXPlayer"
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
assert(_player, "_player missing!")
|
||||
Music.track_started.connect(_on_music_track_started)
|
||||
_set_bpm()
|
||||
_attack.attacked.connect(_on_attack_attacked)
|
||||
_sfx_audio_playback_polyphonic = (
|
||||
_sfx_audio_player.get_stream_playback() as AudioStreamPlaybackPolyphonic
|
||||
)
|
||||
_player.stats.damaged.connect(_on_stats_damaged)
|
||||
|
||||
|
||||
func _process(_delta: float) -> void:
|
||||
@@ -48,6 +59,10 @@ func _is_left() -> bool:
|
||||
return _attack.side == PlayerAttack.Side.LEFT
|
||||
|
||||
|
||||
func _play_sound(stream: AudioStream) -> void:
|
||||
_sfx_audio_playback_polyphonic.play_stream(stream)
|
||||
|
||||
|
||||
func _set_bpm() -> void:
|
||||
set(&"parameters/main_time_scale/scale", Music.bpm_factor)
|
||||
|
||||
@@ -67,5 +82,9 @@ func _on_attack_attacked() -> void:
|
||||
set(&"parameters/hit_oneshot/request", AnimationNodeOneShot.ONE_SHOT_REQUEST_FIRE)
|
||||
|
||||
|
||||
func _on_stats_damaged() -> void:
|
||||
_play_sound(_hurt_sound)
|
||||
|
||||
|
||||
func _on_music_track_started() -> void:
|
||||
_set_bpm()
|
||||
|
||||
Reference in New Issue
Block a user