Further improved NPC logic, and made it multiplayer friendly.

This commit is contained in:
Patrick_Pluto 2024-12-12 11:59:22 +01:00
parent 1ca0a2bdc0
commit 1ee6f6cc6d
5 changed files with 56 additions and 57 deletions

View file

@ -22,3 +22,5 @@ shape = SubResource("CapsuleShape3D_am313")
[node name="NavigationAgent3D" type="NavigationAgent3D" parent="."]
avoidance_enabled = true
height = 2.0
[node name="Timer" type="Timer" parent="."]

View file

@ -39,39 +39,6 @@ environment = SubResource("Environment_pq0iv")
[node name="Closet" parent="." instance=ExtResource("2_yvpvm")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2, 10, 2)
[node name="Npc7" parent="." instance=ExtResource("3_x3gyc")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 40, 30, 0)
[node name="Npc8" parent="." instance=ExtResource("3_x3gyc")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 30, -40)
[node name="Npc9" parent="." instance=ExtResource("3_x3gyc")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 40, 30, -40)
[node name="Npc10" parent="." instance=ExtResource("3_x3gyc")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -40, 30, -40)
[node name="Npc11" parent="." instance=ExtResource("3_x3gyc")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -40, 30, 40)
[node name="Npc12" parent="." instance=ExtResource("3_x3gyc")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 40, 30, 40)
[node name="Npc6" parent="." instance=ExtResource("3_x3gyc")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 40, 20, 0)
[node name="Npc5" parent="." instance=ExtResource("3_x3gyc")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 20, -40)
[node name="Npc4" parent="." instance=ExtResource("3_x3gyc")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 40, 20, -40)
[node name="Npc3" parent="." instance=ExtResource("3_x3gyc")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -40, 20, -40)
[node name="Npc2" parent="." instance=ExtResource("3_x3gyc")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -40, 20, 40)
[node name="Npc1" parent="." instance=ExtResource("3_x3gyc")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 40, 20, 40)
@ -86,3 +53,5 @@ skeleton = NodePath("../..")
[node name="CollisionShape3D" type="CollisionShape3D" parent="NavigationRegion3D/StaticBody3D"]
shape = SubResource("BoxShape3D_rnmx0")
[node name="Timer" type="Timer" parent="."]