diff --git a/interfaces/menus/boot/boot.tscn b/interfaces/menus/boot/boot.tscn index f2a45f4..2fad5ab 100644 --- a/interfaces/menus/boot/boot.tscn +++ b/interfaces/menus/boot/boot.tscn @@ -52,7 +52,21 @@ func _on_main_menu_pressed() -> void: bg_color = Color(0.501961, 0.501961, 0.501961, 0.25098) [sub_resource type="GDScript" id="GDScript_tc1bm"] -script/source = "extends PanelContainer +script/source = "# This file is part of open-fpsz. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +extends PanelContainer const DEFAULT_HOST : String = \"localhost\" const DEFAULT_PORT : int = 9000 @@ -138,7 +152,21 @@ func _on_connection_failed() -> void: [sub_resource type="GDScript" id="GDScript_gbnwv"] resource_name = "Settings" -script/source = "extends PanelContainer +script/source = "# This file is part of open-fpsz. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +extends PanelContainer # Quality presets. @@ -271,7 +299,21 @@ func _on_close_pressed() -> void: " [sub_resource type="GDScript" id="GDScript_7votw"] -script/source = "extends OptionButton +script/source = "# This file is part of open-fpsz. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +extends OptionButton func _ready() -> void: self.selected = Settings.get_value(\"ui\", \"scale\") @@ -303,7 +345,21 @@ func _on_item_selected(index: int) -> void: " [sub_resource type="GDScript" id="GDScript_ux54k"] -script/source = "extends HBoxContainer +script/source = "# This file is part of open-fpsz. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +extends HBoxContainer @export var min_value : float = 0. @export var max_value : float = 1. @@ -331,7 +387,21 @@ func _on_slider_value_changed(new_value : float) -> void: " [sub_resource type="GDScript" id="GDScript_v5ux6"] -script/source = "extends HBoxContainer +script/source = "# This file is part of open-fpsz. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +extends HBoxContainer @export var min_value : int = 70 @export var max_value : int = 150 @@ -359,7 +429,21 @@ func _on_slider_value_changed(new_value : int) -> void: " [sub_resource type="GDScript" id="GDScript_viqb1"] -script/source = "extends HSlider +script/source = "# This file is part of open-fpsz. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +extends HSlider func _ready() -> void: self.value = Settings.get_value(\"video\", \"quality\") @@ -371,7 +455,21 @@ func _on_value_changed(new_value : float) -> void: " [sub_resource type="GDScript" id="GDScript_mnbe0"] -script/source = "extends OptionButton +script/source = "# This file is part of open-fpsz. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +extends OptionButton func _ready() -> void: self.selected = Settings.get_value(\"video\", \"filter\") @@ -393,7 +491,21 @@ func _on_item_selected(index: int) -> void: " [sub_resource type="GDScript" id="GDScript_c3ngv"] -script/source = "extends HSlider +script/source = "# This file is part of open-fpsz. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +extends HSlider func _ready() -> void: self.value = Settings.get_value(\"video\", \"fsr_sharpness\") @@ -408,7 +520,21 @@ func _on_value_changed(new_value : float) -> void: " [sub_resource type="GDScript" id="GDScript_xa5kp"] -script/source = "extends OptionButton +script/source = "# This file is part of open-fpsz. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +extends OptionButton func _ready() -> void: self.selected = Settings.get_value(\"video\", \"window_mode\") @@ -425,7 +551,21 @@ func _on_item_selected(index : int) -> void: " [sub_resource type="GDScript" id="GDScript_jl1uk"] -script/source = "extends OptionButton +script/source = "# This file is part of open-fpsz. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +extends OptionButton func _ready() -> void: self.selected = Settings.get_value(\"video\", \"vsync\") @@ -448,7 +588,21 @@ func _on_item_selected(index : int) -> void: " [sub_resource type="GDScript" id="GDScript_6qqbt"] -script/source = "extends OptionButton +script/source = "# This file is part of open-fpsz. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +extends OptionButton func _ready() -> void: self.selected = Settings.get_value(\"video\", \"taa\") @@ -463,7 +617,21 @@ func _on_item_selected(index: int) -> void: " [sub_resource type="GDScript" id="GDScript_ulkhx"] -script/source = "extends OptionButton +script/source = "# This file is part of open-fpsz. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +extends OptionButton func _ready() -> void: self.selected = Settings.get_value(\"video\", \"msaa\") @@ -484,7 +652,21 @@ func _on_item_selected(index: int) -> void: " [sub_resource type="GDScript" id="GDScript_k6fl5"] -script/source = "extends OptionButton +script/source = "# This file is part of open-fpsz. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +extends OptionButton func _ready() -> void: self.selected = Settings.get_value(\"video\", \"fxaa\") @@ -498,7 +680,21 @@ func _on_item_selected(index: int) -> void: " [sub_resource type="GDScript" id="GDScript_cph1u"] -script/source = "extends OptionButton +script/source = "# This file is part of open-fpsz. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +extends OptionButton func _ready() -> void: self.selected = Settings.get_value(\"quality\", \"shadow_size\") @@ -544,7 +740,21 @@ func _on_item_selected(index : int) -> void: " [sub_resource type="GDScript" id="GDScript_uhm5l"] -script/source = "extends OptionButton +script/source = "# This file is part of open-fpsz. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +extends OptionButton func _ready() -> void: self.selected = Settings.get_value(\"quality\", \"shadow_filter\") @@ -573,7 +783,21 @@ func _on_item_selected(index : int) -> void: " [sub_resource type="GDScript" id="GDScript_4cgn8"] -script/source = "extends OptionButton +script/source = "# This file is part of open-fpsz. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +extends OptionButton func _ready() -> void: self.selected = Settings.get_value(\"quality\", \"mesh_lod\") @@ -595,7 +819,21 @@ func _on_item_selected(index : int) -> void: " [sub_resource type="GDScript" id="GDScript_xfygm"] -script/source = "extends OptionButton +script/source = "# This file is part of open-fpsz. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +extends OptionButton func _ready() -> void: self.selected = Settings.get_value(\"environment\", \"sdfgi\") @@ -617,7 +855,21 @@ func _on_item_selected(index: int) -> void: " [sub_resource type="GDScript" id="GDScript_k3pso"] -script/source = "extends OptionButton +script/source = "# This file is part of open-fpsz. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +extends OptionButton func _ready() -> void: self.selected = Settings.get_value(\"environment\", \"glow\") @@ -637,7 +889,21 @@ func _on_item_selected(index: int) -> void: " [sub_resource type="GDScript" id="GDScript_0sqe1"] -script/source = "extends OptionButton +script/source = "# This file is part of open-fpsz. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +extends OptionButton func _ready() -> void: self.selected = Settings.get_value(\"environment\", \"ssao\") @@ -665,7 +931,21 @@ func _on_item_selected(index: int) -> void: " [sub_resource type="GDScript" id="GDScript_cb82q"] -script/source = "extends OptionButton +script/source = "# This file is part of open-fpsz. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +extends OptionButton func _ready() -> void: self.selected = Settings.get_value(\"environment\", \"ssr\") @@ -690,7 +970,21 @@ func _on_item_selected(index: int) -> void: " [sub_resource type="GDScript" id="GDScript_qrf3h"] -script/source = "extends OptionButton +script/source = "# This file is part of open-fpsz. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +extends OptionButton func _ready() -> void: self.selected = Settings.get_value(\"environment\", \"ssil\") @@ -698,9 +992,9 @@ func _ready() -> void: func _on_item_selected(index: int) -> void: Settings.set_value(\"environment\", \"ssil\", index) - ## This is a setting that is attached to the environment. - ## If your game requires you to change the environment, - ## then be sure to run this function again to make the setting effective. + # This is a setting that is attached to the environment. + # If your game requires you to change the environment, + # then be sure to run this function again to make the setting effective. if index == 0: # Disabled (default) MapsManager.environment.ssil_enabled = false if index == 1: # Very Low @@ -718,7 +1012,21 @@ func _on_item_selected(index: int) -> void: " [sub_resource type="GDScript" id="GDScript_80uen"] -script/source = "extends OptionButton +script/source = "# This file is part of open-fpsz. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +extends OptionButton func _ready() -> void: self.selected = Settings.get_value(\"environment\", \"volumetric_fog\") @@ -1045,7 +1353,7 @@ layout_mode = 2 custom_minimum_size = Vector2(480, 0) layout_mode = 2 size_flags_vertical = 3 -scroll_vertical = 120 +scroll_vertical = 100 [node name="MarginContainer" type="MarginContainer" parent="SettingsPanelContainer/VBoxContainer/ScrollContainer"] layout_mode = 2 diff --git a/modes/demo.tscn b/modes/demo.tscn index d94a223..fb06509 100644 --- a/modes/demo.tscn +++ b/modes/demo.tscn @@ -6,7 +6,21 @@ [ext_resource type="PackedScene" uid="uid://btlkog4b87p4x" path="res://maps/desert/desert.tscn" id="4_dogmv"] [sub_resource type="GDScript" id="GDScript_iv0l6"] -script/source = "extends Node +script/source = "# This file is part of open-fpsz. +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +extends Node @onready var player_node : Player = $Player @onready var target_dummy : RigidBody3D = $TargetDummy diff --git a/modes/multiplayer/multiplayer.gd b/modes/multiplayer/multiplayer.gd index 9270c36..baccae4 100644 --- a/modes/multiplayer/multiplayer.gd +++ b/modes/multiplayer/multiplayer.gd @@ -89,7 +89,7 @@ func respawn_player(player : Player) -> void: func add_player(peer_id : int, nickname : String) -> void: var player : Player = PLAYER.instantiate() - players.add_child(player)grep + players.add_child(player) player.name = str(peer_id) player.player_id = peer_id player.team_id = team_chasers.team_id diff --git a/modes/multiplayer/multiplayer.tscn b/modes/multiplayer/multiplayer.tscn index bee4713..09049ce 100644 --- a/modes/multiplayer/multiplayer.tscn +++ b/modes/multiplayer/multiplayer.tscn @@ -9,8 +9,6 @@ script = ExtResource("1_r1kd6") PLAYER = ExtResource("2_og1vb") FLAG = ExtResource("3_h0rie") -MAX_CLIENTS = null -RESPAWN_TIME = null [node name="Map" type="Node" parent="."]