mirror of
https://github.com/Nokorpo/LibreAim.git
synced 2025-06-09 17:44:47 +09:00
328 lines
11 KiB
Text
328 lines
11 KiB
Text
[gd_scene load_steps=18 format=3 uid="uid://cdbhv0p0jfr75"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/levels/World.gd" id="1_02ggb"]
|
|
[ext_resource type="Script" path="res://scripts/characters/CharacterBody3D.gd" id="1_77co2"]
|
|
[ext_resource type="Script" path="res://scripts/ui/Crosshair.gd" id="4_jkxyl"]
|
|
[ext_resource type="Script" path="res://scripts/levels/Pause.gd" id="5_4wxgd"]
|
|
[ext_resource type="LabelSettings" uid="uid://crnxcugovdaio" path="res://assets/fonts/100_outline.tres" id="5_k01xn"]
|
|
|
|
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_hein3"]
|
|
sky_horizon_color = Color(0.64625, 0.65575, 0.67075, 1)
|
|
ground_horizon_color = Color(0.64625, 0.65575, 0.67075, 1)
|
|
|
|
[sub_resource type="Sky" id="Sky_i8euj"]
|
|
sky_material = SubResource("ProceduralSkyMaterial_hein3")
|
|
|
|
[sub_resource type="Environment" id="Environment_mlohy"]
|
|
background_mode = 2
|
|
sky = SubResource("Sky_i8euj")
|
|
tonemap_mode = 2
|
|
glow_enabled = true
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_glx82"]
|
|
uv1_scale = Vector3(0.1, 0.1, 0.1)
|
|
uv1_triplanar = true
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_d1v5h"]
|
|
transparency = 1
|
|
albedo_color = Color(1, 1, 1, 0)
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_22nld"]
|
|
transparency = 1
|
|
albedo_color = Color(1, 1, 1, 0)
|
|
|
|
[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_trh1v"]
|
|
points = PackedVector3Array(-0.125207, -0.532801, -0.480507, 0.0227831, 0.47607, 0.498884, 0.169713, 0.559144, 0.464172, 0.231051, -0.803591, 0.320455, 0.40741, 0.651043, -0.243523, -0.482789, 0.594843, 0.0822132, -0.362868, -0.682312, 0.289697, 0.469044, -0.654529, -0.0662713, -0.127444, 0.842701, -0.338103, -0.393435, -0.683942, -0.244717, 0.438255, 0.623309, 0.200849, 0.0841477, 0.977454, 0.114795, -0.0682023, -0.976458, -0.12927, 0.20055, -0.563129, -0.451454, -0.185527, 0.595453, -0.453475, -0.273363, 0.592268, 0.407754, -0.00693649, -0.476823, 0.49966, 0.375821, -0.588614, 0.316955, 0.111579, 0.563059, -0.481177, -0.41725, 0.527866, -0.270497, -0.484546, -0.596972, -0.0665097, -0.279747, 0.908561, 0.0533361, -0.250197, -0.880712, 0.205319, 0.263647, -0.902771, -0.127394, 0.293368, 0.871526, -0.157196, 0.373412, -0.526319, -0.328246, 0.499663, 0.476641, -0.00688856, 0.0531056, 0.875001, 0.324703, -0.154543, -0.590854, 0.465879, -0.0972799, -0.782358, -0.398188, -0.387649, -0.498171, 0.31565, -0.30068, -0.587995, -0.388901)
|
|
|
|
[sub_resource type="CapsuleMesh" id="CapsuleMesh_41626"]
|
|
|
|
[sub_resource type="LabelSettings" id="LabelSettings_rkont"]
|
|
font_size = 300
|
|
outline_size = 30
|
|
outline_color = Color(0, 0, 0, 1)
|
|
|
|
[sub_resource type="Animation" id="Animation_8dsmr"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Player/Head/Kill:visible")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [true]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_jsqua"]
|
|
resource_name = "kill"
|
|
length = 0.2
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Player/Head/Kill:visible")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.1, 0.2),
|
|
"transitions": PackedFloat32Array(1, 1, 1),
|
|
"update": 1,
|
|
"values": [true, true, false]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_s0jl0"]
|
|
_data = {
|
|
"RESET": SubResource("Animation_8dsmr"),
|
|
"kill": SubResource("Animation_jsqua")
|
|
}
|
|
|
|
[node name="World" type="Node3D"]
|
|
script = ExtResource("1_02ggb")
|
|
|
|
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 0.5, 0.866025, 0, -0.866025, 0.5, 0, 80, 0)
|
|
|
|
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
|
|
environment = SubResource("Environment_mlohy")
|
|
|
|
[node name="Building" type="CSGBox3D" parent="."]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 23, 0)
|
|
use_collision = true
|
|
size = Vector3(100, 50, 100)
|
|
|
|
[node name="CSGBox3D" type="CSGBox3D" parent="Building"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
|
operation = 2
|
|
size = Vector3(99, 50, 99)
|
|
material = SubResource("StandardMaterial3D_glx82")
|
|
|
|
[node name="PlayerPrison" type="CSGBox3D" parent="."]
|
|
transform = Transform3D(3, 0, 0, 0, 1, 0, 0, 0, 1, 0, 9, 0)
|
|
material_override = SubResource("StandardMaterial3D_d1v5h")
|
|
transparency = 1.0
|
|
use_collision = true
|
|
collision_layer = 4
|
|
size = Vector3(10, 20, 10)
|
|
|
|
[node name="CSGBox3D2" type="CSGBox3D" parent="PlayerPrison"]
|
|
operation = 2
|
|
use_collision = true
|
|
size = Vector3(9, 21, 9)
|
|
|
|
[node name="TargetPrison" type="CSGBox3D" parent="."]
|
|
transform = Transform3D(10, 0, 0, 0, 4, 0, 0, 0, 3, 2.08165e-12, 9, -35)
|
|
material_override = SubResource("StandardMaterial3D_22nld")
|
|
transparency = 1.0
|
|
use_collision = true
|
|
collision_layer = 8
|
|
size = Vector3(10, 20, 10)
|
|
|
|
[node name="CSGBox3D2" type="CSGBox3D" parent="TargetPrison"]
|
|
operation = 2
|
|
use_collision = true
|
|
size = Vector3(9, 19, 9)
|
|
|
|
[node name="Player" type="CharacterBody3D" parent="."]
|
|
collision_layer = 2
|
|
collision_mask = 5
|
|
script = ExtResource("1_77co2")
|
|
|
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Player"]
|
|
transform = Transform3D(2, 0, 0, 0, 2, 0, 0, 0, 2, 0, 1, 0)
|
|
shape = SubResource("ConvexPolygonShape3D_trh1v")
|
|
|
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="Player/CollisionShape3D"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.000550747, 0.00400865, -0.000956774)
|
|
mesh = SubResource("CapsuleMesh_41626")
|
|
skeleton = NodePath("../..")
|
|
|
|
[node name="Head" type="Node3D" parent="Player"]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 3, 0)
|
|
|
|
[node name="Camera3D" type="Camera3D" parent="Player/Head"]
|
|
|
|
[node name="RayCast3D" type="RayCast3D" parent="Player/Head/Camera3D"]
|
|
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0)
|
|
target_position = Vector3(0, -1000, 0)
|
|
debug_shape_custom_color = Color(1, 0, 0, 1)
|
|
|
|
[node name="Crosshair" type="Control" parent="Player/Head/Camera3D"]
|
|
layout_mode = 3
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -0.5
|
|
offset_top = -0.5
|
|
offset_right = 0.5
|
|
offset_bottom = 0.5
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
size_flags_horizontal = 0
|
|
size_flags_vertical = 0
|
|
script = ExtResource("4_jkxyl")
|
|
|
|
[node name="Kill" type="Label" parent="Player/Head"]
|
|
anchors_preset = 5
|
|
anchor_left = 0.5
|
|
anchor_right = 0.5
|
|
offset_left = -93.5
|
|
offset_top = 50.0
|
|
offset_right = 93.5
|
|
offset_bottom = 462.0
|
|
grow_horizontal = 2
|
|
text = "X"
|
|
label_settings = SubResource("LabelSettings_rkont")
|
|
|
|
[node name="Timer" type="Label" parent="Player/Head"]
|
|
offset_left = 100.0
|
|
offset_top = 50.0
|
|
offset_right = 140.0
|
|
offset_bottom = 138.0
|
|
text = "60s"
|
|
label_settings = ExtResource("5_k01xn")
|
|
|
|
[node name="Kills" type="Label" parent="Player/Head"]
|
|
offset_left = 100.0
|
|
offset_top = 150.0
|
|
offset_right = 140.0
|
|
offset_bottom = 250.0
|
|
text = "0"
|
|
label_settings = ExtResource("5_k01xn")
|
|
|
|
[node name="AnimationKill" type="AnimationPlayer" parent="Player/Head"]
|
|
root_node = NodePath("../../..")
|
|
libraries = {
|
|
"": SubResource("AnimationLibrary_s0jl0")
|
|
}
|
|
|
|
[node name="CanvasLayer" type="CanvasLayer" parent="."]
|
|
|
|
[node name="Pause" type="Control" parent="CanvasLayer"]
|
|
process_mode = 2
|
|
visible = false
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
script = ExtResource("5_4wxgd")
|
|
|
|
[node name="ColorRect" type="ColorRect" parent="CanvasLayer/Pause"]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
color = Color(0.0745098, 0.0745098, 0.0745098, 0.34902)
|
|
metadata/_edit_use_anchors_ = true
|
|
|
|
[node name="Buttons" type="VBoxContainer" parent="CanvasLayer/Pause"]
|
|
layout_mode = 1
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -35.0
|
|
offset_top = -33.0
|
|
offset_right = 35.0
|
|
offset_bottom = 33.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="Resume" type="Button" parent="CanvasLayer/Pause/Buttons"]
|
|
layout_mode = 2
|
|
text = "Resume"
|
|
|
|
[node name="Menu" type="Button" parent="CanvasLayer/Pause/Buttons"]
|
|
layout_mode = 2
|
|
text = "Menu"
|
|
|
|
[node name="FullScreenRequest" type="Control" parent="CanvasLayer"]
|
|
process_mode = 2
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="ColorRect" type="ColorRect" parent="CanvasLayer/FullScreenRequest"]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
color = Color(0.0745098, 0.0745098, 0.0745098, 0.34902)
|
|
|
|
[node name="Buttons" type="VBoxContainer" parent="CanvasLayer/FullScreenRequest"]
|
|
layout_mode = 1
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -35.0
|
|
offset_top = -33.0
|
|
offset_right = 35.0
|
|
offset_bottom = 33.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="FullScreenNeeded" type="Button" parent="CanvasLayer/FullScreenRequest/Buttons"]
|
|
layout_mode = 2
|
|
text = "Full screen is needed."
|
|
|
|
[node name="Menu" type="Button" parent="CanvasLayer/FullScreenRequest/Buttons"]
|
|
layout_mode = 2
|
|
text = "Menu"
|
|
|
|
[node name="MouseCapturedRequested" type="Control" parent="CanvasLayer"]
|
|
process_mode = 2
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="ColorRect" type="ColorRect" parent="CanvasLayer/MouseCapturedRequested"]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
color = Color(0.0745098, 0.0745098, 0.0745098, 0.34902)
|
|
|
|
[node name="MouseCapturedNeeded" type="Button" parent="CanvasLayer/MouseCapturedRequested"]
|
|
layout_mode = 1
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -503.5
|
|
offset_top = -60.0
|
|
offset_right = 503.5
|
|
offset_bottom = 60.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
text = "Mouse captured is needed."
|
|
|
|
[node name="Timer" type="Timer" parent="."]
|
|
|
|
[connection signal="pause_game" from="Player" to="CanvasLayer/Pause" method="_on_player_pause_game"]
|
|
[connection signal="pressed" from="CanvasLayer/Pause/Buttons/Resume" to="CanvasLayer/Pause" method="_on_resume_pressed"]
|
|
[connection signal="pressed" from="CanvasLayer/Pause/Buttons/Menu" to="CanvasLayer/Pause" method="_on_menu_pressed"]
|
|
[connection signal="pressed" from="CanvasLayer/FullScreenRequest/Buttons/FullScreenNeeded" to="." method="_on_full_screen_needed_pressed"]
|
|
[connection signal="pressed" from="CanvasLayer/FullScreenRequest/Buttons/Menu" to="CanvasLayer/Pause" method="_on_menu_pressed"]
|
|
[connection signal="pressed" from="CanvasLayer/MouseCapturedRequested/MouseCapturedNeeded" to="." method="_on_mouse_captured_needed_pressed"]
|
|
[connection signal="timeout" from="Timer" to="Player" method="_on_timer_timeout"]
|