[gd_scene load_steps=15 format=3 uid="uid://brrd33217oplv"] [ext_resource type="PackedScene" uid="uid://cyqr1ojnddyk0" path="res://assets/npc/shambler/shambler.gltf" id="1_uiw1a"] [ext_resource type="Material" uid="uid://7xrgrvf3lymv" path="res://assets/npc/shambler/shambler.material" id="2_nayyt"] [ext_resource type="Script" uid="uid://bueq1q2qva7gs" path="res://src/world/grunk_beast/shambler/shambler.gd" id="2_s7rwx"] [sub_resource type="Curve" id="Curve_s7rwx"] _limits = [0.0, 1.0, 0.0, 10.0] _data = [Vector2(0, 0), 0.0, 0.230666, 0, 0, Vector2(5, 1), 0.0, 0.0, 0, 0, Vector2(10, 1), 0.0, 0.0, 0, 0] point_count = 3 [sub_resource type="Curve" id="Curve_vmxrd"] _limits = [0.0, 3.0, 0.0, 10.0] _data = [Vector2(4, 1), 0.141612, 0.141612, 0, 0, Vector2(5, 1.2), 0.327899, 0.327899, 0, 0, Vector2(10, 3), 0.392484, 0.0, 0, 0] point_count = 3 [sub_resource type="Curve" id="Curve_elp7k"] _limits = [0.0, 6.0, 0.0, 10.0] _data = [Vector2(2, 1), 0.0, 0.0, 0, 0, Vector2(4, 3), 0.953378, 0.953378, 0, 0, Vector2(10, 6), 0.0, 0.0, 0, 0] point_count = 3 [sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_nayyt"] animation = &"idle" [sub_resource type="AnimationNodeBlend2" id="AnimationNodeBlend2_nayyt"] [sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_s7rwx"] animation = &"shamble" [sub_resource type="AnimationNodeTimeScale" id="AnimationNodeTimeScale_vmxrd"] [sub_resource type="AnimationNodeOneShot" id="AnimationNodeOneShot_s7rwx"] mix_mode = 1 [sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_vmxrd"] animation = &"step_left" [sub_resource type="AnimationNodeBlendTree" id="AnimationNodeBlendTree_nayyt"] graph_offset = Vector2(-970.678, -40.9846) nodes/idle_anim/node = SubResource("AnimationNodeAnimation_nayyt") nodes/idle_anim/position = Vector2(-460, 20) nodes/output/position = Vector2(500, 160) nodes/shamble_blend/node = SubResource("AnimationNodeBlend2_nayyt") nodes/shamble_blend/position = Vector2(20, 180) nodes/shamble_cycle/node = SubResource("AnimationNodeAnimation_s7rwx") nodes/shamble_cycle/position = Vector2(-460, 280) nodes/shamble_scale/node = SubResource("AnimationNodeTimeScale_vmxrd") nodes/shamble_scale/position = Vector2(-220, 280) nodes/step_action/node = SubResource("AnimationNodeOneShot_s7rwx") nodes/step_action/position = Vector2(260, 140) nodes/step_anim/node = SubResource("AnimationNodeAnimation_vmxrd") nodes/step_anim/position = Vector2(40, 460) node_connections = [&"output", 0, &"step_action", &"shamble_blend", 0, &"idle_anim", &"shamble_blend", 1, &"shamble_scale", &"shamble_scale", 0, &"shamble_cycle", &"step_action", 0, &"shamble_blend", &"step_action", 1, &"step_anim"] [sub_resource type="SphereMesh" id="SphereMesh_s7rwx"] [node name="Shambler" instance=ExtResource("1_uiw1a")] script = ExtResource("2_s7rwx") walk_blend_curve = SubResource("Curve_s7rwx") walk_scale_curve = SubResource("Curve_vmxrd") look_accel_curve = SubResource("Curve_elp7k") [node name="Armature" parent="." index="0"] unique_name_in_owner = true transform = Transform3D(0.8, 0, 0, 0, 0.8, 0, 0, 0, 0.8, 0, 0, 0) top_level = true [node name="Shambler" parent="Armature/Skeleton3D" index="0"] surface_material_override/0 = ExtResource("2_nayyt") [node name="LookIK" type="LookAtModifier3D" parent="Armature/Skeleton3D" index="1"] target_node = NodePath("../../../LookTargetPivot/LookTarget") bone_name = "Spine.005" bone = 5 forward_axis = 2 primary_rotation_axis = 2 use_secondary_rotation = false use_angle_limitation = true symmetry_limitation = true primary_limit_angle = 1.5708 primary_damp_threshold = 0.7 [node name="ArmLIK" type="LookAtModifier3D" parent="Armature/Skeleton3D" index="2"] bone_name = "Arm.L.002" bone = 8 forward_axis = 2 primary_rotation_axis = 2 [node name="ArmRIK" type="LookAtModifier3D" parent="Armature/Skeleton3D" index="3"] bone_name = "Arm.R.002" bone = 11 forward_axis = 2 primary_rotation_axis = 2 [node name="AnimationPlayer" parent="." index="1"] unique_name_in_owner = true [node name="AnimationTree" type="AnimationTree" parent="." index="2"] unique_name_in_owner = true root_node = NodePath("%AnimationTree/..") tree_root = SubResource("AnimationNodeBlendTree_nayyt") anim_player = NodePath("../AnimationPlayer") parameters/shamble_blend/blend_amount = 0.0 parameters/shamble_scale/scale = 1.0 parameters/step_action/active = false parameters/step_action/internal_active = false parameters/step_action/request = 0 [node name="LookTargetPivot" type="Node3D" parent="." index="3"] unique_name_in_owner = true top_level = true [node name="LookTarget" type="Marker3D" parent="LookTargetPivot" index="0"] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 10) [node name="MeshInstance3D" type="MeshInstance3D" parent="LookTargetPivot/LookTarget" index="0"] mesh = SubResource("SphereMesh_s7rwx")