mirror of
https://gitlab.com/open-fpsz/open-fpsz.git
synced 2026-07-16 00:44:50 +00:00
🐛 fix pawn check for player in singleplayer mode
This commit is contained in:
parent
9c8f6b4d3d
commit
cf95b4a25d
1 changed files with 3 additions and 1 deletions
|
|
@ -91,7 +91,9 @@ func _setup_pawn(_new_player_id : int) -> void:
|
||||||
weapon.hide()
|
weapon.hide()
|
||||||
|
|
||||||
func _is_pawn() -> bool:
|
func _is_pawn() -> bool:
|
||||||
return multiplayer.get_unique_id() == match_participant_component.player_id
|
var game : Node3D = get_node("/root/Game")
|
||||||
|
var peer_is_pawn = multiplayer.get_unique_id() == match_participant_component.player_id
|
||||||
|
return game.mode is Singleplayer or peer_is_pawn
|
||||||
|
|
||||||
func _fire_primary() -> void:
|
func _fire_primary() -> void:
|
||||||
if _is_player_dead():
|
if _is_player_dead():
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue