Minor fixes for NPC dialogue stuff

Add collisions for overworld
This commit is contained in:
2026-02-02 22:39:33 -08:00
parent 4c90eb6f07
commit 51c8f26e50
16 changed files with 334 additions and 553 deletions

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=14 format=3 uid="uid://cjj6wabswtkk1"]
[gd_scene load_steps=15 format=3 uid="uid://cjj6wabswtkk1"]
[ext_resource type="Script" uid="uid://dcqssoikr3pl7" path="res://src/npc/Npc.cs" id="1_3at8w"]
[ext_resource type="Resource" uid="uid://lao0opxww3ib" path="res://src/dialog/Dialogue.dialogue" id="2_egfgt"]
@@ -36,9 +36,6 @@ animations = [{
"speed": 5.0
}]
[sub_resource type="CylinderShape3D" id="CylinderShape3D_wfhgc"]
radius = 3.0
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_kg3qv"]
radius = 0.837722
height = 2.8375
@@ -47,6 +44,12 @@ height = 2.8375
height = 2.24425
radius = 1.941
[sub_resource type="CylinderShape3D" id="CylinderShape3D_wfx33"]
radius = 3.83154
[sub_resource type="CylinderShape3D" id="CylinderShape3D_lsu6x"]
radius = 5.81592
[node name="Caretaker of Saints" type="Node3D"]
script = ExtResource("1_3at8w")
Dialogue = ExtResource("2_egfgt")
@@ -68,15 +71,6 @@ offset = Vector2(5, 2)
texture_filter = 0
texture = ExtResource("9_wfx33")
[node name="DialogueZone" type="Area3D" parent="."]
unique_name_in_owner = true
collision_layer = 2
collision_mask = 2
[node name="CollisionShape3D" type="CollisionShape3D" parent="DialogueZone"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.00131226, 0, -0.00723076)
shape = SubResource("CylinderShape3D_wfhgc")
[node name="Collision" type="RigidBody3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.105047, -0.0490516, 0)
collision_mask = 0
@@ -93,3 +87,23 @@ collision_mask = 16
[node name="CollisionShape3D" type="CollisionShape3D" parent="Hitbox"]
shape = SubResource("CylinderShape3D_nwuwj")
[node name="DialogueZone" type="Area3D" parent="."]
unique_name_in_owner = true
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.273779, 0, 0)
collision_layer = 2
collision_mask = 2
[node name="CollisionShape3D" type="CollisionShape3D" parent="DialogueZone"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00627995, 0, -0.00723076)
shape = SubResource("CylinderShape3D_wfx33")
[node name="DialogueExitZone" type="Area3D" parent="."]
unique_name_in_owner = true
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.273779, 0, 0)
collision_layer = 2
collision_mask = 2
[node name="CollisionShape3D" type="CollisionShape3D" parent="DialogueExitZone"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00627995, 0, -0.00723076)
shape = SubResource("CylinderShape3D_lsu6x")