Idle state is simplified and looking good
This commit is contained in:
@@ -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="."]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user