141 lines
4.3 KiB
Plaintext
141 lines
4.3 KiB
Plaintext
[gd_scene load_steps=15 format=3 uid="uid://d4l4qutp8x40c"]
|
|
|
|
[ext_resource type="Script" uid="uid://dcqssoikr3pl7" path="res://src/npc/Npc.cs" id="1_4xcbq"]
|
|
[ext_resource type="Resource" uid="uid://cf7ycgdiihyh" path="res://src/npc/Rat/ratdialogue.dialogue" id="2_ru5ai"]
|
|
[ext_resource type="Texture2D" uid="uid://bstqqjmo45kny" path="res://src/npc/Rat/Frames - Teky/1.png" id="3_vmosa"]
|
|
[ext_resource type="Texture2D" uid="uid://hb3s4rgche5q" path="res://src/npc/Rat/Frames - Teky/2.png" id="4_gb32p"]
|
|
[ext_resource type="Texture2D" uid="uid://dfkxdiyiavxcp" path="res://src/npc/Rat/Frames - Teky/3.png" id="5_gbae2"]
|
|
[ext_resource type="Texture2D" uid="uid://cxlqx5s0e2rmp" path="res://src/npc/Rat/Frames - Teky/5.png" id="6_juxnv"]
|
|
[ext_resource type="Texture2D" uid="uid://dafpnwkwcukp4" path="res://src/vfx/shadow_test_1.png" id="7_gb32p"]
|
|
|
|
[sub_resource type="Animation" id="Animation_gb32p"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath(".:frame")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [0]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_vmosa"]
|
|
resource_name = "new_animation"
|
|
length = 2.20002
|
|
loop_mode = 1
|
|
step = 0.2
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath(".:frame")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 1, 2.2),
|
|
"transitions": PackedFloat32Array(1, 1, 1),
|
|
"update": 0,
|
|
"values": [0, 5, 0]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_gbae2"]
|
|
_data = {
|
|
&"RESET": SubResource("Animation_gb32p"),
|
|
&"new_animation": SubResource("Animation_vmosa")
|
|
}
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_02w3f"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("3_vmosa")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("4_gb32p")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("5_gbae2")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("6_juxnv")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("5_gbae2")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": ExtResource("4_gb32p")
|
|
}],
|
|
"loop": true,
|
|
"name": &"default",
|
|
"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
|
|
|
|
[sub_resource type="CylinderShape3D" id="CylinderShape3D_nwuwj"]
|
|
height = 2.24425
|
|
radius = 1.941
|
|
|
|
[node name="NPC" type="Node3D"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.263835, 0, 0)
|
|
script = ExtResource("1_4xcbq")
|
|
Dialogue = ExtResource("2_ru5ai")
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
root_node = NodePath("../AnimatedSprite3D")
|
|
libraries = {
|
|
&"": SubResource("AnimationLibrary_gbae2")
|
|
}
|
|
autoplay = "new_animation"
|
|
|
|
[node name="AnimatedSprite3D" type="AnimatedSprite3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.273222, 0, -0.0211143)
|
|
billboard = 2
|
|
shaded = true
|
|
texture_filter = 1
|
|
sprite_frames = SubResource("SpriteFrames_02w3f")
|
|
autoplay = "default"
|
|
|
|
[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_wfhgc")
|
|
|
|
[node name="Collision" type="RigidBody3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0978584, 0.0479951, 0)
|
|
collision_mask = 0
|
|
gravity_scale = 0.0
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Collision"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.171734, 0, 0)
|
|
shape = SubResource("CapsuleShape3D_kg3qv")
|
|
|
|
[node name="Hitbox" type="Area3D" parent="."]
|
|
unique_name_in_owner = true
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.269574, 0, 0)
|
|
collision_layer = 0
|
|
collision_mask = 2068
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Hitbox"]
|
|
shape = SubResource("CylinderShape3D_nwuwj")
|
|
|
|
[node name="Shadow" type="Sprite3D" parent="."]
|
|
transform = Transform3D(0.825, 0, 0, 0, -3.60619e-08, 0.825, 0, -0.825, -3.60619e-08, -0.259998, -1.44129, 0)
|
|
transparency = 0.1
|
|
cast_shadow = 0
|
|
texture_filter = 0
|
|
texture = ExtResource("7_gb32p")
|