195 lines
6.8 KiB
Plaintext
195 lines
6.8 KiB
Plaintext
[gd_scene load_steps=17 format=3 uid="uid://gah3mb1glkkg"]
|
|
|
|
[ext_resource type="Script" uid="uid://bvykx45u8uuv3" path="res://scripts/character.gd" id="1_qw4fy"]
|
|
[ext_resource type="PackedScene" uid="uid://3mij3cjhkwsm" path="res://addons/fpc/reticles/reticle_1.tscn" id="2_terp6"]
|
|
[ext_resource type="Texture2D" uid="uid://c3rik4gpdicid" path="res://sprites/fpguns/pistol_neutral.png" id="3_ed3e0"]
|
|
[ext_resource type="Script" uid="uid://bnhdroadujbv7" path="res://addons/fpc/debug.gd" id="3_hxsbh"]
|
|
[ext_resource type="FontFile" uid="uid://bjcvl7uky8axo" path="res://2d/LeagueSpartan-SemiBold.otf" id="5_8rm6a"]
|
|
[ext_resource type="Script" uid="uid://bs0cc5wulparn" path="res://scripts/hud_text.gd" id="6_go0vp"]
|
|
[ext_resource type="Texture2D" uid="uid://bw14ci2xsc7nq" path="res://sprites/fpguns/telehand_grip.png" id="7_wgsi5"]
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_kp17n"]
|
|
albedo_color = Color(0.909804, 0.596078, 0, 1)
|
|
clearcoat_enabled = true
|
|
clearcoat_roughness = 0.2
|
|
|
|
[sub_resource type="CapsuleMesh" id="CapsuleMesh_yavc4"]
|
|
material = SubResource("StandardMaterial3D_kp17n")
|
|
|
|
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_eecob"]
|
|
|
|
[sub_resource type="Animation" id="Animation_gh776"]
|
|
resource_name = "RESET"
|
|
length = 0.001
|
|
loop_mode = 1
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Camera:position")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Vector3(0, 0, 0)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_lrqmv"]
|
|
resource_name = "headbob"
|
|
loop_mode = 1
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Camera:position")
|
|
tracks/0/interp = 2
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.25, 0.5, 0.75, 1),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1, 1),
|
|
"update": 0,
|
|
"values": [Vector3(0, 0, 0), Vector3(-0.05, -0.05, 0), Vector3(0, 0, 0), Vector3(0.05, -0.05, 0), Vector3(0, 0, 0)]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_o0unb"]
|
|
_data = {
|
|
&"RESET": SubResource("Animation_gh776"),
|
|
&"headbob": SubResource("Animation_lrqmv")
|
|
}
|
|
|
|
[sub_resource type="SphereShape3D" id="SphereShape3D_qfdoa"]
|
|
radius = 1.0
|
|
|
|
[sub_resource type="Theme" id="Theme_kymqm"]
|
|
MarginContainer/constants/margin_bottom = 10
|
|
MarginContainer/constants/margin_left = 10
|
|
MarginContainer/constants/margin_right = 10
|
|
MarginContainer/constants/margin_top = 10
|
|
|
|
[sub_resource type="LabelSettings" id="LabelSettings_btdj4"]
|
|
font = ExtResource("5_8rm6a")
|
|
font_size = 25
|
|
outline_size = 3
|
|
outline_color = Color(0, 0, 0, 1)
|
|
|
|
[node name="player" type="CharacterBody3D"]
|
|
script = ExtResource("1_qw4fy")
|
|
|
|
[node name="Mesh" type="MeshInstance3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
|
cast_shadow = 0
|
|
mesh = SubResource("CapsuleMesh_yavc4")
|
|
|
|
[node name="Collision" type="CollisionShape3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
|
shape = SubResource("CapsuleShape3D_eecob")
|
|
|
|
[node name="Head" type="Node3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.5, 0)
|
|
|
|
[node name="Camera" type="Camera3D" parent="Head"]
|
|
transform = Transform3D(0.999511, 0.000977888, -0.0312559, 0, 0.999511, 0.0312712, 0.0312712, -0.0312559, 0.999022, 0, 0, 0)
|
|
|
|
[node name="Ray" type="RayCast3D" parent="Head/Camera"]
|
|
target_position = Vector3(0, 0, -1)
|
|
collision_mask = 3
|
|
|
|
[node name="camera_animation" type="AnimationPlayer" parent="Head"]
|
|
libraries = {
|
|
&"": SubResource("AnimationLibrary_o0unb")
|
|
}
|
|
blend_times = [&"RESET", &"RESET", 0.5, &"RESET", &"headbob", 0.5, &"headbob", &"RESET", 0.5]
|
|
|
|
[node name="TelekinesisPoint" type="Node3D" parent="Head"]
|
|
|
|
[node name="stomparea" type="Area3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.2, 0)
|
|
monitoring = false
|
|
monitorable = false
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="stomparea"]
|
|
shape = SubResource("SphereShape3D_qfdoa")
|
|
|
|
[node name="UserInterface" type="Control" parent="."]
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
mouse_filter = 1
|
|
|
|
[node name="Reticle_1" parent="UserInterface" node_paths=PackedStringArray("reticle_lines", "character") instance=ExtResource("2_terp6")]
|
|
layout_mode = 1
|
|
reticle_lines = [NodePath("top"), NodePath("left"), NodePath("right"), NodePath("bottom")]
|
|
character = NodePath("../..")
|
|
animated_reticle = false
|
|
|
|
[node name="DebugPanel" type="PanelContainer" parent="UserInterface"]
|
|
visible = false
|
|
layout_mode = 0
|
|
offset_left = 10.0
|
|
offset_top = 10.0
|
|
offset_right = 453.0
|
|
offset_bottom = 50.0
|
|
theme = SubResource("Theme_kymqm")
|
|
script = ExtResource("3_hxsbh")
|
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="UserInterface/DebugPanel"]
|
|
visible = false
|
|
layout_mode = 2
|
|
|
|
[node name="VBoxContainer" type="VBoxContainer" parent="UserInterface/DebugPanel/MarginContainer"]
|
|
visible = false
|
|
layout_mode = 2
|
|
|
|
[node name="HUDContainer" type="MarginContainer" parent="UserInterface"]
|
|
layout_mode = 0
|
|
offset_right = 1280.0
|
|
offset_bottom = 720.0
|
|
theme_override_constants/margin_left = 20
|
|
theme_override_constants/margin_top = 600
|
|
theme_override_constants/margin_right = 1000
|
|
theme_override_constants/margin_bottom = 20
|
|
|
|
[node name="HUDText" type="Label" parent="UserInterface/HUDContainer"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 1
|
|
label_settings = SubResource("LabelSettings_btdj4")
|
|
vertical_alignment = 2
|
|
justification_flags = 0
|
|
script = ExtResource("6_go0vp")
|
|
|
|
[node name="Gun" type="Sprite2D" parent="UserInterface"]
|
|
texture = ExtResource("3_ed3e0")
|
|
centered = false
|
|
|
|
[node name="Telehand" type="Sprite2D" parent="UserInterface"]
|
|
texture = ExtResource("7_wgsi5")
|
|
centered = false
|
|
|
|
[node name="walljump_timer" type="Timer" parent="."]
|
|
|
|
[node name="aircontrol_timer" type="Timer" parent="."]
|
|
|
|
[node name="coyote_timer" type="Timer" parent="."]
|
|
|
|
[node name="dash_timer" type="Timer" parent="."]
|
|
|
|
[node name="gunfire_timer" type="Timer" parent="."]
|
|
|
|
[node name="gunflash_timer" type="Timer" parent="."]
|
|
|
|
[node name="telehand_timer" type="Timer" parent="."]
|
|
|
|
[connection signal="timeout" from="walljump_timer" to="." method="_on_walljump_timer_timeout"]
|
|
[connection signal="timeout" from="walljump_timer" to="walljump_timer" method="_on_timeout"]
|
|
[connection signal="timeout" from="aircontrol_timer" to="." method="_on_aircontrol_timer_timeout"]
|
|
[connection signal="timeout" from="coyote_timer" to="." method="_on_coyote_timer_timeout"]
|
|
[connection signal="timeout" from="dash_timer" to="." method="_on_dash_timer_timeout"]
|
|
[connection signal="timeout" from="gunfire_timer" to="." method="_on_gunfire_timer_timeout"]
|
|
[connection signal="timeout" from="gunflash_timer" to="." method="_on_gunflash_timer_timeout"]
|
|
[connection signal="timeout" from="telehand_timer" to="." method="_on_telehand_timer_timeout"]
|
|
|
|
[editable path="UserInterface/Reticle_1"]
|