enemy reloads each bullet, added servo sound

This commit is contained in:
derek
2025-04-22 14:48:48 -05:00
parent 3a58b2f49d
commit e7fd5bd4b3
13 changed files with 230 additions and 52 deletions

Binary file not shown.

View File

@@ -0,0 +1,19 @@
[remap]
importer="mp3"
type="AudioStreamMP3"
uid="uid://bex03362rghym"
path="res://.godot/imported/metal-click-SBA-300020615.mp3-7eb2db5acaa426a587347c1ea39ec36a.mp3str"
[deps]
source_file="res://assets/Audio/Enemy SFX/metal-click-SBA-300020615.mp3"
dest_files=["res://.godot/imported/metal-click-SBA-300020615.mp3-7eb2db5acaa426a587347c1ea39ec36a.mp3str"]
[params]
loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4

Binary file not shown.

View File

@@ -0,0 +1,19 @@
[remap]
importer="mp3"
type="AudioStreamMP3"
uid="uid://d0n46ursprjjs"
path="res://.godot/imported/servo-motor-SBA-300109173.mp3-1ba0a3432b1f206fca66c5964a15347b.mp3str"
[deps]
source_file="res://assets/Audio/Enemy SFX/servo-motor-SBA-300109173.mp3"
dest_files=["res://.godot/imported/servo-motor-SBA-300109173.mp3-1ba0a3432b1f206fca66c5964a15347b.mp3str"]
[params]
loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4

View File

