2023-06-12 22:06:48 +02:00
|
|
|
[gd_scene load_steps=12 format=3 uid="uid://b51tdt5kunai"]
|
2023-06-12 16:48:35 +02:00
|
|
|
|
|
|
|
[ext_resource type="Script" path="res://addons/beehave/nodes/beehave_tree.gd" id="1_b2pc4"]
|
|
|
|
[ext_resource type="Script" path="res://addons/beehave/nodes/composites/sequence.gd" id="2_80fm4"]
|
2023-06-12 17:58:06 +02:00
|
|
|
[ext_resource type="Script" path="res://addons/beehave/nodes/composites/selector.gd" id="2_xkd41"]
|
2023-06-13 21:36:01 +02:00
|
|
|
[ext_resource type="Script" path="res://scripts/enemy/behavior_tree/can_wait_condition.gd" id="4_0jr1a"]
|
2023-06-12 17:58:06 +02:00
|
|
|
[ext_resource type="Script" path="res://addons/beehave/nodes/decorators/time_limiter.gd" id="5_012bh"]
|
2023-06-13 21:36:01 +02:00
|
|
|
[ext_resource type="Script" path="res://scripts/enemy/behavior_tree/wait_action.gd" id="6_eyknc"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/enemy/behavior_tree/can_throw_ball_condition.gd" id="7_k5qlq"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/enemy/behavior_tree/throw_ball_action.gd" id="8_wytqf"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/enemy/behavior_tree/is_idle_condition.gd" id="9_vboat"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/enemy/behavior_tree/get_random_destination_action.gd" id="10_f4jrw"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/enemy/behavior_tree/move_to_destination_action.gd" id="11_tjc85"]
|
2023-06-12 16:48:35 +02:00
|
|
|
|
|
|
|
[node name="EnemyBehaviorTree" type="Node"]
|
|
|
|
script = ExtResource("1_b2pc4")
|
|
|
|
|
2023-06-12 17:58:06 +02:00
|
|
|
[node name="MainSelector" type="Node" parent="."]
|
|
|
|
script = ExtResource("2_xkd41")
|
|
|
|
|
|
|
|
[node name="WaitSequence" type="Node" parent="MainSelector"]
|
|
|
|
script = ExtResource("2_80fm4")
|
|
|
|
|
|
|
|
[node name="CanWait" type="Node" parent="MainSelector/WaitSequence"]
|
2023-06-13 21:36:01 +02:00
|
|
|
script = ExtResource("4_0jr1a")
|
2023-06-12 17:58:06 +02:00
|
|
|
|
|
|
|
[node name="TimeLimiterDecorator" type="Node" parent="MainSelector/WaitSequence"]
|
|
|
|
script = ExtResource("5_012bh")
|
|
|
|
wait_time = 2.0
|
|
|
|
|
|
|
|
[node name="Wait" type="Node" parent="MainSelector/WaitSequence/TimeLimiterDecorator"]
|
2023-06-13 21:36:01 +02:00
|
|
|
script = ExtResource("6_eyknc")
|
2023-06-12 17:58:06 +02:00
|
|
|
|
2023-06-12 22:06:48 +02:00
|
|
|
[node name="ThrowBallSequence" type="Node" parent="MainSelector"]
|
|
|
|
script = ExtResource("2_80fm4")
|
|
|
|
|
|
|
|
[node name="CanThrowBall" type="Node" parent="MainSelector/ThrowBallSequence"]
|
2023-06-13 21:36:01 +02:00
|
|
|
script = ExtResource("7_k5qlq")
|
2023-06-12 22:06:48 +02:00
|
|
|
|
|
|
|
[node name="ThrowBall" type="Node" parent="MainSelector/ThrowBallSequence"]
|
2023-06-13 21:36:01 +02:00
|
|
|
script = ExtResource("8_wytqf")
|
2023-06-12 22:06:48 +02:00
|
|
|
|
2023-06-12 17:58:06 +02:00
|
|
|
[node name="ReturnBallSequence" type="Node" parent="MainSelector"]
|
2023-06-12 16:48:35 +02:00
|
|
|
script = ExtResource("2_80fm4")
|
|
|
|
|
2023-06-12 17:58:06 +02:00
|
|
|
[node name="IsIdle" type="Node" parent="MainSelector/ReturnBallSequence"]
|
2023-06-13 21:36:01 +02:00
|
|
|
script = ExtResource("9_vboat")
|
2023-06-12 16:48:35 +02:00
|
|
|
|
2023-06-13 21:36:01 +02:00
|
|
|
[node name="GetRandomDestination" type="Node" parent="MainSelector/ReturnBallSequence"]
|
|
|
|
script = ExtResource("10_f4jrw")
|
2023-06-12 16:48:35 +02:00
|
|
|
|
2023-06-13 21:36:01 +02:00
|
|
|
[node name="MoveToDestination" type="Node" parent="MainSelector/ReturnBallSequence"]
|
|
|
|
script = ExtResource("11_tjc85")
|