53 lines
2.3 KiB
Plaintext
53 lines
2.3 KiB
Plaintext
[gd_scene load_steps=10 format=3 uid="uid://dr4b2pmsknuhc"]
|
|
|
|
[ext_resource type="Script" uid="uid://d23qg1ovkbxst" path="res://scripts/Entity/BasicNPCEntity.gd" id="1_1muh7"]
|
|
[ext_resource type="Shader" uid="uid://7h2axb2tsh17" path="res://shaders/NPC Shader.gdshader" id="1_xgcv1"]
|
|
[ext_resource type="Script" uid="uid://dtjjqp2atjyhr" path="res://scripts/Entity/Entity.gd" id="2_ehu3x"]
|
|
[ext_resource type="Script" uid="uid://cjfcpi7sxentf" path="res://scripts/Entity/Component/EntityDirection.gd" id="3_gyi1p"]
|
|
[ext_resource type="Script" uid="uid://c5nfs0m6ua4eb" path="res://scripts/Entity/Component/EntityMovement.gd" id="4_3wesq"]
|
|
[ext_resource type="Texture2D" uid="uid://cofrgefp8e617" path="res://textures/human.png" id="4_vo0ku"]
|
|
|
|
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_dw1sy"]
|
|
radius = 0.420979
|
|
height = 0.919425
|
|
|
|
[sub_resource type="QuadMesh" id="QuadMesh_xhkdv"]
|
|
|
|
[sub_resource type="ShaderMaterial" id="ShaderMaterial_l4utx"]
|
|
render_priority = 0
|
|
shader = ExtResource("1_xgcv1")
|
|
shader_parameter/npcTexture = ExtResource("4_vo0ku")
|
|
shader_parameter/color = Color(0, 0.563816, 0, 1)
|
|
shader_parameter/frame = 0
|
|
shader_parameter/direction = 0
|
|
|
|
[node name="TestNpc" type="CharacterBody3D"]
|
|
collision_layer = 2
|
|
collision_mask = 258
|
|
script = ExtResource("1_1muh7")
|
|
metadata/_custom_type_script = "uid://d23qg1ovkbxst"
|
|
|
|
[node name="Entity" type="Node" parent="."]
|
|
script = ExtResource("2_ehu3x")
|
|
metadata/_custom_type_script = "uid://dtjjqp2atjyhr"
|
|
|
|
[node name="EntityDirection" type="Node" parent="Entity" node_paths=PackedStringArray("meshInstance")]
|
|
script = ExtResource("3_gyi1p")
|
|
meshInstance = NodePath("../../MeshInstance3D")
|
|
metadata/_custom_type_script = "uid://cjfcpi7sxentf"
|
|
|
|
[node name="EntityMoving" type="Node" parent="Entity" node_paths=PackedStringArray("characterBody", "entity", "entityDirection")]
|
|
script = ExtResource("4_3wesq")
|
|
characterBody = NodePath("../..")
|
|
entity = NodePath("..")
|
|
entityDirection = NodePath("../EntityDirection")
|
|
movementType = 2
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
|
shape = SubResource("CapsuleShape3D_dw1sy")
|
|
|
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 0.173648, 0.984808, 0, -0.984808, 0.173648, 0.00989294, 0, 0)
|
|
mesh = SubResource("QuadMesh_xhkdv")
|
|
surface_material_override/0 = SubResource("ShaderMaterial_l4utx")
|