[gd_scene load_steps=10 format=2]

[ext_resource path="res://objects/enemies/sentry/Sentry.gd" type="Script" id=1]

[sub_resource type="Curve3D" id=1]
_data = {
"points": PoolVector3Array(  ),
"tilts": PoolRealArray(  )
}

[sub_resource type="SpatialMaterial" id=2]
params_cull_mode = 1
params_grow = true
params_grow_amount = 0.065
albedo_color = Color( 0, 0, 0, 1 )

[sub_resource type="SpatialMaterial" id=3]
next_pass = SubResource( 2 )
albedo_color = Color( 0, 0.239216, 1, 1 )
metallic = 0.6

[sub_resource type="SphereMesh" id=4]
material = SubResource( 3 )
radius = 0.75
height = 1.5

[sub_resource type="SphereShape" id=5]
radius = 1.00619

[sub_resource type="ParticlesMaterial" id=6]
spread = 180.0
gravity = Vector3( 0, -1, 0 )
initial_velocity = 5.0

[sub_resource type="SpatialMaterial" id=7]
params_billboard_mode = 3
particles_anim_h_frames = 1
particles_anim_v_frames = 1
particles_anim_loop = false
albedo_color = Color( 1, 0.849609, 0, 1 )

[sub_resource type="QuadMesh" id=8]
material = SubResource( 7 )
size = Vector2( 0.15, 0.15 )

[node name="Sentry" type="Path"]
pause_mode = 1
curve = SubResource( 1 )
script = ExtResource( 1 )

[node name="PathFollow" type="PathFollow" parent="."]

[node name="SFX" type="AudioStreamPlayer3D" parent="PathFollow"]

[node name="MeshInstance" type="MeshInstance" parent="PathFollow"]
mesh = SubResource( 4 )
material/0 = null

[node name="Aggro" type="Area" parent="PathFollow"]

[node name="CollisionShape" type="CollisionShape" parent="PathFollow/Aggro"]
shape = SubResource( 5 )

[node name="Particles" type="Particles" parent="PathFollow"]
amount = 12
lifetime = 0.25
process_material = SubResource( 6 )
draw_pass_1 = SubResource( 8 )

[node name="Points" type="Spatial" parent="."]

[node name="Point1" type="Position3D" parent="Points"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 5, 0, 0 )

[node name="Point15" type="Position3D" parent="Points"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 3.5, 0, 3.5 )

[node name="Point2" type="Position3D" parent="Points"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 5 )

[node name="Point25" type="Position3D" parent="Points"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -3.5, 0, 3.5 )

[node name="Point3" type="Position3D" parent="Points"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -5, 0, 0 )

[node name="Point35" type="Position3D" parent="Points"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -3.5, 0, -3.5 )

[node name="Point4" type="Position3D" parent="Points"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -5 )

[node name="Point45" type="Position3D" parent="Points"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 3.5, 0, -3.5 )

[connection signal="area_entered" from="PathFollow/Aggro" to="." method="_on_Aggro_area_entered"]
[connection signal="body_entered" from="PathFollow/Aggro" to="." method="_on_Aggro_body_entered"]
