Milestone 9 Development

This commit is contained in:
patrick_pluto 2024-08-31 14:58:41 +02:00
commit 785bbd8f05
83 changed files with 1089 additions and 4525 deletions

View file

@ -1,11 +1,18 @@
## freeftf
## Copyright (C) 2024 Patrick_Pluto
## FreeFTF
## Copyright (C) 2024 Interstellar Development
##
## 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 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.
## 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 <https://www.gnu.org/licenses/>.
## You should have received a copy of the GNU General Public License
## along with this program. If not, see <https://www.gnu.org/licenses/>.
extends Node
@ -67,7 +74,8 @@ func send_playerinfo():
@rpc("authority","call_remote","reliable")
func get_player_list(server_player_list):
Game.player_list = server_player_list
if !Game.is_running:
Game.player_list = server_player_list
@rpc("any_peer", "call_local", "reliable")
func start_game():
@ -80,9 +88,9 @@ func player_hit(target, beast):
Game.player_hit(target, beast)
@rpc("any_peer", "call_local", "unreliable")
func sync_player(node_path, position, rotation):
func sync_player(node_path, position, rotation, rotation2):
if is_valid(multiplayer.get_remote_sender_id(), false):
Game.sync_player(node_path, position, rotation)
Game.sync_player(node_path, position, rotation, rotation2)
@rpc("any_peer", "call_local", "unreliable")
func sync_hammer(node_path, rotation):