Idle state is simplified and looking good

This commit is contained in:
derek
2025-04-30 10:49:53 -05:00
parent d65e362539
commit d9ab3a82a7
11 changed files with 63 additions and 343 deletions

View File

@@ -851,6 +851,7 @@ collision_layer = 8
collision_mask = 521
up_direction = Vector3(0.0449994, 0.998987, 0)
script = ExtResource("1_7e7fe")
debug_tools = true
nav_agent = NodePath("NavigationAgent3D")
hit_targets = [NodePath("body/backTarget")]
visibility_areas = [NodePath("VisibilityArea")]
@@ -870,10 +871,10 @@ initial_state = NodePath("Idle")
[node name="Idle" type="Node" parent="StateMachine" node_paths=PackedStringArray("enemy")]
script = ExtResource("7_cwyr0")
enemy = NodePath("../..")
move_speed = 1.5
[node name="Stunned" type="Node" parent="StateMachine" node_paths=PackedStringArray("stunned_stars", "enemy")]
[node name="Stunned" type="Node" parent="StateMachine" node_paths=PackedStringArray("enemy")]
script = ExtResource("8_wpql0")
stunned_stars = NodePath("../../body/StunnedStars")
enemy = NodePath("../..")
[node name="Die" type="Node" parent="StateMachine" node_paths=PackedStringArray("enemy")]
@@ -881,14 +882,12 @@ script = ExtResource("9_6mvds")
enemy = NodePath("../..")
metadata/_custom_type_script = "uid://dhxolagi0b5s1"
[node name="Attack" type="Node" parent="StateMachine" node_paths=PackedStringArray("alarm_sound", "enemy")]
[node name="Attack" type="Node" parent="StateMachine" node_paths=PackedStringArray("enemy")]
script = ExtResource("10_gicen")
alarm_sound = NodePath("../../AUIDO/Alarm")
enemy = NodePath("../..")
[node name="Reload" type="Node" parent="StateMachine" node_paths=PackedStringArray("reload_sound", "enemy")]
[node name="Reload" type="Node" parent="StateMachine" node_paths=PackedStringArray("enemy")]
script = ExtResource("11_ekglj")
reload_sound = NodePath("../../AUIDO/Reload")
enemy = NodePath("../..")
[node name="Search" type="Node" parent="StateMachine" node_paths=PackedStringArray("enemy")]
@@ -1099,6 +1098,8 @@ shape = SubResource("CylinderShape3D_gicen")
[node name="NavigationAgent3D" type="NavigationAgent3D" parent="."]
path_height_offset = 0.5
avoidance_enabled = true
radius = 2.0
use_3d_avoidance = true
[node name="Timers" type="Node" parent="."]

View File

@@ -27,6 +27,8 @@ bullet_damage = 2
smoke_enabled = false
bullet_force_mod = 5.0
bullet_speed = 600
decibels_of_gunfire_sound = 160.0
max_distance_heard = 100
casing = ExtResource("2_7wxcs")
mag = ExtResource("4_fiujt")
vibration_weak_magnitude = 0.1

View File

@@ -23,6 +23,8 @@ bullet_damage = 5
smoke_enabled = false
bullet_force_mod = 5.0
bullet_speed = 600
decibels_of_gunfire_sound = 160.0
max_distance_heard = 100
vibration_weak_magnitude = 0.1
vibration_strong_magnitude = 0.5
vibration_duration = 0.1

View File

@@ -27,6 +27,8 @@ bullet_damage = 1
smoke_enabled = false
bullet_force_mod = 5.0
bullet_speed = 600
decibels_of_gunfire_sound = 160.0
max_distance_heard = 100
casing = ExtResource("2_g6owq")
mag = ExtResource("4_xovdq")
vibration_weak_magnitude = 0.1