[gd_scene load_steps=8 format=3 uid="uid://byknup31d2b53"]

[ext_resource type="Script" uid="uid://cd87rsuiqhdav" path="res://level/scripts/basic_enemy.gd" id="1_basic_enemy"]
[ext_resource type="Script" uid="uid://bj3uepduxvgju" path="res://level/scripts/hurt_box.gd" id="2_hurtbox"]
[ext_resource type="ArrayMesh" uid="uid://dy0xld0fpulmk" path="res://assets/characters/Lobster/10029_Lobster_v1_iterations-2.obj" id="2_obxet"]
[ext_resource type="Script" uid="uid://jyas86y3f0jp" path="res://level/scripts/hit_box.gd" id="3_hitbox"]

[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_body"]
height = 1.869873

[sub_resource type="SphereShape3D" id="SphereShape3D_hitbox"]
radius = 2.0

[sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_enemy"]
properties/0/path = NodePath(".:position")
properties/0/spawn = true
properties/0/replication_mode = 1
properties/1/path = NodePath(".:rotation")
properties/1/spawn = true
properties/1/replication_mode = 1

[node name="BasicEnemy" type="CharacterBody3D"]
collision_mask = 3
script = ExtResource("1_basic_enemy")
move_speed = 3.5
attack_damage = 5.0
detection_range = 500.0
max_health = 10.0

[node name="Mesh" type="MeshInstance3D" parent="."]
transform = Transform3D(-0.29981995, -0.01038597, -0.00033419454, 0.00636219, -0.19110087, 0.23117083, -0.008215994, 0.23102501, 0.19120643, 0, 0.41641736, 0)
mesh = ExtResource("2_obxet")

[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1.5, 0, 0, 0, 1.5, 0, 0, 0, 1.5, 0, 1, 0)
shape = SubResource("CapsuleShape3D_body")

[node name="HurtBox" type="Area3D" parent="." node_paths=PackedStringArray("owner_entity")]
transform = Transform3D(1.5, 0, 0, 0, 1.5, 0, 0, 0, 1.5, 0, -0.47265148, 0)
collision_layer = 16
collision_mask = 0
script = ExtResource("2_hurtbox")
owner_entity = NodePath("..")

[node name="HurtBoxShape" type="CollisionShape3D" parent="HurtBox"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.9349365, 0)
shape = SubResource("CapsuleShape3D_body")

[node name="HitBox" type="Area3D" parent="." node_paths=PackedStringArray("owner_entity")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.8, -1.2)
collision_layer = 0
collision_mask = 16
script = ExtResource("3_hitbox")
damage = 15.0
knockback = 10.0
owner_entity = NodePath("..")

[node name="HitBoxShape" type="CollisionShape3D" parent="HitBox"]
transform = Transform3D(0.8, 0, 0, 0, 0.8, 0, 0, 0, 0.8, 0, 0.13992286, 0)
shape = SubResource("SphereShape3D_hitbox")

[node name="MultiplayerSynchronizer" type="MultiplayerSynchronizer" parent="."]
replication_config = SubResource("SceneReplicationConfig_enemy")
