mirror of
https://gitlab.com/open-fpsz/open-fpsz.git
synced 2026-01-19 19:44:46 +00:00
🐛 Fix player nicknames and IFFs
This commit is contained in:
parent
7a4eabc1ca
commit
9e923ecdd5
|
|
@ -62,7 +62,7 @@ var g : float = ProjectSettings.get_setting("physics/3d/default_gravity") # in m
|
|||
var gravity : Vector3 = g * ProjectSettings.get_setting("physics/3d/default_gravity_vector")
|
||||
var _jumping : bool = false
|
||||
|
||||
@rpc("call_local")
|
||||
@rpc("call_local", "reliable")
|
||||
func set_nickname(value : String) -> void:
|
||||
nickname = value
|
||||
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ extends Control
|
|||
@onready var healthbar_fill_stylebox : StyleBoxFlat = _health_bar.get_theme_stylebox("fill")
|
||||
|
||||
func _ready() -> void:
|
||||
_player_name_label.text = player.name
|
||||
_player_name_label.text = player.nickname
|
||||
|
||||
func _process(_delta : float) -> void:
|
||||
# retrieve camera for current viewport
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@ func _unhandled_input(event : InputEvent) -> void:
|
|||
for score_label in %Scores.get_children():
|
||||
score_label.queue_free()
|
||||
|
||||
@rpc("any_peer")
|
||||
@rpc("any_peer", "reliable")
|
||||
func _join_match(nickname : String) -> void:
|
||||
if is_multiplayer_authority():
|
||||
add_player(multiplayer.get_remote_sender_id(), nickname)
|
||||
|
|
|
|||
Loading…
Reference in a new issue