Added voice audio
This commit is contained in:
@ -3,10 +3,12 @@ extends Node
|
||||
|
||||
var state: StateComponent
|
||||
var animation: AnimationComponent
|
||||
var voice: VoiceComponent
|
||||
|
||||
func _enter_tree():
|
||||
state = get_parent().get_node("State") as StateComponent
|
||||
animation = get_parent().get_node("Animation") as AnimationComponent
|
||||
voice = get_parent().get_node("Voice") as VoiceComponent
|
||||
state.current = StateComponent.State.Skill
|
||||
|
||||
func end():
|
||||
|
@ -1,6 +1,9 @@
|
||||
extends AreaSkillInstance
|
||||
|
||||
@export var voice_audio: AudioStream
|
||||
|
||||
func _ready():
|
||||
animation.play("human/slash", 1.7)
|
||||
voice.play(voice_audio)
|
||||
await area_damage(0.5, 0.1, 0.2)
|
||||
end()
|
@ -1,24 +1,12 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://bhy50ngwxib3i"]
|
||||
[gd_scene load_steps=4 format=3 uid="uid://bhy50ngwxib3i"]
|
||||
|
||||
[ext_resource type="Script" path="res://skill/slash/slash.gd" id="1_dbiye"]
|
||||
[ext_resource type="AudioStream" uid="uid://i2yim7wiuukw" path="res://skill/slash/slash_voice.tres" id="2_ldjss"]
|
||||
[ext_resource type="PackedScene" uid="uid://f1keiecsx5kw" path="res://skill/melee_area.tscn" id="2_q0v6t"]
|
||||
[ext_resource type="AudioStream" uid="uid://cu5t5y3qadjd7" path="res://assets/audio/voices/swordwoman/swordwoman-special1-tempo-170.wav" id="3_uxa2s"]
|
||||
|
||||
[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_rkutr"]
|
||||
random_pitch = 1.05
|
||||
random_volume_offset_db = 2.0
|
||||
streams_count = 1
|
||||
stream_0/stream = ExtResource("3_uxa2s")
|
||||
stream_0/weight = 1.0
|
||||
|
||||
[node name="Slash" type="Node3D"]
|
||||
script = ExtResource("1_dbiye")
|
||||
voice_audio = ExtResource("2_ldjss")
|
||||
|
||||
[node name="Area" parent="." instance=ExtResource("2_q0v6t")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1.8)
|
||||
|
||||
[node name="Voice" type="AudioStreamPlayer3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.5, 0)
|
||||
stream = SubResource("AudioStreamRandomizer_rkutr")
|
||||
autoplay = true
|
||||
bus = &"Voices"
|
||||
|
10
client/skill/slash/slash_voice.tres
Normal file
10
client/skill/slash/slash_voice.tres
Normal file
@ -0,0 +1,10 @@
|
||||
[gd_resource type="AudioStreamRandomizer" load_steps=2 format=3 uid="uid://i2yim7wiuukw"]
|
||||
|
||||
[ext_resource type="AudioStream" uid="uid://cu5t5y3qadjd7" path="res://assets/audio/voices/swordwoman/swordwoman-special1-tempo-170.wav" id="1_cowgf"]
|
||||
|
||||
[resource]
|
||||
random_pitch = 1.05
|
||||
random_volume_offset_db = 1.0
|
||||
streams_count = 1
|
||||
stream_0/stream = ExtResource("1_cowgf")
|
||||
stream_0/weight = 1.0
|
@ -1,6 +1,9 @@
|
||||
extends AreaSkillInstance
|
||||
|
||||
@export var voice_audio: AudioStream
|
||||
|
||||
func _ready():
|
||||
animation.play("human/spin", 2.0)
|
||||
voice.play(voice_audio)
|
||||
await area_damage(0.5, 0.1, 0.4)
|
||||
end()
|
@ -1,27 +1,12 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://bhrlgrleih7d0"]
|
||||
[gd_scene load_steps=4 format=3 uid="uid://bhrlgrleih7d0"]
|
||||
|
||||
[ext_resource type="Script" path="res://skill/spin/spin.gd" id="1_p5jmv"]
|
||||
[ext_resource type="AudioStream" uid="uid://bwgmlkkxqbxoh" path="res://skill/spin/spin_voice.tres" id="2_bjl2j"]
|
||||
[ext_resource type="PackedScene" uid="uid://f1keiecsx5kw" path="res://skill/melee_area.tscn" id="2_fjxc1"]
|
||||
[ext_resource type="AudioStream" uid="uid://t7ewt5tv8opw" path="res://assets/audio/voices/swordwoman/swordwoman-attack1.mp3" id="3_8hb6m"]
|
||||
[ext_resource type="AudioStream" uid="uid://butmelbywp6iy" path="res://assets/audio/voices/swordwoman/swordwoman-attack2.mp3" id="4_j0bb6"]
|
||||
|
||||
[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_bedvd"]
|
||||
random_pitch = 1.05
|
||||
random_volume_offset_db = 2.0
|
||||
streams_count = 2
|
||||
stream_0/stream = ExtResource("3_8hb6m")
|
||||
stream_0/weight = 1.0
|
||||
stream_1/stream = ExtResource("4_j0bb6")
|
||||
stream_1/weight = 1.0
|
||||
|
||||
[node name="Spin" type="Node3D"]
|
||||
script = ExtResource("1_p5jmv")
|
||||
voice_audio = ExtResource("2_bjl2j")
|
||||
|
||||
[node name="Area" parent="." instance=ExtResource("2_fjxc1")]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1.8)
|
||||
|
||||
[node name="Voice" type="AudioStreamPlayer3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.5, 0)
|
||||
stream = SubResource("AudioStreamRandomizer_bedvd")
|
||||
autoplay = true
|
||||
bus = &"Voices"
|
||||
|
13
client/skill/spin/spin_voice.tres
Normal file
13
client/skill/spin/spin_voice.tres
Normal file
@ -0,0 +1,13 @@
|
||||
[gd_resource type="AudioStreamRandomizer" load_steps=3 format=3 uid="uid://bwgmlkkxqbxoh"]
|
||||
|
||||
[ext_resource type="AudioStream" uid="uid://t7ewt5tv8opw" path="res://assets/audio/voices/swordwoman/swordwoman-attack1.mp3" id="1_cjplv"]
|
||||
[ext_resource type="AudioStream" uid="uid://butmelbywp6iy" path="res://assets/audio/voices/swordwoman/swordwoman-attack2.mp3" id="2_prj6p"]
|
||||
|
||||
[resource]
|
||||
random_pitch = 1.05
|
||||
random_volume_offset_db = 1.0
|
||||
streams_count = 2
|
||||
stream_0/stream = ExtResource("1_cjplv")
|
||||
stream_0/weight = 1.0
|
||||
stream_1/stream = ExtResource("2_prj6p")
|
||||
stream_1/weight = 1.0
|
Reference in New Issue
Block a user