84 lines
3.8 KiB
Plaintext
84 lines
3.8 KiB
Plaintext
[gd_scene load_steps=12 format=3 uid="uid://bw8cabkva3k4f"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://c70vx0utm5knp" path="res://scenes/units/abstract/unit.tscn" id="1_ghhpv"]
|
|
[ext_resource type="Script" path="res://scripts/units/aphid.gd" id="2_c6sy4"]
|
|
[ext_resource type="PackedScene" uid="uid://ch02ae8fj2lhh" path="res://assets/models/aphid.glb" id="2_vtmi4"]
|
|
[ext_resource type="AudioStream" uid="uid://bqt1xdorarhoi" path="res://assets/audio/units/aphid_move.wav" id="5_f4mon"]
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_vr4bn"]
|
|
animation = &"idle"
|
|
|
|
[sub_resource type="AnimationNodeBlend2" id="AnimationNodeBlend2_6hdai"]
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_la1j2"]
|
|
animation = &"plop"
|
|
|
|
[sub_resource type="AnimationNodeOneShot" id="AnimationNodeOneShot_qspit"]
|
|
filter_enabled = true
|
|
filters = ["Armature/Skeleton3D:Root"]
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_g6qll"]
|
|
animation = &"walk"
|
|
|
|
[sub_resource type="AnimationNodeBlendTree" id="AnimationNodeBlendTree_a3xja"]
|
|
graph_offset = Vector2(-418.868, 27.0018)
|
|
nodes/idle_anim/node = SubResource("AnimationNodeAnimation_vr4bn")
|
|
nodes/idle_anim/position = Vector2(-180, 100)
|
|
nodes/locomotion_blend/node = SubResource("AnimationNodeBlend2_6hdai")
|
|
nodes/locomotion_blend/position = Vector2(20, 140)
|
|
nodes/output/position = Vector2(500, 160)
|
|
nodes/plop_anim/node = SubResource("AnimationNodeAnimation_la1j2")
|
|
nodes/plop_anim/position = Vector2(100, 380)
|
|
nodes/plop_oneshot/node = SubResource("AnimationNodeOneShot_qspit")
|
|
nodes/plop_oneshot/position = Vector2(300, 220)
|
|
nodes/walk_anim/node = SubResource("AnimationNodeAnimation_g6qll")
|
|
nodes/walk_anim/position = Vector2(-180, 260)
|
|
node_connections = [&"locomotion_blend", 0, &"idle_anim", &"locomotion_blend", 1, &"walk_anim", &"output", 0, &"plop_oneshot", &"plop_oneshot", 0, &"locomotion_blend", &"plop_oneshot", 1, &"plop_anim"]
|
|
|
|
[sub_resource type="SphereShape3D" id="SphereShape3D_t1vrx"]
|
|
radius = 0.3
|
|
|
|
[node name="Aphid" instance=ExtResource("1_ghhpv")]
|
|
script = ExtResource("2_c6sy4")
|
|
|
|
[node name="AphidModel" parent="." index="0" instance=ExtResource("2_vtmi4")]
|
|
|
|
[node name="Skeleton3D" parent="AphidModel/Armature" index="0"]
|
|
bones/2/rotation = Quaternion(3.38449e-07, 0.863712, 0.503987, 5.80021e-07)
|
|
bones/3/rotation = Quaternion(0.526107, 8.35521e-14, -7.06609e-07, 0.850418)
|
|
bones/6/rotation = Quaternion(-3.38449e-07, 0.863712, 0.503987, -5.80021e-07)
|
|
bones/7/rotation = Quaternion(0.526107, -8.35521e-14, 7.06609e-07, 0.850418)
|
|
bones/10/rotation = Quaternion(-0.235443, 0.235445, -0.666758, 0.666758)
|
|
bones/11/rotation = Quaternion(-0.235443, 0.235445, -0.666758, 0.666758)
|
|
bones/12/scale = Vector3(1, 1, 1)
|
|
bones/13/rotation = Quaternion(-0.235443, -0.235445, 0.666758, 0.666758)
|
|
bones/14/rotation = Quaternion(-0.235443, -0.235445, 0.666758, 0.666758)
|
|
bones/15/scale = Vector3(1, 1, 1)
|
|
|
|
[node name="AnimationPlayer" parent="AphidModel" index="1"]
|
|
deterministic = true
|
|
|
|
[node name="AnimationTree" parent="." index="1"]
|
|
root_node = NodePath("../AphidModel")
|
|
tree_root = SubResource("AnimationNodeBlendTree_a3xja")
|
|
anim_player = NodePath("../AphidModel/AnimationPlayer")
|
|
parameters/locomotion_blend/blend_amount = 0.0
|
|
parameters/plop_oneshot/active = false
|
|
parameters/plop_oneshot/internal_active = false
|
|
parameters/plop_oneshot/request = 0
|
|
|
|
[node name="CollisionShape3D" parent="." index="2"]
|
|
shape = SubResource("SphereShape3D_t1vrx")
|
|
|
|
[node name="HoverIndicator" parent="." index="3"]
|
|
transform = Transform3D(0.759866, 0, 0, 0, 0.759866, 0, 0, 0, 0.759866, 0, 0, 0)
|
|
|
|
[node name="UiOrigin" parent="." index="6"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.531, 0)
|
|
|
|
[node name="MoveSoundPlayer" parent="." index="9"]
|
|
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0.25, 0)
|
|
stream = ExtResource("5_f4mon")
|
|
|
|
[editable path="AphidModel"]
|