190 lines
6.5 KiB
Plaintext
190 lines
6.5 KiB
Plaintext
[gd_scene format=3 uid="uid://ct70bpbca8one"]
|
|
|
|
[ext_resource type="PackedScene" uid="uid://bod6b3befmyt5" path="res://scenes/player/soldier_m.tscn" id="1_jd651"]
|
|
[ext_resource type="PackedScene" uid="uid://cl66unms2gim0" path="res://scenes/player/effects.tscn" id="2_ywmwa"]
|
|
[ext_resource type="PackedScene" uid="uid://n3u0jr4wiib1" path="res://scenes/ui/settings.tscn" id="3_beej8"]
|
|
[ext_resource type="PackedScene" uid="uid://2sfy0vq0fqt3" path="res://scenes/ui/player_listing.tscn" id="4_okac2"]
|
|
[ext_resource type="PackedScene" uid="uid://ffh5txda3j1" path="res://scenes/ui/chat_box.tscn" id="5_cv68x"]
|
|
[ext_resource type="Texture2D" uid="uid://bdfqu6p74pfwe" path="res://raw_assets/crosshair/Crosshair 1.png" id="6_7awel"]
|
|
[ext_resource type="AudioStream" uid="uid://bfg31e3s4jv8c" path="res://raw_assets/sfx/Hit.mp3" id="7_dguuj"]
|
|
|
|
[sub_resource type="CapsuleShape3D" id="CapsuleShape3D_oh8vq"]
|
|
|
|
[sub_resource type="LabelSettings" id="LabelSettings_7awel"]
|
|
font_size = 32
|
|
font_color = Color(1, 0, 0, 1)
|
|
outline_size = 10
|
|
outline_color = Color(0, 0, 0, 1)
|
|
|
|
[node name="player" type="LocalPlayer" unique_id=863055906 node_paths=PackedStringArray("camera", "soldier_mesh", "collider", "effects", "dead_cam_target", "respawn_label", "camera_origin", "weapon_node", "pause_panel", "exit_to_lobby", "settings_panel", "scoreboard", "chatbox", "health_label", "hit_sound")]
|
|
look_sensitivity = 1.5
|
|
camera = NodePath("camera_3d")
|
|
move_speed = 7.0
|
|
soldier_mesh = NodePath("soldier_m")
|
|
collider = NodePath("collision_shape_3d2")
|
|
effects = NodePath("effects")
|
|
dead_cam_target = NodePath("dead_camera_target")
|
|
respawn_label = NodePath("respawn_label")
|
|
camera_origin = NodePath("camera_3d")
|
|
weapon_node = NodePath("camera_3d/weapon_node")
|
|
pause_panel = NodePath("pause_menu")
|
|
exit_to_lobby = NodePath("pause_menu/v_box_container/exit_to_lobby")
|
|
settings_panel = NodePath("settings")
|
|
scoreboard = NodePath("scoreboard")
|
|
chatbox = NodePath("chat_box")
|
|
health_label = NodePath("health_label")
|
|
hit_sound = NodePath("hit_sound")
|
|
health = 100
|
|
punch_cooldown = 1.0
|
|
collision_mask = 4
|
|
slide_on_ceiling = false
|
|
floor_constant_speed = true
|
|
|
|
[node name="camera_3d" type="Camera3D" parent="." unique_id=1773137418]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.8724979, -0.2644562)
|
|
current = true
|
|
fov = 90.0
|
|
|
|
[node name="weapon_node" type="Node3D" parent="camera_3d" unique_id=919330414]
|
|
transform = Transform3D(0.2, 0, 0, 0, 0.2, 0, 0, 0, 0.2, 0.09660053, -0.122348905, -0.048912734)
|
|
|
|
[node name="soldier_m" parent="." unique_id=281995630 instance=ExtResource("1_jd651")]
|
|
transform = Transform3D(-0.5, 0, -4.371139e-08, 0, 0.5, 0, 4.371139e-08, 0, -0.5, 0.15878421, 0, 0.19227558)
|
|
|
|
[node name="collision_shape_3d2" type="CollisionShape3D" parent="." unique_id=442150782]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
|
shape = SubResource("CapsuleShape3D_oh8vq")
|
|
|
|
[node name="effects" parent="." unique_id=986677517 instance=ExtResource("2_ywmwa")]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.16157162, 1.4223524, 0)
|
|
|
|
[node name="dead_camera_target" type="Node3D" parent="." unique_id=559969559]
|
|
transform = Transform3D(1, 0, 0, 0, 0.9069022, 0.4213412, 0, -0.4213412, 0.9069022, 0, 2.3258846, 1.5254744)
|
|
|
|
[node name="crosshair" type="TextureRect" parent="." unique_id=1329977849]
|
|
modulate = Color(1, 1, 1, 0.5058824)
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -14.25
|
|
offset_top = -14.25
|
|
offset_right = 14.25
|
|
offset_bottom = 14.25
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
texture = ExtResource("6_7awel")
|
|
expand_mode = 3
|
|
|
|
[node name="respawn_label" type="Label" parent="." unique_id=595642200]
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -20.0
|
|
offset_top = -11.5
|
|
offset_right = 20.0
|
|
offset_bottom = 11.5
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
horizontal_alignment = 1
|
|
|
|
[node name="score_view" type="SimpleScoreView" parent="." unique_id=1128041371]
|
|
anchors_preset = 5
|
|
anchor_left = 0.5
|
|
anchor_right = 0.5
|
|
offset_left = -20.0
|
|
offset_top = 18.0
|
|
offset_right = 20.0
|
|
offset_bottom = 58.0
|
|
grow_horizontal = 2
|
|
alignment = 1
|
|
|
|
[node name="pause_menu" type="Panel" parent="." unique_id=1542204162]
|
|
visible = false
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -67.75
|
|
offset_top = -101.25
|
|
offset_right = 67.75
|
|
offset_bottom = 101.25
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="v_box_container" type="VBoxContainer" parent="pause_menu" unique_id=839758321]
|
|
layout_mode = 1
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -20.0
|
|
offset_top = -20.0
|
|
offset_right = 20.0
|
|
offset_bottom = 20.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
alignment = 1
|
|
|
|
[node name="settings" type="Button" parent="pause_menu/v_box_container" unique_id=676182211]
|
|
layout_mode = 2
|
|
text = "Settings"
|
|
|
|
[node name="exit_to_lobby" type="Button" parent="pause_menu/v_box_container" unique_id=1816170399]
|
|
layout_mode = 2
|
|
text = "Exit to Lobby"
|
|
|
|
[node name="exit" type="Button" parent="pause_menu/v_box_container" unique_id=641638697]
|
|
layout_mode = 2
|
|
text = "Exit"
|
|
|
|
[node name="settings" parent="." unique_id=999912383 instance=ExtResource("3_beej8")]
|
|
visible = false
|
|
|
|
[node name="scoreboard" type="PanelContainer" parent="." unique_id=1276565374]
|
|
custom_minimum_size = Vector2(0, -1)
|
|
anchors_preset = 5
|
|
anchor_left = 0.5
|
|
anchor_right = 0.5
|
|
offset_left = -76.0
|
|
offset_top = 58.0
|
|
offset_right = 77.0
|
|
offset_bottom = 100.0
|
|
grow_horizontal = 2
|
|
size_flags_vertical = 3
|
|
|
|
[node name="h_box_container" type="PlayerListings" parent="scoreboard" unique_id=256898638]
|
|
player_listing_scene = ExtResource("4_okac2")
|
|
layout_mode = 2
|
|
alignment = 1
|
|
metadata/_edit_lock_ = true
|
|
|
|
[node name="chat_box" parent="." unique_id=1125601400 instance=ExtResource("5_cv68x")]
|
|
in_game = true
|
|
|
|
[node name="health_label" type="Label" parent="." unique_id=651212450]
|
|
anchors_preset = 2
|
|
anchor_top = 1.0
|
|
anchor_bottom = 1.0
|
|
offset_left = 34.0
|
|
offset_top = -45.0
|
|
offset_right = 74.0
|
|
offset_bottom = -22.0
|
|
grow_vertical = 0
|
|
text = "100"
|
|
label_settings = SubResource("LabelSettings_7awel")
|
|
vertical_alignment = 2
|
|
|
|
[node name="hit_sound" type="AudioStreamPlayer" parent="." unique_id=1224745673]
|
|
stream = ExtResource("7_dguuj")
|
|
bus = &"SFX"
|
|
|
|
[connection signal="pressed" from="pause_menu/v_box_container/settings" to="settings" method="open"]
|
|
[connection signal="pressed" from="pause_menu/v_box_container/exit_to_lobby" to="." method="exit_to_lobby"]
|
|
[connection signal="pressed" from="pause_menu/v_box_container/exit" to="." method="exit"]
|