197 lines
10 KiB
Plaintext
197 lines
10 KiB
Plaintext
[gd_scene load_steps=39 format=3 uid="uid://bgoo1lbt28na"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://bhanbx2dyhv2d" path="res://Models/grape_man.glb" id="1_fh5yr"]
|
|
[ext_resource type="Script" path="res://Models/grape_man.gd" id="2_ksje8"]
|
|
[ext_resource type="AudioStream" uid="uid://bj1mb2km8fm8a" path="res://sfx/dropgrunt.ogg" id="3_nivx1"]
|
|
|
|
[sub_resource type="AnimationNodeAdd2" id="AnimationNodeAdd2_a0vxm"]
|
|
filter_enabled = true
|
|
filters = ["rig/Skeleton3D:forearm.L", "rig/Skeleton3D:forearm.R", "rig/Skeleton3D:head", "rig/Skeleton3D:upper_arm.L", "rig/Skeleton3D:upper_arm.R"]
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_s8uqe"]
|
|
animation = &"UpperBodyIdle"
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_4ft7i"]
|
|
animation = &"Idle"
|
|
|
|
[sub_resource type="AnimationNodeBlendTree" id="AnimationNodeBlendTree_ojr1k"]
|
|
graph_offset = Vector2(-312, -69)
|
|
nodes/Add2/node = SubResource("AnimationNodeAdd2_a0vxm")
|
|
nodes/Add2/position = Vector2(160, 80)
|
|
nodes/Animation/node = SubResource("AnimationNodeAnimation_4ft7i")
|
|
nodes/Animation/position = Vector2(0, 80)
|
|
"nodes/Animation 2/node" = SubResource("AnimationNodeAnimation_s8uqe")
|
|
"nodes/Animation 2/position" = Vector2(0, 220)
|
|
node_connections = [&"output", 0, &"Add2", &"Add2", 0, &"Animation", &"Add2", 1, &"Animation 2"]
|
|
|
|
[sub_resource type="AnimationNodeAdd2" id="AnimationNodeAdd2_4gk6k"]
|
|
filter_enabled = true
|
|
filters = ["rig/Skeleton3D:forearm.L", "rig/Skeleton3D:forearm.R", "rig/Skeleton3D:head", "rig/Skeleton3D:upper_arm.L", "rig/Skeleton3D:upper_arm.R"]
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_alnh1"]
|
|
animation = &"UpperBodyHolding"
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_mbatu"]
|
|
animation = &"Idle"
|
|
|
|
[sub_resource type="AnimationNodeBlendTree" id="AnimationNodeBlendTree_v72vt"]
|
|
graph_offset = Vector2(-205.16, 19.99)
|
|
nodes/Add2/node = SubResource("AnimationNodeAdd2_4gk6k")
|
|
nodes/Add2/position = Vector2(260, 100)
|
|
nodes/Animation/node = SubResource("AnimationNodeAnimation_mbatu")
|
|
nodes/Animation/position = Vector2(60, 100)
|
|
"nodes/Animation 2/node" = SubResource("AnimationNodeAnimation_alnh1")
|
|
"nodes/Animation 2/position" = Vector2(20, 220)
|
|
nodes/output/position = Vector2(460, 140)
|
|
node_connections = [&"output", 0, &"Add2", &"Add2", 0, &"Animation", &"Add2", 1, &"Animation 2"]
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_rrdxi"]
|
|
animation = &"Pickup"
|
|
|
|
[sub_resource type="AnimationNodeAdd2" id="AnimationNodeAdd2_rd6bn"]
|
|
filter_enabled = true
|
|
filters = ["rig/Skeleton3D:forearm.L", "rig/Skeleton3D:forearm.R", "rig/Skeleton3D:head", "rig/Skeleton3D:upper_arm.L", "rig/Skeleton3D:upper_arm.R"]
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_7s7tg"]
|
|
animation = &"UpperBodyIdle"
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_ir63n"]
|
|
animation = &"Walk"
|
|
|
|
[sub_resource type="AnimationNodeBlendTree" id="AnimationNodeBlendTree_6rmmo"]
|
|
graph_offset = Vector2(-358.186, -79.7423)
|
|
nodes/Add2/node = SubResource("AnimationNodeAdd2_rd6bn")
|
|
nodes/Add2/position = Vector2(140, 80)
|
|
nodes/Animation/node = SubResource("AnimationNodeAnimation_ir63n")
|
|
nodes/Animation/position = Vector2(-40, 60)
|
|
"nodes/Animation 2/node" = SubResource("AnimationNodeAnimation_7s7tg")
|
|
"nodes/Animation 2/position" = Vector2(-100, 180)
|
|
node_connections = [&"output", 0, &"Add2", &"Add2", 0, &"Animation", &"Add2", 1, &"Animation 2"]
|
|
|
|
[sub_resource type="AnimationNodeAdd2" id="AnimationNodeAdd2_sv87c"]
|
|
filter_enabled = true
|
|
filters = ["rig/Skeleton3D:forearm.L", "rig/Skeleton3D:forearm.R", "rig/Skeleton3D:head", "rig/Skeleton3D:upper_arm.L", "rig/Skeleton3D:upper_arm.R"]
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_y7bu0"]
|
|
animation = &"Walk"
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_t2s01"]
|
|
animation = &"UpperBodyHolding"
|
|
|
|
[sub_resource type="AnimationNodeBlendTree" id="AnimationNodeBlendTree_kalnq"]
|
|
graph_offset = Vector2(-260.079, -48.5605)
|
|
nodes/Add2/node = SubResource("AnimationNodeAdd2_sv87c")
|
|
nodes/Add2/position = Vector2(120, 40)
|
|
nodes/Animation/node = SubResource("AnimationNodeAnimation_t2s01")
|
|
nodes/Animation/position = Vector2(-120, 160)
|
|
"nodes/Animation 2/node" = SubResource("AnimationNodeAnimation_y7bu0")
|
|
"nodes/Animation 2/position" = Vector2(-70.4947, 47.7517)
|
|
node_connections = [&"output", 0, &"Add2", &"Add2", 0, &"Animation 2", &"Add2", 1, &"Animation"]
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_8sw6d"]
|
|
advance_mode = 2
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_71rn8"]
|
|
xfade_time = 0.3
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_cp7lp"]
|
|
xfade_time = 0.3
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_27n2r"]
|
|
xfade_time = 0.3
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_v26jl"]
|
|
xfade_time = 0.3
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_u0rau"]
|
|
xfade_time = 0.3
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_1hqga"]
|
|
xfade_time = 0.3
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_uekhs"]
|
|
xfade_time = 0.3
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_652wi"]
|
|
xfade_time = 0.3
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_sdgve"]
|
|
xfade_time = 0.3
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_otprv"]
|
|
xfade_time = 0.3
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_fbwhh"]
|
|
xfade_time = 0.3
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_4rq7a"]
|
|
xfade_time = 0.3
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_oange"]
|
|
xfade_time = 0.3
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_et4tx"]
|
|
xfade_time = 0.3
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_y2dr5"]
|
|
xfade_time = 0.3
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_ubbuf"]
|
|
xfade_time = 0.3
|
|
|
|
[sub_resource type="AnimationNodeStateMachine" id="AnimationNodeStateMachine_6mfdu"]
|
|
states/IdleEmpty/node = SubResource("AnimationNodeBlendTree_ojr1k")
|
|
states/IdleEmpty/position = Vector2(315, 186)
|
|
states/IdleHold/node = SubResource("AnimationNodeBlendTree_v72vt")
|
|
states/IdleHold/position = Vector2(592, 349)
|
|
states/Pickup/node = SubResource("AnimationNodeAnimation_rrdxi")
|
|
states/Pickup/position = Vector2(711, 105)
|
|
states/WalkEmpty/node = SubResource("AnimationNodeBlendTree_6rmmo")
|
|
states/WalkEmpty/position = Vector2(619, 219)
|
|
states/WalkHold/node = SubResource("AnimationNodeBlendTree_kalnq")
|
|
states/WalkHold/position = Vector2(351, 323)
|
|
transitions = ["Start", "IdleEmpty", SubResource("AnimationNodeStateMachineTransition_8sw6d"), "IdleEmpty", "WalkHold", SubResource("AnimationNodeStateMachineTransition_71rn8"), "WalkHold", "IdleEmpty", SubResource("AnimationNodeStateMachineTransition_cp7lp"), "WalkEmpty", "IdleEmpty", SubResource("AnimationNodeStateMachineTransition_27n2r"), "IdleEmpty", "WalkEmpty", SubResource("AnimationNodeStateMachineTransition_v26jl"), "IdleHold", "WalkHold", SubResource("AnimationNodeStateMachineTransition_u0rau"), "IdleHold", "WalkEmpty", SubResource("AnimationNodeStateMachineTransition_1hqga"), "WalkEmpty", "IdleHold", SubResource("AnimationNodeStateMachineTransition_uekhs"), "WalkHold", "IdleHold", SubResource("AnimationNodeStateMachineTransition_652wi"), "IdleEmpty", "Pickup", SubResource("AnimationNodeStateMachineTransition_sdgve"), "Pickup", "IdleEmpty", SubResource("AnimationNodeStateMachineTransition_otprv"), "IdleEmpty", "IdleHold", SubResource("AnimationNodeStateMachineTransition_fbwhh"), "IdleHold", "IdleEmpty", SubResource("AnimationNodeStateMachineTransition_4rq7a"), "WalkHold", "WalkEmpty", SubResource("AnimationNodeStateMachineTransition_oange"), "WalkEmpty", "WalkHold", SubResource("AnimationNodeStateMachineTransition_et4tx"), "Pickup", "IdleHold", SubResource("AnimationNodeStateMachineTransition_y2dr5"), "IdleHold", "Pickup", SubResource("AnimationNodeStateMachineTransition_ubbuf")]
|
|
graph_offset = Vector2(-41, 73)
|
|
|
|
[node name="grape_man" instance=ExtResource("1_fh5yr")]
|
|
transform = Transform3D(0.065, 0, 0, 0, 0.065, 0, 0, 0, 0.065, 0, 0, 0)
|
|
script = ExtResource("2_ksje8")
|
|
|
|
[node name="Skeleton3D" parent="rig" index="0"]
|
|
bones/0/position = Vector3(0, 1.03829, -0.022716)
|
|
bones/0/rotation = Quaternion(0.0615938, 0, 0, 0.998101)
|
|
bones/1/rotation = Quaternion(-0.0891896, 1.18734e-07, -1.06322e-08, 0.996015)
|
|
bones/2/rotation = Quaternion(0.0133932, -1.19199e-07, 1.5966e-09, 0.99991)
|
|
bones/3/rotation = Quaternion(0.467612, 0.0653885, -0.582913, 0.661268)
|
|
bones/4/rotation = Quaternion(0.533287, -0.180573, 0.469101, 0.680399)
|
|
bones/4/scale = Vector3(1, 1, 1)
|
|
bones/5/rotation = Quaternion(0.467612, -0.0653884, 0.582913, 0.661268)
|
|
bones/6/rotation = Quaternion(0.533287, 0.180573, -0.469101, 0.680399)
|
|
bones/6/scale = Vector3(1, 1, 1)
|
|
bones/7/rotation = Quaternion(0.0142813, -6.34259e-18, -4.44044e-16, 0.999898)
|
|
bones/8/rotation = Quaternion(0.197065, 6.31981e-16, -1.33238e-15, 0.98039)
|
|
bones/9/position = Vector3(0.155448, 0.891297, -0.0224623)
|
|
bones/10/rotation = Quaternion(0.105246, 0.0039338, -0.0113526, 0.994374)
|
|
bones/14/position = Vector3(-0.155448, 0.891297, -0.0224622)
|
|
bones/15/rotation = Quaternion(0.105246, -0.0039338, 0.0113526, 0.994374)
|
|
|
|
[node name="GrabPointLocation" type="Node3D" parent="." index="2"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1.29365)
|
|
|
|
[node name="OmniLight3D" type="OmniLight3D" parent="." index="3"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.289473, 8.26292, 4.26359)
|
|
|
|
[node name="AnimationTree" type="AnimationTree" parent="." index="4"]
|
|
tree_root = SubResource("AnimationNodeStateMachine_6mfdu")
|
|
anim_player = NodePath("../AnimationPlayer")
|
|
active = true
|
|
parameters/IdleEmpty/Add2/add_amount = 1.0
|
|
parameters/IdleHold/Add2/add_amount = 1.0
|
|
parameters/WalkEmpty/Add2/add_amount = 1.0
|
|
parameters/WalkHold/Add2/add_amount = 1.0
|
|
|
|
[node name="PlayerSounds" type="AudioStreamPlayer" parent="." index="5"]
|
|
stream = ExtResource("3_nivx1")
|
|
|
|
[connection signal="animation_finished" from="AnimationTree" to="." method="_on_animation_tree_animation_finished"]
|