Added layers to the handgun shoot SFX.

remotes/1705725415861086127/tmp_refs/heads/main
unfa 2021-09-25 17:06:01 +02:00
parent a52185f749
commit 920dceb411
2 changed files with 39 additions and 6 deletions

View File

@ -29,7 +29,9 @@ var impact_player = preload("res://Assets/Effects/ImpactBlood.tscn")
var ray = space_state.intersect_ray(from, to, [player])
$Handgun/SFX/Shoot.play()
$"Handgun/SFX/Shoot A".play()
$"Handgun/SFX/Shoot B".play()
$"Handgun/SFX/Shoot C".play()
var impact_vfx
@ -54,6 +56,11 @@ var impact_player = preload("res://Assets/Effects/ImpactBlood.tscn")
firstblood = false
if firstblood:
main.get_node("Announcer").speak(main.get_node("Announcer").firstblood)
# check for revenge (payback) - don't play if this is a duel, it'd be silly
if main.player_list.size() > 2 and ray['collider'].get_multiplayer_authority() == player.revenge_pid:
main.get_node("Announcer").speak(main.get_node("Announcer").payback)
player.revenge_pid = -1 # reset revenge
else:
hud.get_node("Crosshair").hit()

View File

@ -1,9 +1,11 @@
[gd_scene load_steps=6 format=3 uid="uid://bemrov0tiy08n"]
[gd_scene load_steps=8 format=3 uid="uid://bemrov0tiy08n"]
[ext_resource type="PackedScene" uid="uid://bci2qnohg76xa" path="res://Assets/Weapons/Handgun/Handgun.gltf" id="1"]
[ext_resource type="Script" path="res://Assets/Weapons/Weapon.gd" id="2"]
[ext_resource type="PackedScene" uid="uid://c5cwnfuw4go1b" path="res://Assets/Audio/SoundPlayer.tscn" id="3_q0xp7"]
[ext_resource type="AudioStream" uid="uid://cw01fxbftb6m2" path="res://Assets/SFX/Weapons_Handgun_Shot_01_B.wav" id="4_4ao2c"]
[ext_resource type="AudioStream" uid="uid://citsx20hcjj8i" path="res://Assets/SFX/Weapons_Handgun_Shot_01_A.wav" id="4_p0b4f"]
[ext_resource type="AudioStream" uid="uid://cxiy7p6qd7hyh" path="res://Assets/SFX/Weapons_Handgun_Shot_01_C.wav" id="6_w1k4v"]
[sub_resource type="Animation" id="1"]
resource_name = "Default"
@ -57,16 +59,40 @@ blend_times = []
[node name="SFX" type="Node3D" parent="Handgun"]
script = null
[node name="Shoot" parent="Handgun/SFX" instance=ExtResource( "3_q0xp7" )]
[node name="Shoot A" parent="Handgun/SFX" instance=ExtResource( "3_q0xp7" )]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0168038, 0.251726, 0.250185)
SoundClip = "res://Assets/SFX/Weapons_HandgunShot_01.wav"
Voice_Count = 2
[node name="AudioStreamPlayer3D" parent="Handgun/SFX/Shoot" index="0"]
stream = ExtResource( "4_4ao2c" )
[node name="AudioStreamPlayer3D" parent="Handgun/SFX/Shoot A" index="0"]
stream = ExtResource( "4_p0b4f" )
unit_db = 8.0
unit_size = 1.0
max_db = 6.0
[node name="Shoot B" parent="Handgun/SFX" instance=ExtResource( "3_q0xp7" )]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0168038, 0.251726, 0.250185)
SoundClip = "res://Assets/SFX/Weapons_HandgunShot_01.wav"
Voice_Count = 2
[node name="AudioStreamPlayer3D" parent="Handgun/SFX/Shoot B" index="0"]
stream = ExtResource( "4_4ao2c" )
unit_db = 4.0
unit_size = 8.0
max_db = 6.0
[node name="Shoot C" parent="Handgun/SFX" instance=ExtResource( "3_q0xp7" )]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0168038, 0.251726, 0.250185)
SoundClip = "res://Assets/SFX/Weapons_HandgunShot_01.wav"
Voice_Count = 2
[node name="AudioStreamPlayer3D" parent="Handgun/SFX/Shoot C" index="0"]
stream = ExtResource( "6_w1k4v" )
unit_db = 4.0
unit_size = 16.0
max_db = 4.0
[editable path="Handgun"]
[editable path="Handgun/SFX/Shoot"]
[editable path="Handgun/SFX/Shoot A"]
[editable path="Handgun/SFX/Shoot B"]
[editable path="Handgun/SFX/Shoot C"]