405 lines
12 KiB
Text
405 lines
12 KiB
Text
[gd_scene load_steps=21 format=3 uid="uid://dlsh4dfqgtvan"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://du3d2gb1rri4t" path="res://icon.svg" id="1_6nn2t"]
|
|
[ext_resource type="Script" uid="uid://1uwdiveyijuu" path="res://scenes/character/character.gd" id="1_cuyo6"]
|
|
[ext_resource type="Texture2D" uid="uid://dtxymku41phdj" path="res://assets/player/player.png" id="2_bix7t"]
|
|
[ext_resource type="PackedScene" uid="uid://bhr8ggg3suw46" path="res://scenes/character/shotGlas/shotGlas.tscn" id="3_mutn8"]
|
|
[ext_resource type="PackedScene" uid="uid://daj8ue8u3fjw6" path="res://scenes/character/gun/gun.tscn" id="4_fgi2k"]
|
|
[ext_resource type="AudioStream" uid="uid://bb2odit8okuma" path="res://assets/audio/shoot2.wav" id="5_7ex5l"]
|
|
[ext_resource type="AudioStream" uid="uid://d1plcwujuslyx" path="res://assets/audio/heal.wav" id="5_q52vl"]
|
|
[ext_resource type="AudioStream" uid="uid://b1jqrw6p8mtwu" path="res://assets/audio/trigger.wav" id="6_7ex5l"]
|
|
[ext_resource type="FontFile" uid="uid://bl6jbonkrdy03" path="res://assets/font/minecraft-font/MinecraftBold-nMK1.otf" id="8_bblvu"]
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_cuyo6"]
|
|
albedo_texture = ExtResource("1_6nn2t")
|
|
|
|
[sub_resource type="PlaneMesh" id="PlaneMesh_mutn8"]
|
|
material = SubResource("StandardMaterial3D_cuyo6")
|
|
size = Vector2(1, 1)
|
|
orientation = 2
|
|
|
|
[sub_resource type="BoxMesh" id="BoxMesh_cuyo6"]
|
|
|
|
[sub_resource type="Animation" id="Animation_bix7t"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Shots/ShotGlas1:position")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Vector3(-0.3, 1.12, -0.8)]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("Shots/ShotGlas1:rotation")
|
|
tracks/1/interp = 1
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Vector3(0, 0, 0)]
|
|
}
|
|
tracks/2/type = "value"
|
|
tracks/2/imported = false
|
|
tracks/2/enabled = true
|
|
tracks/2/path = NodePath("Shots/ShotGlas2:position")
|
|
tracks/2/interp = 1
|
|
tracks/2/loop_wrap = true
|
|
tracks/2/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Vector3(0, 1.12, -0.8)]
|
|
}
|
|
tracks/3/type = "value"
|
|
tracks/3/imported = false
|
|
tracks/3/enabled = true
|
|
tracks/3/path = NodePath("Shots/ShotGlas2:rotation")
|
|
tracks/3/interp = 1
|
|
tracks/3/loop_wrap = true
|
|
tracks/3/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Vector3(0, 0, 0)]
|
|
}
|
|
tracks/4/type = "value"
|
|
tracks/4/imported = false
|
|
tracks/4/enabled = true
|
|
tracks/4/path = NodePath("Shots/ShotGlas3:position")
|
|
tracks/4/interp = 1
|
|
tracks/4/loop_wrap = true
|
|
tracks/4/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Vector3(0.3, 1.12, -0.8)]
|
|
}
|
|
tracks/5/type = "value"
|
|
tracks/5/imported = false
|
|
tracks/5/enabled = true
|
|
tracks/5/path = NodePath("Shots/ShotGlas3:rotation")
|
|
tracks/5/interp = 1
|
|
tracks/5/loop_wrap = true
|
|
tracks/5/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Vector3(0, 0, 0)]
|
|
}
|
|
tracks/6/type = "value"
|
|
tracks/6/imported = false
|
|
tracks/6/enabled = true
|
|
tracks/6/path = NodePath("Shots/healAudio:playing")
|
|
tracks/6/interp = 1
|
|
tracks/6/loop_wrap = true
|
|
tracks/6/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [false]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_7ex5l"]
|
|
resource_name = "drinkShot1"
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Shots/ShotGlas1:position")
|
|
tracks/0/interp = 2
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.5),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 0,
|
|
"values": [Vector3(-0.3, 1.12, -0.8), Vector3(0, 1.5, -1.1)]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("Shots/ShotGlas1:rotation")
|
|
tracks/1/interp = 2
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0, 0.5, 0.7),
|
|
"transitions": PackedFloat32Array(1, 1, 1),
|
|
"update": 0,
|
|
"values": [Vector3(0, 0, 0), Vector3(0, 0, 0), Vector3(-0.523599, 0, 0)]
|
|
}
|
|
tracks/2/type = "method"
|
|
tracks/2/imported = false
|
|
tracks/2/enabled = true
|
|
tracks/2/path = NodePath("Shots/ShotGlas1")
|
|
tracks/2/interp = 1
|
|
tracks/2/loop_wrap = true
|
|
tracks/2/keys = {
|
|
"times": PackedFloat32Array(1),
|
|
"transitions": PackedFloat32Array(1),
|
|
"values": [{
|
|
"args": [],
|
|
"method": &"queue_free"
|
|
}]
|
|
}
|
|
tracks/3/type = "value"
|
|
tracks/3/imported = false
|
|
tracks/3/enabled = true
|
|
tracks/3/path = NodePath("Shots/healAudio:playing")
|
|
tracks/3/interp = 1
|
|
tracks/3/loop_wrap = true
|
|
tracks/3/keys = {
|
|
"times": PackedFloat32Array(0.933333),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [true]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_f8hpl"]
|
|
resource_name = "drinkShot2"
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Shots/ShotGlas2:position")
|
|
tracks/0/interp = 2
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.5),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 0,
|
|
"values": [Vector3(0, 1.12, -0.8), Vector3(0, 1.5, -1.1)]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("Shots/ShotGlas2:rotation")
|
|
tracks/1/interp = 2
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0, 0.5, 0.7),
|
|
"transitions": PackedFloat32Array(1, 1, 1),
|
|
"update": 0,
|
|
"values": [Vector3(0, 0, 0), Vector3(0, 0, 0), Vector3(-0.523599, 0, 0)]
|
|
}
|
|
tracks/2/type = "method"
|
|
tracks/2/imported = false
|
|
tracks/2/enabled = true
|
|
tracks/2/path = NodePath("Shots/ShotGlas2")
|
|
tracks/2/interp = 1
|
|
tracks/2/loop_wrap = true
|
|
tracks/2/keys = {
|
|
"times": PackedFloat32Array(1),
|
|
"transitions": PackedFloat32Array(1),
|
|
"values": [{
|
|
"args": [],
|
|
"method": &"queue_free"
|
|
}]
|
|
}
|
|
tracks/3/type = "value"
|
|
tracks/3/imported = false
|
|
tracks/3/enabled = true
|
|
tracks/3/path = NodePath("Shots/healAudio:playing")
|
|
tracks/3/interp = 1
|
|
tracks/3/loop_wrap = true
|
|
tracks/3/keys = {
|
|
"times": PackedFloat32Array(0.933333),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [true]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_bblvu"]
|
|
resource_name = "drinkShot3"
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Shots/ShotGlas3:position")
|
|
tracks/0/interp = 2
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.5),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 0,
|
|
"values": [Vector3(0.3, 1.12, -0.8), Vector3(0, 1.5, -1.1)]
|
|
}
|
|
tracks/1/type = "value"
|
|
tracks/1/imported = false
|
|
tracks/1/enabled = true
|
|
tracks/1/path = NodePath("Shots/ShotGlas3:rotation")
|
|
tracks/1/interp = 2
|
|
tracks/1/loop_wrap = true
|
|
tracks/1/keys = {
|
|
"times": PackedFloat32Array(0, 0.5, 0.7),
|
|
"transitions": PackedFloat32Array(1, 1, 1),
|
|
"update": 0,
|
|
"values": [Vector3(0, 0, 0), Vector3(0, 0, 0), Vector3(-0.523599, 0, 0)]
|
|
}
|
|
tracks/2/type = "method"
|
|
tracks/2/imported = false
|
|
tracks/2/enabled = true
|
|
tracks/2/path = NodePath("Shots/ShotGlas3")
|
|
tracks/2/interp = 1
|
|
tracks/2/loop_wrap = true
|
|
tracks/2/keys = {
|
|
"times": PackedFloat32Array(1),
|
|
"transitions": PackedFloat32Array(1),
|
|
"values": [{
|
|
"args": [],
|
|
"method": &"queue_free"
|
|
}]
|
|
}
|
|
tracks/3/type = "value"
|
|
tracks/3/imported = false
|
|
tracks/3/enabled = true
|
|
tracks/3/path = NodePath("Shots/healAudio:playing")
|
|
tracks/3/interp = 1
|
|
tracks/3/loop_wrap = true
|
|
tracks/3/keys = {
|
|
"times": PackedFloat32Array(0.933333),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [true]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_bblvu"]
|
|
_data = {
|
|
&"RESET": SubResource("Animation_bix7t"),
|
|
&"drinkShot1": SubResource("Animation_7ex5l"),
|
|
&"drinkShot2": SubResource("Animation_f8hpl"),
|
|
&"drinkShot3": SubResource("Animation_bblvu")
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_l884r"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("../GunPositions/GunPosition1/DirectionalLight3D:visible")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [false]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_q52vl"]
|
|
resource_name = "shoot"
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("../GunPositions/GunPosition1/DirectionalLight3D:visible")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.05, 0.1),
|
|
"transitions": PackedFloat32Array(1, 1, 1),
|
|
"update": 0,
|
|
"values": [false, true, false]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_f8hpl"]
|
|
_data = {
|
|
&"RESET": SubResource("Animation_l884r"),
|
|
&"shoot": SubResource("Animation_q52vl")
|
|
}
|
|
|
|
[node name="Character" type="Node3D"]
|
|
script = ExtResource("1_cuyo6")
|
|
|
|
[node name="Sprite3D" type="Sprite3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.4, -1.2)
|
|
shaded = true
|
|
double_sided = false
|
|
texture_filter = 0
|
|
texture = ExtResource("2_bix7t")
|
|
|
|
[node name="Character" type="MeshInstance3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.4, -1.2)
|
|
visible = false
|
|
mesh = SubResource("PlaneMesh_mutn8")
|
|
|
|
[node name="Chair" type="CSGMesh3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.4, -1.2)
|
|
visible = false
|
|
mesh = SubResource("BoxMesh_cuyo6")
|
|
|
|
[node name="Shots" type="Node3D" parent="."]
|
|
|
|
[node name="ShotGlas1" parent="Shots" instance=ExtResource("3_mutn8")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.3, 1.12, -0.8)
|
|
|
|
[node name="ShotGlas2" parent="Shots" instance=ExtResource("3_mutn8")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.12, -0.8)
|
|
|
|
[node name="ShotGlas3" parent="Shots" instance=ExtResource("3_mutn8")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.3, 1.12, -0.8)
|
|
|
|
[node name="shotAnimations" type="AnimationPlayer" parent="Shots"]
|
|
root_node = NodePath("../..")
|
|
libraries = {
|
|
&"": SubResource("AnimationLibrary_bblvu")
|
|
}
|
|
|
|
[node name="healAudio" type="AudioStreamPlayer" parent="Shots"]
|
|
stream = ExtResource("5_q52vl")
|
|
|
|
[node name="gun" parent="." instance=ExtResource("4_fgi2k")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.3, 1.3, -1)
|
|
|
|
[node name="gunAnimations" type="AnimationPlayer" parent="gun"]
|
|
libraries = {
|
|
&"": SubResource("AnimationLibrary_f8hpl")
|
|
}
|
|
|
|
[node name="triggerAudio" type="AudioStreamPlayer3D" parent="gun"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.1, 0.1)
|
|
stream = ExtResource("6_7ex5l")
|
|
|
|
[node name="HeadPosition" type="Marker3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.3, 1.4, -1.2)
|
|
|
|
[node name="GunPositions" type="Node3D" parent="."]
|
|
|
|
[node name="GunPosition1" type="Marker3D" parent="GunPositions"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.3, 1.3, -1)
|
|
|
|
[node name="DirectionalLight3D" type="OmniLight3D" parent="GunPositions/GunPosition1"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.1, 0.7)
|
|
visible = false
|
|
light_color = Color(1, 0.933333, 0, 1)
|
|
light_energy = 2.0
|
|
|
|
[node name="shootAudio" type="AudioStreamPlayer3D" parent="GunPositions/GunPosition1"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.1, 0.5)
|
|
stream = ExtResource("5_7ex5l")
|
|
volume_db = -15.0
|
|
|
|
[node name="GunPosition2" type="Marker3D" parent="GunPositions"]
|
|
transform = Transform3D(-0.173648, 0, 0.984808, 0, 1, 0, -0.984808, 0, -0.173648, -0.9, 1.42, -1)
|
|
|
|
[node name="GunPosition3" type="Marker3D" parent="GunPositions"]
|
|
transform = Transform3D(-4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0, 0, 1, -0.0999999, 0.92, 3.72529e-08)
|
|
|
|
[node name="GunPosition4" type="Marker3D" parent="GunPositions"]
|
|
transform = Transform3D(0.839491, 0.460136, 0.289014, -0.37369, 0.875034, -0.307686, -0.394475, 0.150298, 0.906531, 0.3, 1.3, -1.2)
|
|
|
|
[node name="GunPosition5" type="Marker3D" parent="GunPositions"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5.96046e-08, 0.82, 0.2)
|
|
|
|
[node name="cameraRottion" type="Node3D" parent="."]
|
|
transform = Transform3D(-1, 0, 8.74228e-08, 0, 1, 0, -8.74228e-08, 0, -1, 0, 0, 0)
|
|
|
|
[node name="gameNameLabel" type="Label3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2, -1.2)
|
|
visible = false
|
|
text = "asdasd"
|
|
font = ExtResource("8_bblvu")
|
|
|
|
[connection signal="current_animation_changed" from="Shots/shotAnimations" to="." method="_on_shot_animations_current_animation_changed"]
|