@@ -0,0 +1,19 @@
[remap]
importer="mp3"
type="AudioStreamMP3"
uid="uid://doenadrocnym"
path="res://.godot/imported/sliding-metal-noise-SBA-300054992.mp3-08c3aa04bd0f29a16cb71c90c7c125bb.mp3str"
[deps]
source_file="res://assets/Audio/Enemy SFX/sliding-metal-noise-SBA-300054992.mp3"
dest_files=["res://.godot/imported/sliding-metal-noise-SBA-300054992.mp3-08c3aa04bd0f29a16cb71c90c7c125bb.mp3str"]
[params]
loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=78 format=4 uid="uid://djr7vnr1hcx82"]
[gd_scene load_steps=87 format=4 uid="uid://djr7vnr1hcx82"]
[ext_resource type="Script" uid="uid://cdofgtwevbray" path="res://scripts/spider.gd" id="1_7e7fe"]
[ext_resource type="PackedScene" uid="uid://h5ojldugfyyu" path="res://assets/bullet_enemy.tscn" id="2_aew5r"]
@@ -14,14 +14,20 @@
[ext_resource type="Script" uid="uid://bgxdpmc0ra6ic" path="res://scripts/enemy_die.gd" id="9_6mvds"]
[ext_resource type="Texture2D" uid="uid://chiol2whyb84t" path="res://assets/Models/SubstancePainterTest/spider-LOW_spider1.gunbarrel_Metallic.png" id="9_cwyr0"]
[ext_resource type="PackedScene" uid="uid://41iv1ualpttf" path="res://assets/damage_number.tscn" id="9_rmegy"]
[ext_resource type="AudioStream" uid="uid://0n251thxlnnp" path="res://assets/Audio/cannon-fire-single-shot-blast-explosion-SBA-300098885.wav" id="10_2qmhc"]
[ext_resource type="Script" uid="uid://cr3wdhodxqf3f" path="res://scripts/EnemyAttack.gd" id="10_gicen"]
[ext_resource type="Texture2D" uid="uid://c7bdujukdjajv" path="res://assets/Models/SubstancePainterTest/spider-LOW_spider1.gunbarrel_Normal.png" id="10_wpql0"]
[ext_resource type="Texture2D" uid="uid://d0w0lon4smlhm" path="res://assets/Models/SubstancePainterTest/spider-LOW_spider1.gunbarrel_Roughness.png" id="11_6mvds"]
[ext_resource type="Script" uid="uid://dcnmjisrxf5iv" path="res://scripts/EnemyReload.gd" id="11_ekglj"]
[ext_resource type="Material" uid="uid://cc0el8wu0au85" path="res://assets/materials/OutlineMat.tres" id="13_ee4im"]
[ext_resource type="Texture2D" uid="uid://dn3b6uw8xr63m" path="res://assets/Textures/Smoke/smoketest_v1_0043.png" id="14_alcfd"]
[ext_resource type="Material" uid="uid://844q0haim4uh" path="res://assets/spider2_body.tres" id="14_gicen"]
[ext_resource type="PackedScene" uid="uid://2mct75k6xcia" path="res://assets/stunned_stars.tscn" id="18_ippdt"]
[ext_resource type="AudioStream" uid="uid://fa2k0hkmt0nq" path="res://assets/Audio/Weapons/7Mag Bolt Action Rifle/Gunshots/7Mag Bolt Action Rifle - Gunshot A 001.wav" id="23_fborx"]
[ext_resource type="AudioStream" uid="uid://bex03362rghym" path="res://assets/Audio/Enemy SFX/metal-click-SBA-300020615.mp3" id="24_ekglj"]
[ext_resource type="AudioStream" uid="uid://03y840g5f326" path="res://assets/Audio/Weapons/7Mag Bolt Action Rifle/Gunshots/7Mag Bolt Action Rifle - Gunshot A 002.wav" id="24_nhal8"]
[ext_resource type="AudioStream" uid="uid://bsfhh126bteon" path="res://assets/Audio/Weapons/7Mag Bolt Action Rifle/Gunshots/7Mag Bolt Action Rifle - Gunshot A 003.wav" id="25_aasxo"]
[ext_resource type="AudioStream" uid="uid://d0n46ursprjjs" path="res://assets/Audio/Enemy SFX/servo-motor-SBA-300109173.mp3" id="25_lr3lm"]
[ext_resource type="AudioStream" uid="uid://br3tyu6cmgyy2" path="res://assets/Audio/Weapons/7Mag Bolt Action Rifle/Gunshots/7Mag Bolt Action Rifle - Gunshot A 004.wav" id="26_1b3cb"]
[sub_resource type="ViewportTexture" id="ViewportTexture_87l3v"]
viewport_path = NodePath("SubViewport")
@@ -796,9 +802,29 @@ size = Vector3(0.816284, 0.725159, 0.75531)
height = 0.356583
radius = 0.207031
[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_ycipa"]
random_pitch = 1.1
streams_count = 4
stream_0/stream = ExtResource("23_fborx")
stream_1/stream = ExtResource("24_nhal8")
stream_2/stream = ExtResource("25_aasxo")
stream_3/stream = ExtResource("26_1b3cb")
[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_ekglj"]
random_pitch = 1.1
random_volume_offset_db = 0.3
streams_count = 1
stream_0/stream = ExtResource("24_ekglj")
[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_4ecf4"]
random_pitch = 1.1
streams_count = 1
stream_0/stream = ExtResource("25_lr3lm")
[node name="spider" type="CharacterBody3D" node_paths=PackedStringArray("nav_agent") groups=["enemy", "persist"]]
collision_layer = 8
collision_mask = 521
up_direction = Vector3(0.0449994, 0.998987, 0)
script = ExtResource("1_7e7fe")
nav_agent = NodePath("NavigationAgent3D")
bullet = ExtResource("2_aew5r")
@@ -834,6 +860,12 @@ script = ExtResource("10_gicen")
enemy = NodePath("../..")
enemy_targets = [NodePath("../../body/backTarget")]
[node name="Reload" type="Node" parent="StateMachine" node_paths=PackedStringArray("reload_sound", "enemy", "enemy_targets")]
script = ExtResource("11_ekglj")
reload_sound = NodePath("../../AUIDO/Reload")
enemy = NodePath("../..")
enemy_targets = [NodePath("../../body/backTarget")]
[node name="HealthBarSprite" parent="." node_paths=PackedStringArray("character") instance=ExtResource("7_87l3v")]
transform = Transform3D(0.254412, 0, 0, 0, 0.561068, 0, 0, 0, 1, 0, 2.41498, 0)
billboard = 2
@@ -1051,8 +1083,17 @@ one_shot = true
[node name="AUIDO" type="Node3D" parent="."]
[node name="Fire" type="AudioStreamPlayer3D" parent="AUIDO"]
stream = ExtResource("10_2qmhc")
volume_db = 10.0
stream = SubResource("AudioStreamRandomizer_ycipa")
volume_db = 5.0
pitch_scale = 0.7
[node name="Reload" type="AudioStreamPlayer3D" parent="AUIDO"]
stream = SubResource("AudioStreamRandomizer_ekglj")
[node name="Servo" type="AudioStreamPlayer3D" parent="AUIDO"]
stream = SubResource("AudioStreamRandomizer_4ecf4")
volume_db = -2.5
unit_size = 5.0
[connection signal="body_entered" from="body/backTarget" to="body/backTarget" method="_on_body_entered"]
[connection signal="body_part_hit" from="body/backTarget" to="." method="_on_area_3d_body_part_hit"]