63 lines
2.4 KiB
Plaintext
63 lines
2.4 KiB
Plaintext
[gd_scene load_steps=4 format=3 uid="uid://dqlqgk1veyos8"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://crtgy2rph5to2" path="res://assets/models/enemies/model_scenes/wretched.tscn" id="1_qot2n"]
|
|
|
|
[sub_resource type="GDScript" id="GDScript_qot2n"]
|
|
script/source = "extends EnemyWretched
|
|
|
|
func _on_health_status_death() -> void:
|
|
%StateMachine.process_mode = Node.PROCESS_MODE_DISABLED
|
|
%NavigationAgent3D.process_mode = Node.PROCESS_MODE_DISABLED
|
|
$wretched/AnimationPlayer.play(\"death\")
|
|
$CollisionShape3D.disabled = true
|
|
set_movement_direction(Vector2())
|
|
"
|
|
|
|
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_ng1ul"]
|
|
radius = 0.26953125
|
|
|
|
[node name="EnemyWretched" type="EnemyWretched"]
|
|
chase_speed = 4.0
|
|
script = SubResource("GDScript_qot2n")
|
|
|
|
[node name="wretched" parent="." instance=ExtResource("1_qot2n")]
|
|
|
|
[node name="Hitbox" parent="wretched/Character/Skeleton3D" index="2" node_paths=PackedStringArray("health")]
|
|
health = NodePath("../../../../HealthStatus")
|
|
|
|
[node name="Hitbox" parent="wretched/Character/Skeleton3D/SpineAttach" index="0" node_paths=PackedStringArray("health")]
|
|
health = NodePath("../../../../../HealthStatus")
|
|
|
|
[node name="Hitbox" parent="wretched/Character/Skeleton3D/HeadAttach" index="0" node_paths=PackedStringArray("health")]
|
|
health = NodePath("../../../../../HealthStatus")
|
|
|
|
[node name="CollisionShape3D" parent="wretched/Character/Skeleton3D/BoneAttachment3D/DamageBox" index="0"]
|
|
transform = Transform3D(1, -9.834766e-07, -2.454035e-06, 1.4305115e-06, 0.9999989, -8.145726e-06, 1.8983264e-06, 7.3344854e-06, 1, -0.20908, -5.9604645e-07, -4.7683716e-07)
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
|
shape = SubResource("CapsuleShape3D_ng1ul")
|
|
|
|
[node name="StateMachine" type="StateMachine" parent="."]
|
|
unique_name_in_owner = true
|
|
|
|
[node name="NavigationAgent3D" type="NavigationAgent3D" parent="."]
|
|
unique_name_in_owner = true
|
|
path_desired_distance = 0.25
|
|
avoidance_enabled = true
|
|
neighbor_distance = 10.0
|
|
time_horizon_agents = 0.7
|
|
debug_enabled = true
|
|
|
|
[node name="PlayerDetector" type="PlayerDetector" parent="."]
|
|
unique_name_in_owner = true
|
|
transform = Transform3D(-1, 0, -8.742278e-08, 0, 1, 0, 8.742278e-08, 0, -1, 0, 1.4599279, 0)
|
|
|
|
[node name="HealthStatus" type="HealthStatus" parent="."]
|
|
unique_name_in_owner = true
|
|
health = 2
|
|
|
|
[connection signal="death" from="HealthStatus" to="." method="_on_health_status_death"]
|
|
|
|
[editable path="wretched"]
|