77 lines
2.3 KiB
Plaintext
77 lines
2.3 KiB
Plaintext
[gd_scene load_steps=8 format=3 uid="uid://b0enemy00001"]
|
|
|
|
[ext_resource type="Script" path="res://scenes/entities/enemy/enemy.gd" id="1"]
|
|
|
|
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_1"]
|
|
height = 1.6
|
|
radius = 0.4
|
|
|
|
[sub_resource type="CapsuleMesh" id="CapsuleMesh_1"]
|
|
height = 1.6
|
|
radius = 0.4
|
|
|
|
[sub_resource type="StandardMaterial3D" id="Mat_1"]
|
|
albedo_color = Color(0.6, 0.6, 0.6, 1)
|
|
|
|
[sub_resource type="SphereShape3D" id="SphereShape3D_1"]
|
|
radius = 12.0
|
|
|
|
[sub_resource type="QuadMesh" id="QuadMesh_1"]
|
|
size = Vector2(1.0, 0.12)
|
|
|
|
[sub_resource type="StandardMaterial3D" id="HBMat"]
|
|
shading_mode = 0
|
|
no_depth_test = true
|
|
albedo_color = Color(0.9, 0.2, 0.2, 1)
|
|
|
|
[sub_resource type="SceneReplicationConfig" id="SceneReplicationConfig_1"]
|
|
properties/0/path = NodePath(".:sync_position")
|
|
properties/0/spawn = true
|
|
properties/0/replication_mode = 1
|
|
properties/1/path = NodePath(".:sync_yaw")
|
|
properties/1/spawn = true
|
|
properties/1/replication_mode = 1
|
|
|
|
[node name="Enemy" type="CharacterBody3D"]
|
|
collision_layer = 4
|
|
collision_mask = 1
|
|
script = ExtResource("1")
|
|
|
|
[node name="Collision" type="CollisionShape3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.8, 0)
|
|
shape = SubResource("CapsuleShape3D_1")
|
|
|
|
[node name="MeshHolder" type="Node3D" parent="."]
|
|
|
|
[node name="Mesh" type="MeshInstance3D" parent="MeshHolder"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.8, 0)
|
|
mesh = SubResource("CapsuleMesh_1")
|
|
material_override = SubResource("Mat_1")
|
|
|
|
[node name="NameLabel" type="Label3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.2, 0)
|
|
billboard = 1
|
|
text = "Enemy"
|
|
font_size = 20
|
|
outline_size = 3
|
|
|
|
[node name="Healthbar" type="MeshInstance3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.95, 0)
|
|
mesh = SubResource("QuadMesh_1")
|
|
material_override = SubResource("HBMat")
|
|
gi_mode = 0
|
|
|
|
[node name="DetectionArea" type="Area3D" parent="."]
|
|
collision_layer = 0
|
|
collision_mask = 2
|
|
|
|
[node name="DetectionShape" type="CollisionShape3D" parent="DetectionArea"]
|
|
shape = SubResource("SphereShape3D_1")
|
|
|
|
[node name="NavAgent" type="NavigationAgent3D" parent="."]
|
|
path_desired_distance = 0.5
|
|
target_desired_distance = 0.5
|
|
|
|
[node name="Synchronizer" type="MultiplayerSynchronizer" parent="."]
|
|
replication_config = SubResource("SceneReplicationConfig_1")
|