120 lines
5.6 KiB
Text
120 lines
5.6 KiB
Text
[gd_scene load_steps=24 format=3 uid="uid://b1l8fvlceolf8"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/enemies/enemy.gd" id="1_n8jwt"]
|
|
[ext_resource type="PackedScene" uid="uid://o3oir3w6cs1y" path="res://content/enemies/enemies.fbx" id="1_nxu6l"]
|
|
[ext_resource type="Texture2D" uid="uid://csn8uoefcbua6" path="res://content/enemies/sprites/idle sprite.png" id="2_r5jpp"]
|
|
[ext_resource type="Animation" uid="uid://cguc5g4xb3ukw" path="res://content/enemies/animations/Vert_Fire.res" id="3_c2uq0"]
|
|
[ext_resource type="BehaviorTree" uid="uid://db7m2p0at5kmq" path="res://ai/enemy.tres" id="3_laok7"]
|
|
[ext_resource type="Animation" uid="uid://c4ko34bx2fw2a" path="res://content/enemies/animations/Vert_Idle.res" id="4_ldm0s"]
|
|
[ext_resource type="Script" path="res://scripts/enemies/enemy_ai.gd" id="4_uu6te"]
|
|
[ext_resource type="Texture2D" uid="uid://buebtm6i0whgb" path="res://content/enemies/sprites/fire sprite.png" id="5_1c5tu"]
|
|
[ext_resource type="Animation" uid="uid://bkg0my1x3pao4" path="res://content/enemies/animations/Vert_Move.res" id="5_saiyq"]
|
|
[ext_resource type="PackedScene" uid="uid://bnwuklgcmgyw8" path="res://content/muzzleflash/muzzleflash.tscn" id="10_dtmwf"]
|
|
[ext_resource type="Script" path="res://demo/agents/scripts/health.gd" id="11_o71in"]
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_jm6ft"]
|
|
_data = {
|
|
"Vert_Fire": ExtResource("3_c2uq0"),
|
|
"Vert_Idle": ExtResource("4_ldm0s"),
|
|
"Vert_Move": ExtResource("5_saiyq")
|
|
}
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_ri6g6"]
|
|
animation = &"Vert_Fire"
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_otyax"]
|
|
animation = &"Vert_Idle"
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_7uoxm"]
|
|
animation = &"Vert_Move"
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_qm74y"]
|
|
animation = &"Vert_Move"
|
|
play_mode = 1
|
|
|
|
[sub_resource type="AnimationNodeBlendSpace1D" id="AnimationNodeBlendSpace1D_1qala"]
|
|
blend_point_0/node = SubResource("AnimationNodeAnimation_otyax")
|
|
blend_point_0/pos = 0.0
|
|
blend_point_1/node = SubResource("AnimationNodeAnimation_7uoxm")
|
|
blend_point_1/pos = 1.0
|
|
blend_point_2/node = SubResource("AnimationNodeAnimation_qm74y")
|
|
blend_point_2/pos = -1.0
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_b6owp"]
|
|
advance_mode = 2
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_flqbt"]
|
|
xfade_time = 0.1
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_icsoj"]
|
|
xfade_time = 0.1
|
|
switch_mode = 2
|
|
advance_mode = 2
|
|
|
|
[sub_resource type="AnimationNodeStateMachine" id="AnimationNodeStateMachine_rdhva"]
|
|
states/Fire/node = SubResource("AnimationNodeAnimation_ri6g6")
|
|
states/Fire/position = Vector2(405, 185)
|
|
states/Movement/node = SubResource("AnimationNodeBlendSpace1D_1qala")
|
|
states/Movement/position = Vector2(405, 100)
|
|
transitions = ["Start", "Movement", SubResource("AnimationNodeStateMachineTransition_b6owp"), "Movement", "Fire", SubResource("AnimationNodeStateMachineTransition_flqbt"), "Fire", "Movement", SubResource("AnimationNodeStateMachineTransition_icsoj")]
|
|
graph_offset = Vector2(-376, -32)
|
|
|
|
[sub_resource type="BlackboardPlan" id="BlackboardPlan_hf7lk"]
|
|
|
|
[sub_resource type="BoxShape3D" id="BoxShape3D_ov0pa"]
|
|
size = Vector3(1, 2.08771, 0.273685)
|
|
|
|
[node name="Enemy" type="CharacterBody3D"]
|
|
script = ExtResource("1_n8jwt")
|
|
|
|
[node name="enemies" parent="." instance=ExtResource("1_nxu6l")]
|
|
transform = Transform3D(0.42, 0, 0, 0, 0.42, 0, 0, 0, 0.42, 0, 0, 0)
|
|
|
|
[node name="Vert" parent="enemies" index="0"]
|
|
transform = Transform3D(97.8205, -0.0251948, -20.7636, 0.0257551, 100, -4.37103e-06, 20.7636, -0.00534343, 97.8206, 0, 0.000652266, 0)
|
|
|
|
[node name="Sprite3D" type="Sprite3D" parent="enemies/Vert" index="0"]
|
|
transform = Transform3D(0.00999984, -1.44888e-06, 5.6131e-05, 1.44904e-06, 0.01, -2.46636e-08, -5.6131e-05, 3.27968e-08, 0.00999984, -3.11379e-06, 0.0260873, 0.000118726)
|
|
modulate = Color(1, 0.86, 0.86, 1)
|
|
texture = ExtResource("2_r5jpp")
|
|
|
|
[node name="Shoot Marker" type="Node3D" parent="enemies/Vert" index="1"]
|
|
transform = Transform3D(0.0242074, -1.30064e-06, 0.00624512, 9.47821e-07, 0.025, 1.53265e-06, -0.00624511, -1.24728e-06, 0.0242074, -0.00403827, 0.0391857, 0.00234848)
|
|
|
|
[node name="AnimationPlayer" parent="enemies" index="1"]
|
|
libraries = {
|
|
"": SubResource("AnimationLibrary_jm6ft")
|
|
}
|
|
|
|
[node name="AnimationTree" type="AnimationTree" parent="enemies/AnimationPlayer" index="0"]
|
|
root_node = NodePath("../..")
|
|
tree_root = SubResource("AnimationNodeStateMachine_rdhva")
|
|
anim_player = NodePath("..")
|
|
parameters/Movement/blend_position = 0.00270998
|
|
|
|
[node name="BTPlayer" type="BTPlayer" parent="." node_paths=PackedStringArray("character", "sprite", "agent", "animationTree", "Origin")]
|
|
behavior_tree = ExtResource("3_laok7")
|
|
blackboard_plan = SubResource("BlackboardPlan_hf7lk")
|
|
script = ExtResource("4_uu6te")
|
|
character = NodePath("..")
|
|
sprite = NodePath("../enemies/Vert/Sprite3D")
|
|
idleTexture = ExtResource("2_r5jpp")
|
|
aggressiveTexture = ExtResource("5_1c5tu")
|
|
agent = NodePath("../NavigationAgent")
|
|
animationTree = NodePath("../enemies/AnimationPlayer/AnimationTree")
|
|
MuzzleFlash = ExtResource("10_dtmwf")
|
|
Origin = NodePath("../enemies/Vert/Shoot Marker")
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.02066, 0.00610204)
|
|
shape = SubResource("BoxShape3D_ov0pa")
|
|
|
|
[node name="NavigationAgent" type="NavigationAgent3D" parent="."]
|
|
path_desired_distance = 0.5
|
|
target_desired_distance = 0.5
|
|
|
|
[node name="Health" type="Node" parent="."]
|
|
script = ExtResource("11_o71in")
|
|
max_health = 1.0
|
|
|
|
[editable path="enemies"]
|